{{ if .Values.global.cert_manager_enabled }}
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
  name: drycc-monitor-influxdb
spec:
  secretName: drycc-monitor-influxdb-auto-tls
  issuerRef:
    name: drycc-cluster-issuer
    kind: ClusterIssuer
  dnsNames:
  - drycc-monitor-influxdb.{{ .Values.global.platform_domain }}
  privateKey:
    rotationPolicy: Always
{{- end }}
