Skip to content

Commit 2c79784

Browse files
gasRU76rielas
authored andcommitted
feat: Automatic search and connection of the configmap to the deployment
1 parent 80f0387 commit 2c79784

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

charts/brokencrystals/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: |
44
Benchmark application that uses modern technologies and implements a set of
55
common security vulnerabilities
66
type: application
7-
version: 0.0.72
7+
version: 0.0.73
88
keywords:
99
- brokencrystals
1010
- brkn

charts/brokencrystals/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ spec:
157157
value: "https://raw.githubusercontent.com/NeuraLegion/brokencrystals/development/config/keys/jku.json"
158158
- name: X5U_URL
159159
value: "https://raw.githubusercontent.com/NeuraLegion/brokencrystals/development/config/keys/x509.crt"
160+
{{ $configmap := (lookup "v1" "ConfigMap" .Release.Namespace .Values.clusterConfigMap) }}
161+
{{- if $configmap}}
162+
envFrom:
163+
- configMapRef:
164+
name: {{ $configmap.metadata.name }}
165+
{{- end}}
160166
volumeMounts:
161167
- name: {{ include "brokencrystals.fullname" . }}-nginx-proxy
162168
mountPath: /etc/nginx/conf.d/default.conf

charts/brokencrystals/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ snifferApiURL: ""
1414
snifferApiKey: ""
1515
snifferProjectID: ""
1616
snifferNetworkInterface: ""
17-
17+
clusterConfigMap: "brokencrystals-config"

0 commit comments

Comments
 (0)