diff --git a/deploy/charts/trust-manager/templates/certificate.yaml b/deploy/charts/trust-manager/templates/certificate.yaml index 453660e4..12cf1da5 100644 --- a/deploy/charts/trust-manager/templates/certificate.yaml +++ b/deploy/charts/trust-manager/templates/certificate.yaml @@ -18,6 +18,7 @@ metadata: labels: {{ include "trust-manager.labels" . | indent 4 }} spec: + commonName: "{{ include "trust-manager.name" . }}.{{ include "trust-manager.namespace" . }}.svc" dnsNames: - "{{ include "trust-manager.name" . }}.{{ include "trust-manager.namespace" . }}.svc" secretName: {{ include "trust-manager.name" . }}-tls @@ -37,6 +38,9 @@ metadata: name: trust-manager-policy spec: allowed: + commonName: + value: "{{ include "trust-manager.name" . }}.{{ include "trust-manager.namespace" . }}.svc" + required: true dnsNames: values: ["{{ include "trust-manager.name" . }}.{{ include "trust-manager.namespace" . }}.svc"] required: true