Skip to content

Commit 36a2b62

Browse files
author
Milla Samuel
committed
Update docs and length validation
1 parent 3ece4e7 commit 36a2b62

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

api/v1beta2/foundationdbrestore_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ type FoundationDBRestoreSpec struct {
6666
// +kubebuilder:validation:MaxLength=4096
6767
EncryptionKeyPath string `json:"encryptionKeyPath,omitempty"`
6868

69-
// Instead of the latest version the backup can be restored to, restore to BackupVersion.
69+
// Instead of the latest version the backup can be restored to, restore to the specified version.
70+
// +kubebuilder:validation:MaxLength=13
7071
BackupVersion string `json:"backupVersion,omitempty"`
7172
}
7273

config/crd/bases/apps.foundationdb.org_foundationdbrestores.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ spec:
3737
spec:
3838
properties:
3939
backupVersion:
40+
maxLength: 13
4041
type: string
4142
blobStoreConfiguration:
4243
properties:

docs/restore_spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ FoundationDBRestoreSpec describes the desired state of the backup for a cluster.
5656
| blobStoreConfiguration | This is the configuration of the target blobstore for this backup. | *BlobStoreConfiguration | false |
5757
| customParameters | CustomParameters defines additional parameters to pass to the backup agents. | FoundationDBCustomParameters | false |
5858
| encryptionKeyPath | The path to the encryption key used to encrypt the backup. | string | false |
59-
| backupVersion | Instead of the latest version the backup can be restored to, restore to BackupVersion. | string | false |
59+
| backupVersion | Instead of the latest version the backup can be restored to, restore to the specified version. | string | false |
6060

6161
[Back to TOC](#table-of-contents)
6262

0 commit comments

Comments
 (0)