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
add bucketaccess(class) types, and tidy all CEL rules
Add Kubernetes API (client) types for BucketAccess and
BucketAccessClass. Since these are the last API types, also standardize
CEL rule invocations for existing types.
Signed-off-by: Blaine Gardner <[email protected]>
// BucketAccessStatus defines the observed state of BucketAccess.
94
+
// +kubebuilder:validation:XValidation:message="accountID is immutable once set",rule="!has(oldSelf.accountID) || has(self.accountID)"
95
+
// +kubebuilder:validation:XValidation:message="accessedBuckets is immutable once set",rule="!has(oldSelf.accessedBuckets) || has(self.accessedBuckets)"
96
+
// +kubebuilder:validation:XValidation:message="driverName is immutable once set",rule="!has(oldSelf.driverName) || has(self.driverName)"
97
+
// +kubebuilder:validation:XValidation:message="authenticationType is immutable once set",rule="!has(oldSelf.authenticationType) || has(self.authenticationType)"
98
+
// +kubebuilder:validation:XValidation:message="parameters is immutable once set",rule="!has(oldSelf.parameters) || has(self.parameters)"
50
99
typeBucketAccessStatusstruct {
51
-
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
52
-
// Important: Run "make" to regenerate code after modifying this file
// BucketClaimStatus defines the observed state of BucketClaim.
54
+
// +kubebuilder:validation:XValidation:message="boundBucketName is immutable once set",rule="!has(oldSelf.boundBucketName) || has(self.boundBucketName)"
55
+
// +kubebuilder:validation:XValidation:message="protocols is immutable once set",rule="!has(oldSelf.protocols) || has(self.protocols)"
49
56
typeBucketClaimStatusstruct {
50
57
// boundBucketName is the name of the Bucket this BucketClaim is bound to.
51
-
// Once set, this is immutable.
52
-
// +kubebuilder:validation:XValidation:message="boundBucketName is immutable",rule="oldSelf == '' || self == oldSelf"
58
+
// +optional
59
+
// +kubebuilder:validation:MaxLength=253
60
+
// +kubebuilder:validation:XValidation:message="boundBucketName is immutable once set",rule="oldSelf == '' || self == oldSelf"
53
61
BoundBucketNamestring`json:"boundBucketName"`
54
62
55
63
// readyToUse indicates that the bucket is ready for consumption by workloads.
0 commit comments