Skip to content

Commit

Permalink
fix: generate secret from json string (#1088)
Browse files Browse the repository at this point in the history
* fix: generate secret from json string

* fix: generate secret from json string for sn-platform-slim

(cherry picked from commit 62a1df3)
  • Loading branch information
FushuWang authored and ericsyh committed Aug 24, 2023
1 parent c40246f commit ffccce3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{{- if .Values.auth.oauth.enabled }}
apiVersion: v1
data:
broker_client_credential.json: {{ .Values.auth.oauth.brokerClientCredential | toJson | b64enc | quote }}
broker_client_credential.json: {{ .Values.auth.oauth.brokerClientCredential | fromYaml | toJson | b64enc | quote }}
kind: Secret
metadata:
name: "{{ template "pulsar.fullname" . }}-oauth-broker-secret"
Expand Down
2 changes: 1 addition & 1 deletion charts/sn-platform/templates/broker/broker-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{{- if .Values.auth.oauth.enabled }}
apiVersion: v1
data:
broker_client_credential.json: {{ .Values.auth.oauth.brokerClientCredential | toJson | b64enc | quote }}
broker_client_credential.json: {{ .Values.auth.oauth.brokerClientCredential | fromYaml | toJson | b64enc | quote }}
kind: Secret
metadata:
name: "{{ template "pulsar.fullname" . }}-oauth-broker-secret"
Expand Down

0 comments on commit ffccce3

Please sign in to comment.