CHART NAME: {{ .Chart.Name }}
CHART VERSION: {{ .Chart.Version }}
APP VERSION: {{ .Chart.AppVersion }}

⚠ WARNING: Since August 28th, 2025, only a limited subset of images/charts are available for free.
    Subscribe to Bitnami Secure Images to receive continued support and security updates.
    More info at https://bitnami.com and https://github.com/bitnami/containers/issues/83267

** Please be patient while the chart is being deployed **

Check the status of the pods by running this command:

  kubectl get pods --namespace {{ include "common.names.namespace" . | quote }} -l app.kubernetes.io/instance={{ .Release.Name }}

Check the ClickHouse Operator documentation for instructions on how to deploy a ClickHouse cluster:

  https://docs.altinity.com/altinitykubernetesoperator/kubernetesquickstartguide/quickcluster

{{- if .Values.rbac.create }}
{{- if .Values.watchAllNamespaces }}
WARNING: ClickHouse Operator can access all secrets in the cluster. This could pose a security risk if the application gets compromised.

You can limit allowed namespaces by setting watchAllNamespaces = false and configuring watchNamespaces
{{- else }}

ClickHouse Operator can ONLY access resources in the following namespaces:
{{ $namespaces := .Values.watchNamespaces | default (list (include "common.names.namespace" .)) }}
{{- range $namespace := $namespaces }}
  - {{ $namespace }}
{{- end }}

ClickHouse Operator won't be able to access resources in other namespaces. You can configure this behavior by setting watchNamespaces

{{- end }}
{{- end }}

{{- include "clickhouse-operator.checkRollingTags" . }}
{{- include "clickhouse-operator.validateValues" . }}
{{- include "common.warnings.resources" (dict "sections" (list "" "metrics") "context" $) }}
{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image .Values.clickHouseImage .Values.keeperImage .Values.metrics.image) "context" $) }}
{{- include "common.errors.insecureImages" (dict "images" (list .Values.image .Values.clickHouseImage .Values.keeperImage .Values.metrics.image) "context" $) }}
