diff --git a/charts/attest-provider/templates/attest-provider-deployment.yaml b/charts/attest-provider/templates/attest-provider-deployment.yaml index 7b7d41e..b06772f 100644 --- a/charts/attest-provider/templates/attest-provider-deployment.yaml +++ b/charts/attest-provider/templates/attest-provider-deployment.yaml @@ -52,6 +52,11 @@ spec: mountPath: /tmp/gatekeeper readOnly: true {{- end }} + {{- if .Values.certSecret }} + - name: tls-cert-key + mountPath: {{ .Values.certDir }} + readOnly: true + {{- end }} restartPolicy: Always nodeSelector: kubernetes.io/os: linux @@ -66,3 +71,13 @@ spec: - key: ca.crt path: ca.crt {{- end }} + {{- if .Values.certSecret }} + - name: tls-cert-key + secret: + secretName: {{ .Values.certSecret }} + items: + - key: tls.crt + path: tls.crt + - key: tls.key + path: tls.key + {{- end }}