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/v1beta2/bucket_types.go
+26
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,8 @@ const (
49
49
50
50
// BucketSpec specifies the required configuration to produce an Artifact for
51
51
// an object storage bucket.
52
+
// +kubebuilder:validation:XValidation:rule="self.provider == 'aws' || !has(self.sts)", message="STS configuration is only supported for the 'aws' Bucket provider"
53
+
// +kubebuilder:validation:XValidation:rule="self.provider != 'aws' || !has(self.sts) || self.sts.provider == 'aws'", message="'aws' is the only supported STS provider for the 'aws' Bucket provider"
52
54
typeBucketSpecstruct {
53
55
// Provider of the object storage bucket.
54
56
// Defaults to 'generic', which expects an S3 (API) compatible object
@@ -66,6 +68,14 @@ type BucketSpec struct {
66
68
// +required
67
69
Endpointstring`json:"endpoint"`
68
70
71
+
// STS specifies the required configuration to use a Security Token
72
+
// Service for fetching temporary credentials to authenticate in a
73
+
// Bucket provider.
74
+
//
75
+
// This field is only supported for the `aws` provider.
76
+
// +optional
77
+
STS*BucketSTSSpec`json:"sts,omitempty"`
78
+
69
79
// Insecure allows connecting to a non-TLS HTTP Endpoint.
*conditions.TrueCondition(sourcev1.FetchFailedCondition, sourcev1.AuthenticationFailedReason, "STS configuration is not supported for 'some-provider' bucket provider"),
0 commit comments