From 9d564672c5728c987e50eb71d0af45aff30ac11d Mon Sep 17 00:00:00 2001 From: mw Date: Thu, 1 Aug 2024 13:59:15 +0200 Subject: [PATCH] feat(base-cluster/tetragon): don't set image if value empty --- charts/base-cluster/templates/tetragon/tetragon.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/base-cluster/templates/tetragon/tetragon.yaml b/charts/base-cluster/templates/tetragon/tetragon.yaml index f2f0969df8..1f01ff5a8f 100644 --- a/charts/base-cluster/templates/tetragon/tetragon.yaml +++ b/charts/base-cluster/templates/tetragon/tetragon.yaml @@ -18,10 +18,12 @@ spec: namespace: monitoring {{- end }} values: + {{- if .Values.global.imageRegistry }} export: stdout: image: repository: {{ .Values.global.imageRegistry }} + {{- end }} securityContext: capabilities: drop: @@ -31,8 +33,10 @@ spec: tetragonOperator: enabled: false tetragon: + {{- if .Values.global.imageRegistry }} image: repository: {{ .Values.global.imageRegistry }} + {{- end }} enableProcessCred: true enableProcessNs: true {{- if .Values.monitoring.prometheus.enabled }}