Skip to content

Commit

Permalink
feat: Automatic search and connection of the configmap to the deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
gasRU76 authored and rielas committed Jun 11, 2024
1 parent 80f0387 commit 2c79784
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/brokencrystals/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions charts/brokencrystals/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion charts/brokencrystals/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ snifferApiURL: ""
snifferApiKey: ""
snifferProjectID: ""
snifferNetworkInterface: ""

clusterConfigMap: "brokencrystals-config"

0 comments on commit 2c79784

Please sign in to comment.