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 kube-api-linter to `make lint`.
kube-api-linter is based on golangci-lint v2, so it is upgraded to the
latest version.
kube-api-linter could be integrated with COSI CI in many ways. After
experimentation, it is fastest to run it as a standalone install rather
than build it each time `make lint` is run.
Signed-off-by: Blaine Gardner <[email protected]>
Copy file name to clipboardExpand all lines: client/apis/objectstorage/v1alpha2/bucket_types.go
+29-27Lines changed: 29 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -37,23 +37,23 @@ const (
37
37
)
38
38
39
39
// BucketSpec defines the desired state of Bucket
40
-
// +kubebuilder:validation:XValidation:message="parameters map is immutable",rule="has(oldSelf.parameters) == has(self.parameters)"
41
-
// +kubebuilder:validation:XValidation:message="protocols list is immutable",rule="has(oldSelf.protocols) == has(self.protocols)"
42
-
// +kubebuilder:validation:XValidation:message="existingBucketID is immutable",rule="has(oldSelf.existingBucketID) == has(self.existingBucketID)"
40
+
// +kubebuilder:validation:XValidation:message="parameters map cannot be added or removed after creation",rule="has(oldSelf.parameters) == has(self.parameters)"
41
+
// +kubebuilder:validation:XValidation:message="protocols list cannot be added or removed after creation",rule="has(oldSelf.protocols) == has(self.protocols)"
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
45
// +required
46
46
// +kubebuilder:validation:MinLength=1
47
47
// +kubebuilder:validation:XValidation:message="driverName is immutable",rule="self == oldSelf"
48
-
DriverNamestring`json:"driverName"`
48
+
DriverNamestring`json:"driverName,omitempty"`
49
49
50
50
// deletionPolicy determines whether a Bucket should be deleted when its bound BucketClaim is
51
51
// deleted. This is mutable to allow Admins to change the policy after creation.
52
52
// Possible values:
53
53
// - Retain: keep both the Bucket object and the backend bucket
54
54
// - Delete: delete both the Bucket object and the backend bucket
0 commit comments