19 lines
687 B
YAML
Executable file
19 lines
687 B
YAML
Executable file
{{- if (include "kafka.createJksSecret" .) }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ template "kafka.fullname" . }}-jks
|
|
labels: {{- include "kafka.labels" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "kafka.tplValue" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "kafka.tplValue" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
type: Opaque
|
|
data:
|
|
{{- $root := . }}
|
|
{{- range $path, $bytes := .Files.Glob "files/jks/*.jks" }}
|
|
{{ base $path }}: {{ $root.Files.Get $path | b64enc | quote }}
|
|
{{- end }}
|
|
{{- end }}
|