Fixed oversight of populating environment in deployment only if secrets is populated

This commit is contained in:
2023-11-04 13:18:01 +01:00
parent c0a8c4517e
commit 382954e613
3 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ apiVersion: v2
name: template name: template
description: A Helm library chart containing common templates, keeping application templates short description: A Helm library chart containing common templates, keeping application templates short
type: library type: library
version: 0.2.0 version: 0.2.1
maintainers: maintainers:
- name: Jim Martens - name: Jim Martens
url: https://2martens.de url: https://2martens.de
@@ -10,8 +10,8 @@ sources:
- https://git.2martens.de/2martens/cloud-configuration - https://git.2martens.de/2martens/cloud-configuration
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: added - kind: fixed
description: Added support for Vault Secrets description: No longer necessary to populate secrets value if vault is enabled.
artifacthub.io/signKey: | artifacthub.io/signKey: |
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8 fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
+1
View File
@@ -137,6 +137,7 @@ autoscaling:
# targetMemoryUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80
vault: vault:
# If enabled, no ordinary secret resource will be created, even if secrets value is populated.
enabled: false enabled: false
# name of the Vault secrets applications # name of the Vault secrets applications
applicationName: "" applicationName: ""
+1 -1
View File
@@ -41,7 +41,7 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.secrets }} {{- if or .Values.secrets .Values.vault.enabled }}
envFrom: envFrom:
- secretRef: - secretRef:
name: {{ include "template.fullname" . }} name: {{ include "template.fullname" . }}