{{- if .Values.internal.certmanager.enabled }} apiVersion: cert-manager.io/v1 kind: Issuer metadata: name: {{ .Values.internal.certmanager.secretname }} namespace: {{ .Release.Namespace }} spec: selfSigned: {} --- apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: {{ .Values.internal.certmanager.secretname }} namespace: {{ .Release.Namespace }} spec: duration: 17520h # 2 years subject: organizations: - NeuVector isCA: true commonName: neuvector.internal dnsNames: - neuvector.internal - NeuVector secretName: {{ .Values.internal.certmanager.secretname }} usages: - digital signature - key encipherment issuerRef: group: cert-manager.io kind: Issuer name: {{ .Values.internal.certmanager.secretname }} {{- end }}