mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 01:38:43 +00:00
don't compare secrets, since argo-cd doesn't have access to their data (#1459)
This commit is contained in:
parent
a51441546c
commit
db82456dde
1 changed files with 5 additions and 1 deletions
|
|
@ -705,7 +705,11 @@ func NewApplicationDiffCommand(clientOpts *argocdclient.ClientOptions) *cobra.Co
|
|||
errors.CheckError(err)
|
||||
key = kube.GetResourceKey(target)
|
||||
}
|
||||
|
||||
if key.Kind == "Secret" {
|
||||
// Don't bother comparing secrets, argo-cd doesn't have access to k8s secret data
|
||||
delete(localObjs, key)
|
||||
continue
|
||||
}
|
||||
if local, ok := localObjs[key]; ok || live != nil {
|
||||
if local != nil && !kube.IsCRD(local) {
|
||||
err = kube.SetAppInstanceLabel(local, argoSettings.AppLabelKey, appName)
|
||||
|
|
|
|||
Loading…
Reference in a new issue