Skip to content

Commit

Permalink
chore(external-secrets): Update discourse templated secret (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkochendorfer authored Aug 12, 2022
1 parent aaff4e3 commit 008ab01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/discourse/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: discourse
description: A Helm Chart for Mozilla's Discourse application
type: application
version: 3.0.4
version: 3.0.5
appVersion: f58ded6
keywords:
- Mozilla
Expand Down
5 changes: 2 additions & 3 deletions charts/discourse/templates/logger-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ spec:
data:
- remoteRef:
key: {{ .Values.externalSecrets.loggerSecretKey }}
property: loggerSecret
secretKey: loggerSecret
secretStoreRef:
kind: ClusterSecretStore
name: {{ .Values.externalSecrets.store }}
target:
name: loggerSecret
name: logger-config
template:
metadata:
{{- with .Values.externalSecrets.annotations }}
Expand All @@ -38,7 +37,7 @@ spec:
{{- end }}
data:
log_files.yml: |
<%= Buffer.from(yaml.dump(JSON.parse(data.loggerSecret))).toString("base64") %>
{{ `{{ loggerSecret | fromJson | toYaml }}` }}
{{- else }}
apiVersion: v1
kind: ConfigMap
Expand Down

0 comments on commit 008ab01

Please sign in to comment.