Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions charts/rhoso-apps/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,16 @@ Pass dict with key "app" (per-application values map).
{{- $f := default (list "resources-finalizer.argocd.argoproj.io/background") $app.finalizers }}
{{- toYaml $f -}}
{{- end }}

{{/*
Optional spec.ignoreDifferences (Argo CD ignoreDifferences).
Pass dict with key "app" (per-application values map). Omitted if unset or empty.
*/}}
{{- define "rhoso-apps.ignoreDifferences" -}}
{{- $app := .app -}}
{{- $ignore := $app.ignoreDifferences | default list }}
{{- if not (empty $ignore) }}
ignoreDifferences:
{{ toYaml $ignore | indent 4 }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/rhoso-apps/templates/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
{{ include "rhoso-apps.sourceKustomize" (dict "app" $app) }}
destination:
server: {{ include "rhoso-apps.destinationServer" $ }}
{{ include "rhoso-apps.ignoreDifferences" (dict "app" $app) }}
{{ include "rhoso-apps.syncPolicySpec" (dict "app" $app) }}
{{- end }}
{{- end }}
8 changes: 8 additions & 0 deletions charts/rhoso-apps/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@
"resources-finalizer.argocd.argoproj.io/foreground"
]
}
},
"ignoreDifferences": {
"type": "array",
"description": "Argo CD spec.ignoreDifferences to ignore fields during sync comparison.",
"items": {
"type": "object",
"additionalProperties": true
}
}
}
}
Expand Down
Loading