Skip to content

Commit

Permalink
Merge pull request kubesphere#2935 from shaowenchen/fix_update_creden…
Browse files Browse the repository at this point in the history
…tial

fix: upgrade credential
  • Loading branch information
ks-ci-bot authored Oct 9, 2020
2 parents a8c9be6 + 1bd6c7f commit 5e7561e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/models/devops/devops.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ func (d devopsOperator) DeleteCredentialObj(projectName string, secret string) e

func (d devopsOperator) UpdateCredentialObj(projectName string, secret *v1.Secret) (*v1.Secret, error) {
projectObj, err := d.ksInformers.Devops().V1alpha3().DevOpsProjects().Lister().Get(projectName)
secret.Annotations[devopsv1alpha3.CredentialAutoSyncAnnoKey] = "true"
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 5e7561e

Please sign in to comment.