-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathsecret.yaml
More file actions
30 lines (30 loc) · 1.03 KB
/
secret.yaml
File metadata and controls
30 lines (30 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{{- if or .Values.mosquitto.authentication.passwordFile .Values.mosquitto.authorization.aclFile }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "mosquitto.fullname" . }}
labels: {{- include "mosquitto.labels.standard" . | nindent 4 }}
{{- with .Values.mosquitto.common.labels }}
{{- toYaml . | trim | nindent 4 }}
{{- end }}
{{- with .Values.mosquitto.secret.labels }}
{{- toYaml . | trim | nindent 4 }}
{{- end }}
{{- if or .Values.mosquitto.common.annotations .Values.mosquitto.secret.annotations }}
annotations:
{{- with .Values.mosquitto.common.annotations }}
{{- toYaml . | trim | nindent 4 }}
{{- end }}
{{- with .Values.mosquitto.secret.annotations }}
{{- toYaml . | trim | nindent 4 }}
{{- end }}
{{- end }}
type: Opaque
data:
{{- with .Values.mosquitto.mosquitto.passwordFile }}
passwordFile: {{ . | b64enc | quote }}
{{- end }}
{{- with .Values.mosquitto.authorization.aclFile }}
aclFile: {{ . | b64enc | quote }}
{{- end }}
{{- end }}