Skip to content

Commit

Permalink
Merge branch 'main' into CCIE-2745-update-helm-chart-to-include-exter…
Browse files Browse the repository at this point in the history
…nal-secret-cr-ds-for-env-level-and-stack-level
  • Loading branch information
hspitzley-czi authored May 21, 2024
2 parents c5635b3 + 151503c commit 972fc47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions stack/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ Create the name of the service account to use
{{- end }}

{{- define "service.configuration" -}}

{{- if .Values.env }}
env:
{{- range $i, $value := .Values.env }}
- name: {{ $value.name }}
value: {{ $value.value }}
{{- end }}
{{- end }}

{{- if or (or (or (ne (trim .Values.appSecrets.envSecret.secretName) "") (ne (trim .Values.appSecrets.envSecret.secretName) "")) (ne (trim .Values.appContext.envContextConfigMapName) "")) (ne (trim .Values.appContext.stackContextConfigMapName) "") -}}
envFrom:
{{- if ne (trim .Values.appSecrets.envSecret.secretName) "" }}
Expand Down
2 changes: 2 additions & 0 deletions stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ global:

topologySpreadConstraints: []

env: []

# Service overrides
services: {}
# service1:
Expand Down

0 comments on commit 972fc47

Please sign in to comment.