* Add remaining data store options Signed-off-by: Kevin Fox <[email protected]> * Fix env var Signed-off-by: Kevin Fox <[email protected]> * Update charts/spire/README.md Co-authored-by: Faisal Memon <[email protected]> Signed-off-by: kfox1111 <[email protected]> * Update charts/spire/README.md Co-authored-by: Faisal Memon <[email protected]> Signed-off-by: kfox1111 <[email protected]> * Incorperate feedback Signed-off-by: Kevin Fox <[email protected]> --------- Signed-off-by: Kevin Fox <[email protected]> Signed-off-by: kfox1111 <[email protected]> Co-authored-by: Faisal Memon <[email protected]>
24 lines
1.1 KiB
YAML
24 lines
1.1 KiB
YAML
{{- if and (.Values.dataStore.sql.externalSecret.enabled) (ne .Values.dataStore.sql.password "") }}
|
|
{{- fail "dataStore.sql.password should not be set when dataStore.sql.externalSecret is enabled" }}
|
|
{{- end }}
|
|
{{- if and (.Values.dataStore.sql.externalSecret.enabled) (eq .Values.dataStore.sql.externalSecret.name "") }}
|
|
{{- fail "dataStore.sql.externalSecret.name cannot be empty string when dataStore.sql.externalSecret is enabled" }}
|
|
{{- end }}
|
|
{{- if and (.Values.dataStore.sql.externalSecret.enabled) (eq .Values.dataStore.sql.externalSecret.key "") }}
|
|
{{- fail "dataStore.sql.externalSecret.key cannot be empty string when dataStore.sql.externalSecret is enabled" }}
|
|
{{- end }}
|
|
{{- if ne .Values.dataStore.sql.databaseType "sqlite3" }}
|
|
{{- if not .Values.dataStore.sql.externalSecret.enabled }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "spire-server.fullname" . }}-dbpw
|
|
namespace: {{ include "spire-server.namespace" . }}
|
|
data:
|
|
DBPW: {{ .Values.dataStore.sql.password | b64enc }}
|
|
{{- if .Values.dataStore.sql.readOnly.enabled }}
|
|
RODBPW: {{ .Values.dataStore.sql.readOnly.password | b64enc }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|