diff --git a/pkg/simple/client/devops/credential.go b/pkg/simple/client/devops/credential.go index e1e39719b..c5336b00f 100644 --- a/pkg/simple/client/devops/credential.go +++ b/pkg/simple/client/devops/credential.go @@ -21,8 +21,8 @@ type Credential struct { } `json:"ranges,omitempty" description:"The build number of all pipelines that use this credential"` } `json:"usage,omitempty" description:"all usage of Credential"` } `json:"fingerprint,omitempty" description:"usage of the Credential"` - Description string `json:"description,omitempty" description:"Credential's description'"` - Domain string `json:"domain,omitempty" description:"Credential's domain,In ks we only use the default domain, default '_''"` + Description string `json:"description,omitempty" description:"Credential's description'"` + Domain string `json:"domain,omitempty" description:"Credential's domain,In ks we only use the default domain, default '_''"` } type UsernamePasswordCredential struct { diff --git a/pkg/simple/client/devops/fake/fakedevops.go b/pkg/simple/client/devops/fake/fakedevops.go index d9424f28e..5ab002068 100644 --- a/pkg/simple/client/devops/fake/fakedevops.go +++ b/pkg/simple/client/devops/fake/fakedevops.go @@ -24,9 +24,9 @@ type Devops struct { func New(projects ...string) *Devops { d := &Devops{ - Data: nil, - Projects: map[string]interface{}{}, - Pipelines: map[string]map[string]*devopsv1alpha3.Pipeline{}, + Data: nil, + Projects: map[string]interface{}{}, + Pipelines: map[string]map[string]*devopsv1alpha3.Pipeline{}, Credentials: map[string]map[string]*v1.Secret{}, } for _, p := range projects { @@ -36,9 +36,9 @@ func New(projects ...string) *Devops { } func NewWithPipelines(project string, pipelines ...*devopsv1alpha3.Pipeline) *Devops { d := &Devops{ - Data: nil, - Projects: map[string]interface{}{}, - Pipelines: map[string]map[string]*devopsv1alpha3.Pipeline{}, + Data: nil, + Projects: map[string]interface{}{}, + Pipelines: map[string]map[string]*devopsv1alpha3.Pipeline{}, Credentials: map[string]map[string]*v1.Secret{}, }