Skip to content

Commit

Permalink
fix: add secrets template
Browse files Browse the repository at this point in the history
  • Loading branch information
ialejandro committed Sep 5, 2024
1 parent 10c7f33 commit 96dc99f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions charts/cp-schema-registry/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ if .Values.secrets }}
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ include "cp-schema-registry.fullname" . }}-credentials
labels:
{{- include "cp-schema-registry.labels" . | nindent 4 }}
annotations:
helm.sh/hook: "pre-install,pre-upgrade"
data:
{{- range $key, $value := .Values.secrets }}
{{ $key }}: {{ $value | b64enc }}
{{- end }}
{{ end }}

0 comments on commit 96dc99f

Please sign in to comment.