You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/apis/objectstorage/v1alpha2/bucket_types.go
+29-10Lines changed: 29 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,11 @@ const (
42
42
// +kubebuilder:validation:XValidation:message="existingBucketID cannot be added or removed after creation",rule="has(oldSelf.existingBucketID) == has(self.existingBucketID)"
43
43
typeBucketSpecstruct {
44
44
// driverName is the name of the driver that fulfills requests for this Bucket.
45
+
// Must be 63 characters or less, beginning and ending with an alphanumeric character
46
+
// ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between.
45
47
// +required
46
-
// +kubebuilder:validation:MinLength=1
47
48
// +kubebuilder:validation:XValidation:message="driverName is immutable",rule="self == oldSelf"
48
-
DriverNamestring`json:"driverName,omitempty"`
49
+
DriverNameDriverName`json:"driverName,omitempty"`
49
50
50
51
// deletionPolicy determines whether a Bucket should be deleted when its bound BucketClaim is
51
52
// deleted. This is mutable to allow Admins to change the policy after creation.
@@ -58,52 +59,68 @@ type BucketSpec struct {
58
59
// parameters is an opaque map of driver-specific configuration items passed to the driver that
59
60
// fulfills requests for this Bucket.
60
61
// +optional
62
+
// +kubebuilder:validation:MinProperties=1
61
63
// +kubebuilder:validation:XValidation:message="parameters map is immutable",rule="self == oldSelf"
0 commit comments