apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: node-maintenance-operator-serving-cert
  namespace: {{ .Release.Namespace }}
  labels:
  {{- include "chart.labels" . | nindent 4 }}
spec:
  dnsNames:
  - 'node-maintenance-operator-webhook-service.{{ .Release.Namespace }}.svc'
  - 'node-maintenance-operator-webhook-service.{{ .Release.Namespace }}.svc.{{ .Values.kubernetesClusterDomain }}'
  issuerRef:
    kind: Issuer
    name: node-maintenance-operator-selfsigned-issuer
  secretName: webhook-server-cert
