File tree Expand file tree Collapse file tree 4 files changed +37
-4
lines changed
Expand file tree Collapse file tree 4 files changed +37
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type: application
1515# This is the chart version. This version number should be incremented each time you make changes
1616# to the chart and its templates, including the app version.
1717# Versions are expected to follow Semantic Versioning (https://semver.org/)
18- version : 0.0.3
18+ version : 0.1.0
1919
2020# This is the version number of the application being deployed. This version number should be
2121# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change @@ -37,15 +37,34 @@ spec:
3737 - -port
3838 - " {{ .Values.email.port }}"
3939 - -pass
40- - " {{ .Values.email.password }} "
40+ - " $(PASSWORD) "
4141 - -period
4242 - " {{ .Values.bot.period }}"
4343 - -webhook
44- - " {{ .Values.bot.webhook }} "
44+ - " $(WEBHOOK) "
4545 {{- range .Values.bot.allowList}}
4646 - -allowlist
4747 - " {{ . }}"
48- {{- end }}
48+ {{- end }}
49+ env :
50+ - name : PASSWORD
51+ valueFrom :
52+ secretKeyRef :
53+ {{- if .Values.existingSecret }}
54+ name : " {{ .Values.existingSecret }}"
55+ {{- else }}
56+ name : " {{ include " noncer.name" . }}"
57+ {{- end }}
58+ key : password
59+ - name : WEBHOOK
60+ valueFrom :
61+ secretKeyRef :
62+ {{- if .Values.existingSecret }}
63+ name : " {{ .Values.existingSecret }}"
64+ {{- else }}
65+ name : " {{ include " noncer.name" . }}"
66+ {{- end }}
67+ key : webhook
4968 resources :
5069 {{- toYaml .Values.resources | nindent 12 }}
5170 {{- with .Values.nodeSelector }}
Original file line number Diff line number Diff line change 1+ {{- if not .Values.existingSecret -}}
2+ apiVersion : v1
3+ kind : Secret
4+ metadata :
5+ name : " {{ include " noncer.name" . }}"
6+ type : Opaque
7+ data :
8+ password : {{ .Values.email.password | required ".Values.email.password is required." | b64enc }}
9+ webhook : {{ .Values.bot.webhook | required ".Values.bot.webhook is required" | b64enc }}
10+ {{- end -}}
Original file line number Diff line number Diff line change 44 # Overrides the image tag whose default is the chart appVersion.
55 tag : " "
66
7+ # The bot can be provided with an existing secret that contains both the password and the webhook.
8+ # Otherwise a secret will be created
9+ existingSecret : " "
10+
711email :
812 user : " "
913 password : " "
You can’t perform that action at this time.
0 commit comments