diff --git a/common/templates/cert-manager/_certificate.tpl b/common/templates/cert-manager/_certificate.tpl new file mode 100644 index 0000000000000000000000000000000000000000..50fc803c7e917346f17c34a9c3d7cc9e71da1df1 --- /dev/null +++ b/common/templates/cert-manager/_certificate.tpl @@ -0,0 +1,22 @@ +{{- define "common.cert-manager.certificate" -}} +apiVersion: {{ .Values.apiVersion | default "cert-manager.io/v1" }} +kind: Certificate +metadata: + name: {{ .Values.name | default "certificate" }} + {{- with .Values.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} + labels: + {{- include "common.variables.labels" . | nindent 4 }} +spec: + secretName: {{ .Values.secretName }} + {{- with .Values.dnsNames}} + dnsNames: + {{- toYaml . | nindent 4 }} + {{- end }} + issuerRef: + name: {{ .Values.issuerRef.name }} + kind: {{ .Values.issuerRef.kind | default "Issuer" }} +--- +{{- end }}