Skip to content

Commit

Permalink
helm: extraVolumes support for the Operator
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Schmid <[email protected]>
  • Loading branch information
PhilipSchmid committed Nov 30, 2023
1 parent d88ba28 commit 24e72e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install/kubernetes/templates/operator_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions install/kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 24e72e6

Please sign in to comment.