{{- /* Contour server leaf certificate. Signed by Root CA directly. Used for Contour's xDS gRPC server — Envoy connects to this. */}} {{- if .Values.useCertManager }} apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: {{ printf "%s-contour-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: contour spec: secretName: contourcert commonName: "contour" dnsNames: - "contour" - {{ include "common.names.fullname" . | quote }} - {{ printf "%s-contour" (include "common.names.fullname" .) | quote }} - {{ printf "%s.%s.svc" (include "common.names.fullname" .) (include "common.names.namespace" .) | quote }} - {{ printf "%s.%s.svc.cluster.local" (include "common.names.fullname" .) (include "common.names.namespace" .) | quote }} duration: {{ .Values.certManager.leafCerts.duration }} renewBefore: {{ .Values.certManager.leafCerts.renewBefore }} usages: - server 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 }}