Skip to content

Commit

Permalink
Fix typos in 'if' conditions and move set of encryption_key to its on…
Browse files Browse the repository at this point in the history
… block
  • Loading branch information
Gabrielopesantos committed Feb 18, 2024
1 parent 18aaacb commit 01aec23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions charts/perses/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ data:
config.yaml: |-
security:
readonly: {{ .Values.config.security.readOnly }}
{{- if and .Values.config.security.encryptionKeyFile .Values.config.security.encriptionKey }}
{{- if and .Values.config.security.encryptionKeyFile .Values.config.security.encryptionKey }}
encryption_key_file: {{ printf "%s/key" (.Values.config.security.encryptionKeyFile | trimSuffix "/") }}
{{- else }}
{{- end }}
{{- if and (not .Values.config.security.encryptionKeyFile) .Values.config.security.encryptionKey }}
encryption_key: {{ .Values.config.security.encryptionKey }}
{{- end }}
enable_auth: {{ .Values.config.security.enableAuth }}
Expand Down

0 comments on commit 01aec23

Please sign in to comment.