rancher-partner-charts/charts/koor-tech/koor-operator/templates/serving-cert.yaml

19 lines
659 B
YAML

apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ include "koor-operator.fullname" . }}-serving-cert
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-weight": "2"
labels:
{{- include "koor-operator.labels" . | nindent 4 }}
spec:
dnsNames:
- '{{ include "koor-operator.fullname" . }}-webhook-service.{{ .Release.Namespace
}}.svc'
- '{{ include "koor-operator.fullname" . }}-webhook-service.{{ .Release.Namespace
}}.svc.{{ .Values.kubernetesClusterDomain }}'
issuerRef:
kind: Issuer
name: '{{ include "koor-operator.fullname" . }}-selfsigned-issuer'
secretName: webhook-server-cert