github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/clickhouse/templates/configmap.yaml (about) 1 apiVersion: v1 2 kind: ConfigMap 3 metadata: 4 name: clickhouse-tpl 5 labels: {{- include "common.labels.standard" . | nindent 4 }} 6 {{- if .Values.commonLabels }} 7 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 8 {{- end }} 9 {{- if .Values.commonAnnotations }} 10 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 11 {{- end }} 12 data: 13 00_default_overrides.xml: | 14 {{- .Files.Get "configs/00_default_overrides.xml.tpl" | nindent 4 }} 15 --- 16 apiVersion: v1 17 kind: ConfigMap 18 metadata: 19 name: clickhouse-keeper-tpl 20 labels: {{- include "common.labels.standard" . | nindent 4 }} 21 {{- if .Values.commonLabels }} 22 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 23 {{- end }} 24 {{- if .Values.commonAnnotations }} 25 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 26 {{- end }} 27 data: 28 00_default_overrides.xml: | 29 {{- .Files.Get "configs/ch-keeper_00_default_overrides.xml.tpl" | nindent 4 }} 30 --- 31 {{- if .Values.zookeeper.configuration }} 32 apiVersion: v1 33 kind: ConfigMap 34 metadata: 35 name: zookeeper-tpl 36 labels: {{- include "common.labels.standard" . | nindent 4 }} 37 {{- if .Values.commonLabels }} 38 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 39 {{- end }} 40 {{- if .Values.commonAnnotations }} 41 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 42 {{- end }} 43 data: 44 zoo.cfg: |- 45 {{- .Values.zookeeper.configuration | nindent 4 }} 46 {{- end }}