{{- /* Envoy client leaf certificate. Signed by Root CA directly. Used for Envoy's mTLS client identity when connecting to Contour's xDS server. */}} {{- if .Values.useCertManager }} apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: {{ printf "%s-envoy-cert" (include "common.names.fullname" .) }} namespace: {{ include "common.names.namespace" . | quote }} labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: envoy spec: secretName: envoycert commonName: "envoy" duration: {{ .Values.certManager.leafCerts.duration }} renewBefore: {{ .Values.certManager.leafCerts.renewBefore }} usages: - client auth - digital signature - key encipherment privateKey: algorithm: {{ .Values.certManager.leafCerts.algorithm }} size: {{ .Values.certManager.leafCerts.size }} issuerRef: name: {{ printf "%s-root-ca-issuer" (include "common.names.fullname" .) }} kind: Issuer {{- end }}