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
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,7 @@ const (
77
77
78
78
// GitRepositorySpec specifies the required configuration to produce an
79
79
// 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'"
80
81
typeGitRepositorySpecstruct {
81
82
// URL specifies the Git repository URL, it can be an HTTP/S or SSH address.
0 commit comments