From ea3eecfa04ab79df70176ba997142df67e2dab08 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Mon, 25 Dec 2023 20:55:26 +0300 Subject: [PATCH] :hammer: Move `SCRIPTING_ENV` from `ConfigMap` to `Secret` --- helm-chart/templates/12-config-map.yaml | 1 - helm-chart/templates/13-secret.yaml | 1 + manifests/complete.yaml | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm-chart/templates/12-config-map.yaml b/helm-chart/templates/12-config-map.yaml index 6d3069770..034ee8945 100644 --- a/helm-chart/templates/12-config-map.yaml +++ b/helm-chart/templates/12-config-map.yaml @@ -9,7 +9,6 @@ metadata: data: POD_REGEX: '{{ .Values.tap.regex }}' NAMESPACES: '{{ gt (len .Values.tap.namespaces) 0 | ternary (join "," .Values.tap.namespaces) "" }}' - SCRIPTING_ENV: '{{ .Values.scripting.env | toJson }}' SCRIPTING_SCRIPTS: '{}' AUTH_ENABLED: '{{ .Values.tap.auth.enabled | ternary "true" "" }}' AUTH_APPROVED_EMAILS: '{{ gt (len .Values.tap.auth.approvedEmails) 0 | ternary (join "," .Values.tap.auth.approvedEmails) "" }}' diff --git a/helm-chart/templates/13-secret.yaml b/helm-chart/templates/13-secret.yaml index 87c816035..8a97c85d3 100644 --- a/helm-chart/templates/13-secret.yaml +++ b/helm-chart/templates/13-secret.yaml @@ -8,3 +8,4 @@ metadata: {{- include "kubeshark.labels" . | nindent 4 }} stringData: LICENSE: '{{ .Values.license }}' + SCRIPTING_ENV: '{{ .Values.scripting.env | toJson }}' diff --git a/manifests/complete.yaml b/manifests/complete.yaml index d03e8969f..f601f8ef3 100644 --- a/manifests/complete.yaml +++ b/manifests/complete.yaml @@ -28,6 +28,7 @@ metadata: app.kubernetes.io/managed-by: Helm stringData: LICENSE: '' + SCRIPTING_ENV: '{}' --- # Source: kubeshark/templates/11-nginx-config-map.yaml apiVersion: v1 @@ -93,7 +94,6 @@ metadata: data: POD_REGEX: '.*' NAMESPACES: '' - SCRIPTING_ENV: '{}' SCRIPTING_SCRIPTS: '{}' AUTH_ENABLED: '' AUTH_APPROVED_EMAILS: ''