{{- define "cert-manager-values" }}

localCA:
  enabled: true
{{ with index .Values "cert-manager" "IamArn" }}
cert-manager:
  podAnnotations:
    iam.amazonaws.com/role: "{{ . }}"
{{- end }}

{{- with index .Values "cert-manager" "clusterIssuer" }}
clusterIssuer:
  {{- . | toYaml | nindent 2 }}
{{- end }}

{{- end }}

{{- define "cert-manager-argo" }}
{{- end }}

{{ include "kubezero-app.app" . }}