Skip to content

Commit 2259adc

Browse files
set defaults for existing secret keys
1 parent 09e983f commit 2259adc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

itscontained/statping/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: statping
33
description: Status page for monitoring your websites and applications
44
type: application
5-
version: 0.1.1
5+
version: 0.1.2
66
appVersion: v0.90.65
77
keywords:
88
- statping

itscontained/statping/templates/deployment.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ spec:
5151
secretKeyRef:
5252
{{- if .Values.statping.admin.existingSecret.enabled }}
5353
name: {{ .Values.statping.admin.existingSecret.name | quote }}
54-
key: {{ .Values.statping.admin.existingSecret.userKey | quote }}
54+
key: {{ .Values.statping.admin.existingSecret.userKey | default "admin-user" }}
5555
{{- else }}
5656
name: {{ include "statping.fullname" . }}
5757
key: admin-user
@@ -61,7 +61,7 @@ spec:
6161
secretKeyRef:
6262
{{- if .Values.statping.admin.existingSecret.enabled }}
6363
name: {{ .Values.statping.admin.existingSecret.name | quote }}
64-
key: {{ .Values.statping.admin.existingSecret.passwordKey | quote }}
64+
key: {{ .Values.statping.admin.existingSecret.passwordKey | default "admin-password" }}
6565
{{- else }}
6666
name: {{ include "statping.fullname" . }}
6767
key: admin-password
@@ -71,7 +71,7 @@ spec:
7171
secretKeyRef:
7272
{{- if .Values.statping.admin.existingSecret.enabled }}
7373
name: {{ .Values.statping.admin.existingSecret.name | quote }}
74-
key: {{ .Values.statping.admin.existingSecret.emailKey | quote }}
74+
key: {{ .Values.statping.admin.existingSecret.emailKey | default "admin-email" }}
7575
{{- else }}
7676
name: {{ include "statping.fullname" . }}
7777
key: admin-email

0 commit comments

Comments
 (0)