Skip to content

Commit

Permalink
Fix errors with names and file paths
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Santos <[email protected]>
  • Loading branch information
Gabrielopesantos committed Feb 5, 2024
1 parent d652233 commit c4a19be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/perses/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Perses helm chart
icon: https://avatars.githubusercontent.com/u/77209215?s=200&v=4
type: application
version: 0.3.0
appVersion: "0.42.1"
appVersion: "0.43.0"
sources:
- https://github.com/perses/perses
annotations:
Expand Down
2 changes: 1 addition & 1 deletion charts/perses/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data:
security:
readonly: {{ .Values.config.security.readOnly }}
{{- if .Values.config.security.encryptionKeyFile }}
encryption_key_file: {{ .Values.config.security.encryptionKeyFile }}
encryption_key_file: {{ printf "%s/key" (.Values.config.security.encryptionKeyFile | trimSuffix "/") }}
{{- else }}
encryption_key: {{ .Values.config.security.encryptionKey }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/perses/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
{{- end }}
type: Opaque
data:
encryption_key: {{ .Values.config.security.encryptionKey }}
key: {{ .Values.config.security.encryptionKey | b64enc }}
{{- end }}

---
8 changes: 5 additions & 3 deletions charts/perses/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
mountPath: /etc/perses/datasources
{{- end }}
{{- if .Values.config.security.encryptionKeyFile }}
- name: encryptionKey
- name: encryptionkey
mountPath: {{ .Values.config.security.encryptionKeyFile }}
readOnly: true
{{- end }}
Expand Down Expand Up @@ -104,8 +104,10 @@ spec:
name: {{ include "perses.fullname" . }}-datasources
{{- end }}
{{- if .Values.config.security.encryptionKeyFile }}
- name: encryptionKey
- name: encryptionkey
secret:
secretName: {{ include "perses.fullname" . }}-encryption-key
items: encryption_key
items:
- key: key
path: "key"
{{- end }}

0 comments on commit c4a19be

Please sign in to comment.