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/gitrepository_types.go
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,10 @@ const (
39
39
// GitProviderGitHub provides support for authentication to git
40
40
// repositories using GitHub App authentication
41
41
GitProviderGitHubstring="github"
42
+
43
+
// GitProviderAWS provides support for authentication to AWS CodeCommit
44
+
// repositories using IAM credentials.
45
+
GitProviderAWSstring="aws"
42
46
)
43
47
44
48
const (
@@ -77,7 +81,7 @@ const (
77
81
78
82
// GitRepositorySpec specifies the required configuration to produce an
79
83
// Artifact for a Git repository.
80
-
// +kubebuilder:validation:XValidation:rule="!has(self.serviceAccountName) || (has(self.provider) && self.provider == 'azure')",message="serviceAccountName can only be set when provider is 'azure'"
84
+
// +kubebuilder:validation:XValidation:rule="!has(self.serviceAccountName) || (has(self.provider) && (self.provider == 'azure' || self.provider == 'aws'))",message="serviceAccountName can only be set when provider is 'azure' or 'aws'"
81
85
typeGitRepositorySpecstruct {
82
86
// URL specifies the Git repository URL, it can be an HTTP/S or SSH address.
0 commit comments