fix
This commit is contained in:
@@ -54,13 +54,15 @@ spec:
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
{{- if $config.serverSideApply }}
|
||||
{{- if $config.replace }}
|
||||
# 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
|
||||
# created outside Argo (no last-applied-configuration annotation for
|
||||
# a normal patch to diff against) and has a field the new manifest
|
||||
# changes type on (e.g. an env var moving from `value` to
|
||||
# `valueFrom`) — a patch can add the new field without clearing the
|
||||
# old one, which the API rejects either way, patch or SSA. Replace
|
||||
# does a full PUT of the whole object instead of a merge, so the
|
||||
# submitted spec never contains the stale field at all.
|
||||
- Replace=true
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user