From e07094fd71550553d727ada480e83240086986ed Mon Sep 17 00:00:00 2001 From: William H Date: Mon, 23 Sep 2024 13:36:24 -0400 Subject: [PATCH] feat(solution): Create corresponding secrets for argo-controller --- cmd/workflows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/workflows.go b/cmd/workflows.go index 21d418d..be030d8 100644 --- a/cmd/workflows.go +++ b/cmd/workflows.go @@ -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