use env
and envFrom
This commit is contained in:
parent
f774dc2766
commit
ae6224fe57
3 changed files with 27 additions and 19 deletions
|
@ -60,18 +60,3 @@ Create the name of the service account to use
|
||||||
{{- default "default" .Values.serviceAccount.name }}
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Inject extra environment populated by secrets, if populated
|
|
||||||
*/}}
|
|
||||||
{{- define "ntfy.extraSecretEnvironmentVars" -}}
|
|
||||||
{{- if .extraSecretEnvironmentVars -}}
|
|
||||||
{{- range .extraSecretEnvironmentVars }}
|
|
||||||
- name: {{ .envName }}
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: {{ .secretName }}
|
|
||||||
key: {{ .secretKey }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
|
@ -46,6 +46,15 @@ spec:
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "ntfy.fullname" . }}-env
|
name: {{ include "ntfy.fullname" . }}-env
|
||||||
|
{{- if .Values.envFrom }}
|
||||||
|
{{- range .envFrom }}
|
||||||
|
- name: {{ .envName }}
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .secretName }}
|
||||||
|
key: {{ .secretKey }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.service.http.port }}
|
containerPort: {{ .Values.service.http.port }}
|
||||||
|
|
|
@ -14,6 +14,16 @@ imagePullSecrets: []
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
|
# - name:
|
||||||
|
# value:
|
||||||
|
env: []
|
||||||
|
# - name:
|
||||||
|
# valueFrom:
|
||||||
|
# secretKeyRef:
|
||||||
|
# name:
|
||||||
|
# key:
|
||||||
|
envFrom: []
|
||||||
|
|
||||||
ntfy:
|
ntfy:
|
||||||
baseURL: "https://ntfy.example.org"
|
baseURL: "https://ntfy.example.org"
|
||||||
listen:
|
listen:
|
||||||
|
@ -141,10 +151,12 @@ serviceAccount:
|
||||||
podLabels: {}
|
podLabels: {}
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
podSecurityContext: {}
|
podSecurityContext:
|
||||||
|
{}
|
||||||
# fsGroup: 2000
|
# fsGroup: 2000
|
||||||
|
|
||||||
securityContext: {}
|
securityContext:
|
||||||
|
{}
|
||||||
# capabilities:
|
# capabilities:
|
||||||
# drop:
|
# drop:
|
||||||
# - ALL
|
# - ALL
|
||||||
|
@ -165,7 +177,8 @@ service:
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className: ""
|
className: ""
|
||||||
annotations: {}
|
annotations:
|
||||||
|
{}
|
||||||
# kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
# kubernetes.io/tls-acme: "true"
|
# kubernetes.io/tls-acme: "true"
|
||||||
hosts:
|
hosts:
|
||||||
|
@ -178,7 +191,8 @@ ingress:
|
||||||
# hosts:
|
# hosts:
|
||||||
# - chart-example.local
|
# - chart-example.local
|
||||||
|
|
||||||
resources: {}
|
resources:
|
||||||
|
{}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
||||||
|
|
Loading…
Add table
Reference in a new issue