This commit is contained in:
Mukul Sharma
2026-08-31 01:13:53 +05:30
parent 2113642f3c
commit 7f1ef661be
2 changed files with 17 additions and 1 deletions
@@ -54,4 +54,13 @@ spec:
syncPolicy:
syncOptions:
- CreateNamespace=true
{{- if $config.serverSideApply }}
# Opt-in per appSpec entry. Needed when adopting a resource that was
# created outside Argo and has fields the new manifest changes type
# on (e.g. an env var moving from `value` to `valueFrom`) — a plain
# strategic-merge patch can add the new field without clearing the
# old one, which the API rejects. SSA transfers field ownership
# correctly instead.
- ServerSideApply=true
{{- end }}
{{- end }}