Skip to content

Commit

Permalink
feat(solution): Create corresponding secrets for argo-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
sylus authored Sep 23, 2024
1 parent 7408279 commit e07094f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/workflows.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ var workflowsCmd = &cobra.Command{
}
}

if !reflect.DeepEqual(serviceAccount.Annotations, currentServiceAccount.Annotations) {
if !reflect.DeepEqual(serviceAccount.Annotations, currentServiceAccount.Annotations) || !reflect.DeepEqual(serviceAccount.Secrets, currentServiceAccount.Secrets) {
klog.Infof("updating service account %s/%s", serviceAccount.Namespace, serviceAccount.Name)
currentServiceAccount.Annotations = serviceAccount.Annotations

currentServiceAccount.Secrets = serviceAccount.Secrets
_, err = kubeClient.CoreV1().ServiceAccounts(serviceAccount.Namespace).Update(context.Background(), currentServiceAccount, metav1.UpdateOptions{})
if err != nil {
return err
Expand Down

0 comments on commit e07094f

Please sign in to comment.