apiVersion: v1
kind: Secret
metadata:
  name: presto-catalog-config
  labels:
    app: presto
type: Opaque
data:
  hive.properties: "{{ include "presto-hive-catalog-properties" . | b64enc }}"
  jmx.properties: "{{ include "presto-jmx-catalog-properties" . | b64enc }}"
  blackhole.properties: "{{ include "presto-blackhole-catalog-properties" . | b64enc }}"
  memory.properties: "{{ include "presto-memory-catalog-properties" . | b64enc }}"
{{- if .Values.presto.spec.config.connectors.prometheus.enabled }}
  prometheus.properties: "{{ include "presto-prometheus-catalog-properties" . | b64enc }}"
{{- end }}
  tpcds.properties: "{{ include "presto-tpcds-catalog-properties" . | b64enc }}"
  tpch.properties: "{{ include "presto-tpch-catalog-properties" . | b64enc }}"
{{- range $_, $connector := .Values.presto.spec.config.connectors.extraConnectorFiles }}
  {{ $connector.name }}: "{{ $connector.content | b64enc }}"
{{- end }}
