Skip to content

Commit

Permalink
add possibility to add key for custom cert (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrebstadt authored Dec 4, 2024
1 parent 19168ae commit 66958f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/opslevel/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ metadata:
type: Opaque
data:
custom-cert.crt: '{{ .Values.certificate.secret.crt | b64enc }}'
custom-cert.key: '{{ .Values.certificate.secret.key | b64enc }}'
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/opslevel/templates/opslevel/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ spec:
mountPath: /usr/local/share/ca-certificates/custom-cert.crt
subPath: custom-cert.crt
readOnly: false
- name: certificate
mountPath: /usr/local/share/ca-certificates/custom-cert.key
subPath: custom-cert.key
readOnly: false
- name: ca
mountPath: /etc/ssl/certs
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/opslevel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,5 @@ certificate:
create: true
name: "opslevel-certificate"
crt: ""
key: ""

0 comments on commit 66958f0

Please sign in to comment.