From 24e72e61945b2d2e9b8212d364ec3678f55268ad Mon Sep 17 00:00:00 2001 From: Philip Schmid Date: Thu, 30 Nov 2023 17:24:32 +0100 Subject: [PATCH] helm: extraVolumes support for the Operator Signed-off-by: Philip Schmid --- install/kubernetes/templates/operator_deployment.yaml | 6 ++++++ install/kubernetes/values.yaml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/install/kubernetes/templates/operator_deployment.yaml b/install/kubernetes/templates/operator_deployment.yaml index 2c82677b67b..598dd3d775b 100644 --- a/install/kubernetes/templates/operator_deployment.yaml +++ b/install/kubernetes/templates/operator_deployment.yaml @@ -42,6 +42,9 @@ spec: - mountPath: /etc/tetragon/operator.conf.d/ name: tetragon-operator-config readOnly: true + {{- with .Values.tetragonOperator.extraVolumeMounts }} + {{- toYaml . | nindent 10 }} + {{- end }} {{- with .Values.tetragonOperator.podSecurityContext }} securityContext: {{- toYaml . | nindent 10 }} @@ -91,6 +94,9 @@ spec: - name: tetragon-operator-config configMap: name: {{ .Release.Name }}-operator-config + {{- with .Values.tetragonOperator.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.tetragonOperator.strategy }} strategy: {{- toYaml . | nindent 4 }} diff --git a/install/kubernetes/values.yaml b/install/kubernetes/values.yaml index 772592ac13e..daae6fa3c65 100644 --- a/install/kubernetes/values.yaml +++ b/install/kubernetes/values.yaml @@ -208,6 +208,9 @@ tetragonOperator: repository: quay.io/cilium/tetragon-operator tag: v1.0.0 pullPolicy: IfNotPresent + # -- Extra volumes for the Tetragon Operator Deployment. + extraVolumes: [] + extraVolumeMounts: [] # Skip CRD creation. skipCRDCreation: false podInfo: