Skip to content

Commit b3abccc

Browse files
committed
Correct version that supports encrypted backups
1 parent 36d8309 commit b3abccc

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

api/v1beta2/foundationdb_version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,5 @@ var Versions = struct {
165165
SupportsRecoveryState: Version{api.Version{Major: 7, Minor: 1, Patch: 22}},
166166
SupportsLocalityBasedExclusions71: Version{api.Version{Major: 7, Minor: 1, Patch: 42}},
167167
SupportsLocalityBasedExclusions: Version{api.Version{Major: 7, Minor: 3, Patch: 26}},
168-
SupportsBackupEncryption: Version{api.Version{Major: 7, Minor: 3, Patch: 0}},
168+
SupportsBackupEncryption: Version{api.Version{Major: 7, Minor: 4, Patch: 6}},
169169
}

api/v1beta2/foundationdbbackup_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ type FoundationDBBackupSpec struct {
9999
// This is the configuration of the target blobstore for this backup.
100100
BlobStoreConfiguration *BlobStoreConfiguration `json:"blobStoreConfiguration,omitempty"`
101101

102-
// The path to the encryption key used to encrypt the backup.
102+
// The path to the encryption key used to encrypt the backup. This feature is only supported in FDB versions 7.4.6
103+
// or newer. Older versions will not use this flag.
103104
// +kubebuilder:validation:MaxLength=4096
104105
EncryptionKeyPath string `json:"encryptionKeyPath,omitempty"`
105106

docs/backup_spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ FoundationDBBackupSpec describes the desired state of the backup for a cluster.
108108
| customParameters | CustomParameters defines additional parameters to pass to the backup agents. | FoundationDBCustomParameters | false |
109109
| allowTagOverride | This setting defines if a user provided image can have it's own tag rather than getting the provided version appended. You have to ensure that the specified version in the Spec is compatible with the given version in your custom image. **Deprecated: use ImageConfigs instead.** | *bool | false |
110110
| blobStoreConfiguration | This is the configuration of the target blobstore for this backup. | *[BlobStoreConfiguration](#blobstoreconfiguration) | false |
111-
| encryptionKeyPath | The path to the encryption key used to encrypt the backup. | string | false |
111+
| encryptionKeyPath | The path to the encryption key used to encrypt the backup. This feature is only supported in FDB versions 7.4.6 or newer. Older versions will not use this flag. | string | false |
112112
| mainContainer | MainContainer defines customization for the foundationdb container. Note: The enableTls setting is ignored for backup agents - use TLS environment variables instead. | ContainerOverrides | false |
113113
| sidecarContainer | SidecarContainer defines customization for the foundationdb-kubernetes-sidecar container. | ContainerOverrides | false |
114114
| imageType | ImageType defines the image type that should be used for the FoundationDBCluster deployment. When the type is set to \"unified\" the deployment will use the new fdb-kubernetes-monitor. Otherwise the main container and the sidecar container will use different images. Default: split | *ImageType | false |

fdbclient/admin_client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,15 +1209,15 @@ protocol fdb00b071010000`,
12091209
),
12101210
Entry(
12111211
"version that supports backup encryption without key",
1212-
"7.3.1",
1212+
fdbv1beta2.Versions.SupportsBackupEncryption.String(),
12131213
"",
12141214
nil,
12151215
false,
12161216
false,
12171217
),
12181218
Entry(
12191219
"version that supports backup encryption with key",
1220-
"7.3.1",
1220+
fdbv1beta2.Versions.SupportsBackupEncryption.String(),
12211221
"/path/to/key",
12221222
nil,
12231223
true,

0 commit comments

Comments
 (0)