Your commit message
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{{- if .Values.certificates.enabled }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "rabbitmq.fullname" . }}-certs
|
||||
labels:
|
||||
{{- include "rabbitmq.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
{{- with .Values.certificates -}}
|
||||
{{- if .cacert }}
|
||||
cacert: |
|
||||
{{ .cacert | b64enc }}
|
||||
{{- end }}
|
||||
{{- if .cert }}
|
||||
cert: |
|
||||
{{ .cert | b64enc }}
|
||||
{{- end }}
|
||||
{{- if .key }}
|
||||
key: |
|
||||
{{ .key | b64enc }}
|
||||
{{- end }}
|
||||
{{- range $cert := .extraCerts }}
|
||||
{{ $cert.name }}: |
|
||||
{{ $cert.cert | b64enc }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user