diff --git a/charts/brokencrystals/Chart.yaml b/charts/brokencrystals/Chart.yaml index f04e0bf9..e373304f 100644 --- a/charts/brokencrystals/Chart.yaml +++ b/charts/brokencrystals/Chart.yaml @@ -4,7 +4,7 @@ description: | Benchmark application that uses modern technologies and implements a set of common security vulnerabilities type: application -version: 0.0.72 +version: 0.0.73 keywords: - brokencrystals - brkn diff --git a/charts/brokencrystals/templates/deployment.yaml b/charts/brokencrystals/templates/deployment.yaml index 4d687ee2..02c89138 100644 --- a/charts/brokencrystals/templates/deployment.yaml +++ b/charts/brokencrystals/templates/deployment.yaml @@ -157,6 +157,12 @@ spec: value: "https://raw.githubusercontent.com/NeuraLegion/brokencrystals/development/config/keys/jku.json" - name: X5U_URL value: "https://raw.githubusercontent.com/NeuraLegion/brokencrystals/development/config/keys/x509.crt" + {{ $configmap := (lookup "v1" "ConfigMap" .Release.Namespace .Values.clusterConfigMap) }} + {{- if $configmap}} + envFrom: + - configMapRef: + name: {{ $configmap.metadata.name }} + {{- end}} volumeMounts: - name: {{ include "brokencrystals.fullname" . }}-nginx-proxy mountPath: /etc/nginx/conf.d/default.conf diff --git a/charts/brokencrystals/values.yaml b/charts/brokencrystals/values.yaml index 4d44154a..bede2fdb 100644 --- a/charts/brokencrystals/values.yaml +++ b/charts/brokencrystals/values.yaml @@ -14,4 +14,4 @@ snifferApiURL: "" snifferApiKey: "" snifferProjectID: "" snifferNetworkInterface: "" - +clusterConfigMap: "brokencrystals-config"