{{- if eq .Values.global.influxdb_location "off-cluster" }}
apiVersion: v1
kind: Secret
metadata:
  name: influxdb-creds
  labels:
    heritage: drycc
type: Opaque
data:
  url: {{ .Values.monitor.influxdb.url | b64enc }}
  database: {{ .Values.monitor.influxdb.database | b64enc }}
  user: {{ .Values.monitor.influxdb.user | b64enc }}
  password: {{ .Values.monitor.influxdb.password | b64enc }}
{{- end }}
