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" . }}