From 9280aa21b17066448e0d2f8ed04875c8f24450dc Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 15 Nov 2023 14:27:55 +0100 Subject: [PATCH] Only use group if filled --- argocd/app-of-apps/templates/applications.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/argocd/app-of-apps/templates/applications.yaml b/argocd/app-of-apps/templates/applications.yaml index 464b17e..e102f54 100644 --- a/argocd/app-of-apps/templates/applications.yaml +++ b/argocd/app-of-apps/templates/applications.yaml @@ -13,8 +13,10 @@ spec: {{- if .ignoreDifferences }} ignoreDifferences: {{- range .ignoreDifferences }} - - group: {{ .group }} - kind: {{ .kind }} + - kind: {{ .kind }} + {{- if .group }} + group: {{ .group }} + {{- end }} name: {{ .name }} namespace: {{ .namespace }} jsonPointers: