Switch to sync option for respecting only controller refs

This commit is contained in:
Matt Pryor 2023-02-01 11:50:01 +00:00
parent 5ff5db625c
commit 303a4c02e4
3 changed files with 6 additions and 6 deletions

View File

@ -6,8 +6,8 @@ metadata:
name: {{ include "openstack-cluster.componentName" (list . "control-plane") }}
labels: {{ include "openstack-cluster.componentLabels" (list . "control-plane") | nindent 4 }}
annotations:
# Argo should manage this resource even though it has an owner ref for the cluster
argocd.argoproj.io/managed-resource: "true"
# Tell Argo to ignore the non-controller owner references for this object
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
spec:
clusterName: {{ include "openstack-cluster.clusterName" . }}
selector:

View File

@ -9,8 +9,8 @@ metadata:
{{- include "openstack-cluster.componentLabels" (list $ "worker") | nindent 4 }}
{{ $.Values.projectPrefix }}/node-group: {{ $nodeGroup.name }}
annotations:
# Argo should manage this resource even though it has an owner ref for the cluster
argocd.argoproj.io/managed-resource: "true"
# Tell Argo to ignore the non-controller owner references for this object
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
{{- if $nodeGroup.autoscale }}
{{-
$machineCountMin := $nodeGroup.machineCountMin |

View File

@ -10,8 +10,8 @@ metadata:
{{- include "openstack-cluster.componentLabels" (list $ "worker") | nindent 4 }}
{{ $.Values.projectPrefix }}/node-group: {{ $nodeGroup.name }}
annotations:
# Argo should manage this resource even though it has an owner ref for the cluster
argocd.argoproj.io/managed-resource: "true"
# Tell Argo to ignore the non-controller owner references for this object
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
spec:
clusterName: {{ include "openstack-cluster.clusterName" $ }}
selector: