From b73e9fd68c9da1fe557c8e4599cc4cd97a59f7ec Mon Sep 17 00:00:00 2001 From: st Date: Wed, 7 Feb 2024 14:22:54 +0100 Subject: [PATCH] feat(base-cluster): add pre-install hook to namespaces --- charts/base-cluster/templates/global/namespaces.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/base-cluster/templates/global/namespaces.yaml b/charts/base-cluster/templates/global/namespaces.yaml index b4bff157dc..b13a20a4ef 100644 --- a/charts/base-cluster/templates/global/namespaces.yaml +++ b/charts/base-cluster/templates/global/namespaces.yaml @@ -4,6 +4,8 @@ kind: Namespace metadata: name: {{ $name }} labels: {{- include "common.labels.standard" $ | nindent 4 -}} + annotations: + "helm.sh/hook": pre-install {{- with $namespace.additionalLabels -}} {{- . | toYaml | nindent 4 -}} {{- end }}