{{- if .Capabilities.APIVersions.Has "cert-manager.io/v1" }} --- apiVersion: cert-manager.io/v1 kind: Issuer metadata: labels: {{- include "labels" $ | nindent 4 }} name: {{ $.Chart.Name }} namespace: {{ $.Release.Namespace }} spec: selfSigned: {} {{- end }}