{{- if and .Values.mtls.enabled (not .Values.mtls.existingIssuerRef.enabled) }}
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
  name: {{ include "rustfs.fullname" . }}-ca-issuer
  namespace: {{ .Release.Namespace }}
spec:
  ca:
    secretName: {{ include "rustfs.fullname" . }}-root-ca-secret
{{- end }}

