Skip to content

Commit

Permalink
charts/cannon: fix syntax for manually setting tls certificate (#2558)
Browse files Browse the repository at this point in the history
* charts/cannon: fix syntax for manually setting tls certificate

* Hi CI
  • Loading branch information
jschaul authored Jul 14, 2022
1 parent 250728a commit 3f8ebd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/3-bug-fixes/cannon-nginz-custom-tls
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug in charts/cannon. It's now possible to use a custom TLS certificate when enabling cannon's nginz sidecar container. (Previously only letsencrypt certificates worked, and were tested)
4 changes: 2 additions & 2 deletions charts/cannon/templates/nginz-certificate-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ metadata:
heritage: "{{ .Release.Service }}"
type: kubernetes.io/tls
data:
tls.crt: {{ .Values.secrets.nginz.tls.crt }}
tls.key: {{ .Values.secrets.nginz.tls.key }}
tls.crt: {{ .Values.secrets.nginz.tls.crt | b64enc | quote }}
tls.key: {{ .Values.secrets.nginz.tls.key | b64enc | quote }}
{{- end }}

0 comments on commit 3f8ebd7

Please sign in to comment.