clean up valkey secret to allow only sourcing one or two secret keys at a time
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
{{- if and .Values.externalValkey.enabled ( not .Values.externalValkey.existingSecret ) }}
|
||||
{{- if and .Values.externalValkey.enabled (not .Values.externalValkey.existingSecret) (or .Values.externalValkey.existingSecretKeys.password .Values.externalValkey.existingSecretKeys.port .Values.externalValkey.existingSecretKeys.host ) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "pixelfed.fullname" . }}-valkey
|
||||
data:
|
||||
{{- if not .Values.externalValkey.existingSecretKeys.host }}
|
||||
host: {{ .Values.externalValkey.host | b64enc }}
|
||||
{{- end }}
|
||||
{{- if not .Values.externalValkey.existingSecretKeys.port }}
|
||||
port: {{ .Values.externalValkey.port | quote | b64enc }}
|
||||
{{- end }}
|
||||
{{- if not .Values.externalValkey.existingSecretKeys.password }}
|
||||
password: {{ .Values.externalValkey.password | b64enc }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user