1
0
mirror of https://github.com/rancher/types.git synced 2025-09-18 16:10:58 +00:00

Add new fields for secret references

This commit is contained in:
Colleen Murphy
2022-02-17 15:27:53 -08:00
parent 2f606d0074
commit ead316d07a
5 changed files with 18 additions and 7 deletions

View File

@@ -65,9 +65,10 @@ type SourceCodeProviderConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
ProjectName string `json:"projectName" norman:"required,type=reference[project]"`
Type string `json:"type" norman:"noupdate,options=github|gitlab|bitbucketcloud|bitbucketserver"`
Enabled bool `json:"enabled,omitempty"`
ProjectName string `json:"projectName" norman:"required,type=reference[project]"`
Type string `json:"type" norman:"noupdate,options=github|gitlab|bitbucketcloud|bitbucketserver"`
Enabled bool `json:"enabled,omitempty"`
CredentialSecret string `json:"credentialSecret,omitempty" norman:"nocreate,noupdate"`
}
func (s *SourceCodeProviderConfig) ObjClusterName() string {