From 6f8d5a634c723efa4cebe4e192b3d6bfb51c7fbc Mon Sep 17 00:00:00 2001 From: Jina Jain Date: Thu, 16 Jan 2025 17:06:39 -0800 Subject: [PATCH] keep hook annotations for crds installed from upstream operator chart (#1620) --- .../templates/operator/instrumentation.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helm-charts/splunk-otel-collector/templates/operator/instrumentation.yaml b/helm-charts/splunk-otel-collector/templates/operator/instrumentation.yaml index 3d4cfea471..9ad4b4d9fa 100644 --- a/helm-charts/splunk-otel-collector/templates/operator/instrumentation.yaml +++ b/helm-charts/splunk-otel-collector/templates/operator/instrumentation.yaml @@ -13,6 +13,11 @@ metadata: release: {{ .Release.Name }} heritage: {{ .Release.Service }} app.kubernetes.io/component: otel-operator +{{- if .Values.operator.crds.create }} + annotations: + "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook-weight": "5" +{{- end }} spec: exporter: endpoint: {{ include "splunk-otel-collector.operator.instrumentation-exporter-endpoint" . }}