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: api/v1/bucket_types.go
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,8 @@ const (
33
33
// BucketProviderGeneric for any S3 API compatible storage Bucket.
34
34
BucketProviderGenericstring="generic"
35
35
// BucketProviderAmazon for an AWS S3 object storage Bucket.
36
-
// Provides support for retrieving credentials from the AWS EC2 service.
36
+
// Provides support for retrieving credentials from the AWS EC2 service
37
+
// and workload identity authentication.
37
38
BucketProviderAmazonstring="aws"
38
39
// BucketProviderGoogle for a Google Cloud Storage Bucket.
39
40
// Provides support for authentication using a workload identity.
@@ -51,7 +52,7 @@ const (
51
52
// +kubebuilder:validation:XValidation:rule="self.provider != 'generic' || !has(self.sts) || self.sts.provider == 'ldap'", message="'ldap' is the only supported STS provider for the 'generic' Bucket provider"
52
53
// +kubebuilder:validation:XValidation:rule="!has(self.sts) || self.sts.provider != 'aws' || !has(self.sts.secretRef)", message="spec.sts.secretRef is not required for the 'aws' STS provider"
53
54
// +kubebuilder:validation:XValidation:rule="!has(self.sts) || self.sts.provider != 'aws' || !has(self.sts.certSecretRef)", message="spec.sts.certSecretRef is not required for the 'aws' STS provider"
54
-
// +kubebuilder:validation:XValidation:rule="self.provider == 'gcp' || !has(self.serviceAccountName)", message="ServiceAccountName is only supported for the 'gcp' Bucket provider"
55
+
// +kubebuilder:validation:XValidation:rule="self.provider == 'gcp' || self.provider == 'aws' || !has(self.serviceAccountName)", message="ServiceAccountName is only supported for the 'gcp' and 'aws' Bucket providers"
55
56
// +kubebuilder:validation:XValidation:rule="!has(self.secretRef) || !has(self.serviceAccountName)", message="cannot set both .spec.secretRef and .spec.serviceAccountName"
0 commit comments