Update Argo annotations for addons + templates
This commit is contained in:
parent
303a4c02e4
commit
7470be3569
@ -34,6 +34,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "cni-calico") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "cni-calico") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -49,6 +49,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "cni-cilium") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "cni-cilium") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -20,6 +20,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list $ $name) }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list $ $name) | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" $ }}
|
||||
bootstrap: true
|
||||
@ -53,6 +56,9 @@ kind: Manifests
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list $ $name) }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list $ $name) | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" $ }}
|
||||
bootstrap: true
|
||||
|
@ -27,6 +27,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "ingress-nginx") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "ingress-nginx") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -24,6 +24,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "kubernetes-dashboard") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "kubernetes-dashboard") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -61,13 +61,15 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "mellanox-network-operator") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "mellanox-network-operator") | nindent 4 }}
|
||||
# When using the Argo addon provider, we want to use kubectl apply
|
||||
# This is because some of the resources fail to validate when using server-side apply
|
||||
# See https://github.com/Mellanox/network-operator/issues/452
|
||||
#
|
||||
# We use the annotation rather than the spec so that the resource is compatible with
|
||||
# both the legacy and Argo addon providers
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
# When using the Argo addon provider, we want to use regular apply for the generated app
|
||||
# This is because some of the resources fail to validate when using server-side apply
|
||||
# See https://github.com/Mellanox/network-operator/issues/452
|
||||
#
|
||||
# We use the annotation rather than the spec so that the resource is compatible with
|
||||
# both the legacy and Argo addon providers
|
||||
addons.stackhpc.com/sync-options: |
|
||||
{ "serverSideApply": false }
|
||||
spec:
|
||||
|
@ -21,6 +21,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "metrics-server") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "metrics-server") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -61,6 +61,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "kube-prometheus-stack") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "kube-prometheus-stack") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
@ -80,6 +83,9 @@ kind: Manifests
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "kube-prometheus-stack-dashboards") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "kube-prometheus-stack-dashboards") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -27,6 +27,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "loki-stack") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "loki-stack") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
@ -46,6 +49,9 @@ kind: Manifests
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "loki-stack-dashboards") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "loki-stack-dashboards") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -48,6 +48,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "node-feature-discovery") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "node-feature-discovery") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -71,13 +71,15 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "nvidia-gpu-operator") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "nvidia-gpu-operator") | nindent 4 }}
|
||||
# When using the Argo addon provider, we want to use kubectl apply
|
||||
# This is because some of the resources fail to validate when using server-side apply
|
||||
# See https://github.com/NVIDIA/gpu-operator/issues/478
|
||||
#
|
||||
# We use the annotation rather than the spec so that the resource is compatible with
|
||||
# both the legacy and Argo addon providers
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
# When using the Argo addon provider, we want to use kubectl apply
|
||||
# This is because some of the resources fail to validate when using server-side apply
|
||||
# See https://github.com/NVIDIA/gpu-operator/issues/478
|
||||
#
|
||||
# We use the annotation rather than the spec so that the resource is compatible with
|
||||
# both the legacy and Argo addon providers
|
||||
addons.stackhpc.com/sync-options: |
|
||||
{ "serverSideApply": false }
|
||||
spec:
|
||||
|
@ -35,6 +35,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "ccm-openstack") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "ccm-openstack") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -5,6 +5,9 @@ kind: Manifests
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "cloud-config") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "cloud-config") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -62,6 +62,9 @@ kind: HelmRelease
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "csi-cinder") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "csi-cinder") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
@ -82,6 +85,9 @@ kind: Manifests
|
||||
metadata:
|
||||
name: {{ include "cluster-addons.componentName" (list . "csi-cinder-storageclass") }}
|
||||
labels: {{ include "cluster-addons.componentLabels" (list . "csi-cinder-storageclass") | nindent 4 }}
|
||||
annotations:
|
||||
# Tell Argo to ignore the non-controller owner references for this object
|
||||
argocd.argoproj.io/sync-options: "ControllerReferencesOnly=true"
|
||||
spec:
|
||||
clusterName: {{ include "cluster-addons.clusterName" . }}
|
||||
bootstrap: true
|
||||
|
@ -50,6 +50,7 @@ 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
|
||||
# NOTE: Argo won't delete this object itself as it has an owner reference to the cluster
|
||||
# Allow Argo to clean up old templates after the cluster has become healthy again
|
||||
argocd.argoproj.io/sync-options: PruneLast=true
|
||||
spec:
|
||||
{{- include "openstack-cluster.controlplane.mt.spec" . | nindent 2 }}
|
||||
|
@ -43,7 +43,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
|
||||
# NOTE: Argo won't delete this object itself as it has an owner reference to the cluster
|
||||
# Allow Argo to clean up old templates after the cluster has become healthy again
|
||||
argocd.argoproj.io/sync-options: PruneLast=true
|
||||
spec:
|
||||
template:
|
||||
spec: {{ include "openstack-cluster.nodegroup.kct.spec" (list $ $nodeGroup) | nindent 6 }}
|
||||
|
@ -59,6 +59,7 @@ 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
|
||||
# NOTE: Argo won't delete this object itself as it has an owner reference to the cluster
|
||||
# Allow Argo to clean up old templates after the cluster has become healthy again
|
||||
argocd.argoproj.io/sync-options: PruneLast=true
|
||||
spec: {{ include "openstack-cluster.nodegroup.mt.spec" (list $ $nodeGroup) | nindent 2 }}
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user