add configDB.cong support with secret
Some checks are pending
Build Helm Chart / helm-package (pull_request) Waiting to run
Some checks are pending
Build Helm Chart / helm-package (pull_request) Waiting to run
This commit is contained in:
15
templates/secret.yaml
Normal file
15
templates/secret.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
{{- if eq .Values.configtype "configDB" }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-db-config-secret
|
||||
labels:
|
||||
app: {{ .Release.Name }}
|
||||
type: Opaque
|
||||
data:
|
||||
configDB.conf: |
|
||||
{{- $connection := .Values.dbConfig.connection | quote }}
|
||||
{{- $user := .Values.dbConfig.user | quote }}
|
||||
{{- $password := .Values.dbConfig.password | quote }}
|
||||
{{- printf "%%dbconfig= (\n connection => \"%s\",\n user => \"%s\",\n password => \"%s\"\n);" $connection $user $password | b64enc }}
|
||||
{{- end }}
|
Reference in New Issue
Block a user