Allow Argo to prune old templates
This commit is contained in:
parent
7470be3569
commit
612cf8f1b5
@ -50,7 +50,8 @@ metadata:
|
||||
# Cluster API complains when old templates disappear before it has rolled all the machines over
|
||||
# When deploying with Helm, leave the resource behind and let Cluster API clean it up
|
||||
helm.sh/resource-policy: keep
|
||||
# Allow Argo to clean up old templates after the cluster has become healthy again
|
||||
argocd.argoproj.io/sync-options: PruneLast=true
|
||||
# Allow Argo to clean up old templates by ignoring the non-controller owner references,
|
||||
# but only after the cluster has become healthy again
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true,PruneLast=true"
|
||||
spec:
|
||||
{{- include "openstack-cluster.controlplane.mt.spec" . | nindent 2 }}
|
||||
|
@ -43,8 +43,9 @@ metadata:
|
||||
# Cluster API complains when old templates disappear before it has rolled all the machines over
|
||||
# When deploying with Helm, leave the resource behind and let Cluster API clean it up
|
||||
helm.sh/resource-policy: keep
|
||||
# Allow Argo to clean up old templates after the cluster has become healthy again
|
||||
argocd.argoproj.io/sync-options: PruneLast=true
|
||||
# Allow Argo to clean up old templates by ignoring the non-controller owner references,
|
||||
# but only after the cluster has become healthy again
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true,PruneLast=true"
|
||||
spec:
|
||||
template:
|
||||
spec: {{ include "openstack-cluster.nodegroup.kct.spec" (list $ $nodeGroup) | nindent 6 }}
|
||||
|
@ -59,7 +59,8 @@ metadata:
|
||||
# Cluster API complains when old templates disappear before it has rolled all the machines over
|
||||
# When deploying with Helm, leave the resource behind and let Cluster API clean it up
|
||||
helm.sh/resource-policy: keep
|
||||
# Allow Argo to clean up old templates after the cluster has become healthy again
|
||||
argocd.argoproj.io/sync-options: PruneLast=true
|
||||
# Allow Argo to clean up old templates by ignoring the non-controller owner references,
|
||||
# but only after the cluster has become healthy again
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true,PruneLast=true"
|
||||
spec: {{ include "openstack-cluster.nodegroup.mt.spec" (list $ $nodeGroup) | nindent 2 }}
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user