diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml
index bb52caa0f..94defc7b3 100644
--- a/.github/workflows/run_tests.yaml
+++ b/.github/workflows/run_tests.yaml
@@ -74,7 +74,7 @@ jobs:
echo " test mode: ${{ github.event.inputs.test_mode }}"
echo " test mask: ${{ github.event.inputs.test_mask }}"
echo
-
+
source ~/venv/qa/bin/activate
set -x
set +e # disable the "exit on failure"
@@ -121,7 +121,7 @@ jobs:
retention-days: 90
- name: Test Failed
- if: ${{ steps.vars.outputs.test_result != '0' }}
+ if: ${{ failure() }}
uses: actions/github-script@v3
with:
script: |
diff --git a/.gitignore b/.gitignore
index 1894072b9..3e2b68c7a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@
# Skip logs and caches
log
*.log
+*.log.txt
__pycache__
# Skip dev runtime-produced
diff --git a/Vagrantfile b/Vagrantfile
index c3e26a46e..a5e28b618 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -18,7 +18,7 @@ end
Vagrant.configure(2) do |config|
- config.vm.box = "generic/ubuntu2004"
+ config.vm.box = "generic/ubuntu2404"
config.vm.box_check_update = false
if get_provider == "hyperv"
@@ -111,7 +111,7 @@ Vagrant.configure(2) do |config|
apt-get install --no-install-recommends -y clickhouse-client
# golang
- export GOLANG_VERSION=1.19
+ export GOLANG_VERSION=1.23
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F6BC817356A3D45E
add-apt-repository ppa:longsleep/golang-backports
apt-get install --no-install-recommends -y golang-${GOLANG_VERSION}-go
@@ -148,7 +148,8 @@ Vagrant.configure(2) do |config|
# MINIKUBE_VERSION=1.19.0
# MINIKUBE_VERSION=1.20.0
# MINIKUBE_VERSION=1.23.2
- MINIKUBE_VERSION=1.28.0
+ # MINIKUBE_VERSION=1.28.0
+ MINIKUBE_VERSION=1.34.0
wget -c --progress=bar:force:noscroll -O /usr/local/bin/minikube https://github.com/kubernetes/minikube/releases/download/v${MINIKUBE_VERSION}/minikube-linux-amd64
chmod +x /usr/local/bin/minikube
# required for k8s 1.18+
@@ -168,7 +169,8 @@ Vagrant.configure(2) do |config|
# K8S_VERSION=${K8S_VERSION:-1.22.5}
# K8S_VERSION=${K8S_VERSION:-1.23.1}
# K8S_VERSION=${K8S_VERSION:-1.24.8}
- K8S_VERSION=${K8S_VERSION:-1.25.4}
+# K8S_VERSION=${K8S_VERSION:-1.25.4}
+ K8S_VERSION=${K8S_VERSION:-1.31.1}
export VALIDATE_YAML=true
killall kubectl || true
diff --git a/config/chk/keeper_config.d/01-keeper-01-default-config.xml b/config/chk/keeper_config.d/01-keeper-01-default-config.xml
index a7574bc21..9c86b7cea 100644
--- a/config/chk/keeper_config.d/01-keeper-01-default-config.xml
+++ b/config/chk/keeper_config.d/01-keeper-01-default-config.xml
@@ -17,7 +17,6 @@
/var/lib/clickhouse-keeper/coordination/snapshots
/var/lib/clickhouse-keeper
2181
- true
::
0.0.0.0
diff --git a/config/chk/keeper_config.d/01-keeper-03-enable-reconfig.xml b/config/chk/keeper_config.d/01-keeper-03-enable-reconfig.xml
new file mode 100644
index 000000000..e06915c8a
--- /dev/null
+++ b/config/chk/keeper_config.d/01-keeper-03-enable-reconfig.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+ false
+
+
diff --git a/config/config-dev.yaml b/config/config-dev.yaml
index 008daf9d8..0c00a69c9 100644
--- a/config/config-dev.yaml
+++ b/config/config-dev.yaml
@@ -351,6 +351,27 @@ label:
# LabelClusterScopeCycleOffset
appendScope: "no"
+################################################
+##
+## Metrics management section
+##
+################################################
+metrics:
+ labels:
+ exclude: []
+
+################################################
+##
+## Status management section
+##
+################################################
+status:
+ fields:
+ action: false
+ actions: false
+ error: false
+ errors: false
+
################################################
##
## StatefulSet management section
diff --git a/config/config.yaml b/config/config.yaml
index e69851e57..cab6b4c96 100644
--- a/config/config.yaml
+++ b/config/config.yaml
@@ -147,7 +147,6 @@ clickhouse:
# These credentials are used for:
# 1. Metrics requests
# 2. Schema maintenance
- # 3. DROP DNS CACHE
# User with these credentials can be specified in additional ClickHouse .xml config files,
# located in 'clickhouse.configuration.file.path.user' folder
username: ""
@@ -351,6 +350,27 @@ label:
# LabelClusterScopeCycleOffset
appendScope: "no"
+################################################
+##
+## Metrics management section
+##
+################################################
+metrics:
+ labels:
+ exclude: []
+
+################################################
+##
+## Status management section
+##
+################################################
+status:
+ fields:
+ action: false
+ actions: false
+ error: false
+ errors: false
+
################################################
##
## StatefulSet management section
diff --git a/deploy/builder/templates-config/chk/keeper_config.d/01-keeper-01-default-config.xml b/deploy/builder/templates-config/chk/keeper_config.d/01-keeper-01-default-config.xml
index c8a6026a5..e22385d46 100644
--- a/deploy/builder/templates-config/chk/keeper_config.d/01-keeper-01-default-config.xml
+++ b/deploy/builder/templates-config/chk/keeper_config.d/01-keeper-01-default-config.xml
@@ -11,7 +11,6 @@
/var/lib/clickhouse-keeper/coordination/snapshots
/var/lib/clickhouse-keeper
2181
- true
::
0.0.0.0
diff --git a/deploy/builder/templates-config/chk/keeper_config.d/01-keeper-03-enable-reconfig.xml b/deploy/builder/templates-config/chk/keeper_config.d/01-keeper-03-enable-reconfig.xml
new file mode 100644
index 000000000..e5d8fb8fd
--- /dev/null
+++ b/deploy/builder/templates-config/chk/keeper_config.d/01-keeper-03-enable-reconfig.xml
@@ -0,0 +1,5 @@
+
+
+ false
+
+
diff --git a/deploy/builder/templates-config/config.yaml b/deploy/builder/templates-config/config.yaml
index 8111097d7..10099f37f 100644
--- a/deploy/builder/templates-config/config.yaml
+++ b/deploy/builder/templates-config/config.yaml
@@ -141,7 +141,6 @@ clickhouse:
# These credentials are used for:
# 1. Metrics requests
# 2. Schema maintenance
- # 3. DROP DNS CACHE
# User with these credentials can be specified in additional ClickHouse .xml config files,
# located in 'clickhouse.configuration.file.path.user' folder
username: "${CH_USERNAME_PLAIN}"
@@ -345,6 +344,27 @@ label:
# LabelClusterScopeCycleOffset
appendScope: "no"
+################################################
+##
+## Metrics management section
+##
+################################################
+metrics:
+ labels:
+ exclude: []
+
+################################################
+##
+## Status management section
+##
+################################################
+status:
+ fields:
+ action: false
+ actions: false
+ error: false
+ errors: false
+
################################################
##
## StatefulSet management section
diff --git a/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-01-chi-chit.yaml b/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-01-chi-chit.yaml
index 823f978a3..2ef4e8bfc 100644
--- a/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-01-chi-chit.yaml
+++ b/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-01-chi-chit.yaml
@@ -1087,7 +1087,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1235,7 +1235,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-02-chopconf.yaml b/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-02-chopconf.yaml
index af357342e..799e703eb 100644
--- a/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-02-chopconf.yaml
+++ b/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-02-chopconf.yaml
@@ -374,6 +374,40 @@ spec:
- "LabelClusterScopeCycleSize"
- "LabelClusterScopeCycleIndex"
- "LabelClusterScopeCycleOffset"
+ metrics:
+ type: object
+ description: "defines metrics exporter options"
+ properties:
+ labels:
+ type: object
+ description: "defines metric labels options"
+ properties:
+ exclude:
+ type: array
+ description: |
+ When adding labels to a metric exclude labels with names from the following list
+ items:
+ type: string
+ status:
+ type: object
+ description: "defines status options"
+ properties:
+ fields:
+ type: object
+ description: "defines status fields options"
+ properties:
+ action:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'action'"
+ actions:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'actions'"
+ error:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'error'"
+ errors:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'errors'"
statefulSet:
type: object
description: "define StatefulSet-specific parameters"
diff --git a/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-03-chk.yaml b/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-03-chk.yaml
index edb28e13d..a6aa1616b 100644
--- a/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-03-chk.yaml
+++ b/deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-03-chk.yaml
@@ -671,7 +671,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -819,7 +819,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/helm/clickhouse-operator/Chart.yaml b/deploy/helm/clickhouse-operator/Chart.yaml
index 8065eb462..9d0828a99 100644
--- a/deploy/helm/clickhouse-operator/Chart.yaml
+++ b/deploy/helm/clickhouse-operator/Chart.yaml
@@ -10,10 +10,11 @@ description: |-
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallationtemplates.clickhouse.altinity.com.yaml
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseoperatorconfigurations.clickhouse.altinity.com.yaml
+ kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml
```
type: application
-version: 0.24.0
-appVersion: 0.24.0
+version: 0.24.1
+appVersion: 0.24.1
home: https://github.com/Altinity/clickhouse-operator
icon: https://logosandtypes.com/wp-content/uploads/2020/12/altinity.svg
maintainers:
diff --git a/deploy/helm/clickhouse-operator/README.md b/deploy/helm/clickhouse-operator/README.md
index 2a12b8b2d..7f5bd7da0 100644
--- a/deploy/helm/clickhouse-operator/README.md
+++ b/deploy/helm/clickhouse-operator/README.md
@@ -1,6 +1,6 @@
# altinity-clickhouse-operator
-![Version: 0.24.0](https://img.shields.io/badge/Version-0.24.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.24.0](https://img.shields.io/badge/AppVersion-0.24.0-informational?style=flat-square)
+![Version: 0.24.1](https://img.shields.io/badge/Version-0.24.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.24.1](https://img.shields.io/badge/AppVersion-0.24.1-informational?style=flat-square)
Helm chart to deploy [altinity-clickhouse-operator](https://github.com/Altinity/clickhouse-operator).
@@ -11,6 +11,7 @@ For upgrade please install CRDs separately:
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallationtemplates.clickhouse.altinity.com.yaml
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseoperatorconfigurations.clickhouse.altinity.com.yaml
+ kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml
```
**Homepage:**
@@ -25,31 +26,31 @@ For upgrade please install CRDs separately:
| Key | Type | Default | Description |
|-----|------|---------|-------------|
-| additionalResources | list | `[]` | list of additional resources to create (are processed via `tpl` function), useful for create ClickHouse clusters together with clickhouse-operator, look `kubectl explain chi` for details |
-| affinity | object | `{}` | affinity for scheduler pod assignment, look `kubectl explain pod.spec.affinity` for details |
-| configs | object | `{"confdFiles":null,"configdFiles":{"01-clickhouse-01-listen.xml":"\n\n\n\n\n\n\n \n ::\n 0.0.0.0\n 1\n\n","01-clickhouse-02-logger.xml":"\n\n\n\n\n\n\n \n \n debug\n /var/log/clickhouse-server/clickhouse-server.log\n /var/log/clickhouse-server/clickhouse-server.err.log\n 1000M\n 10\n \n 1\n \n\n","01-clickhouse-03-query_log.xml":"\n\n\n\n\n\n\n \n system\n \n Engine = MergeTree PARTITION BY event_date ORDER BY event_time TTL event_date + interval 30 day\n 7500\n \n \n\n","01-clickhouse-04-part_log.xml":"\n\n\n\n\n\n\n \n system\n \n Engine = MergeTree PARTITION BY event_date ORDER BY event_time TTL event_date + interval 30 day\n 7500\n \n\n","01-clickhouse-05-trace_log.xml":"\n\n\n\n\n\n\n \n system\n \n Engine = MergeTree PARTITION BY event_date ORDER BY event_time TTL event_date + interval 30 day\n 7500\n \n"},"files":{"config.yaml":{"annotation":{"exclude":[],"include":[]},"clickhouse":{"access":{"password":"","port":8123,"rootCA":"","scheme":"auto","secret":{"name":"{{ include \"altinity-clickhouse-operator.fullname\" . }}","namespace":""},"timeouts":{"connect":1,"query":4},"username":""},"configuration":{"file":{"path":{"common":"chi/config.d","host":"chi/conf.d","user":"chi/users.d"}},"network":{"hostRegexpTemplate":"(chi-{chi}-[^.]+\\d+-\\d+|clickhouse\\-{chi})\\.{namespace}\\.svc\\.cluster\\.local$"},"user":{"default":{"networksIP":["::1","127.0.0.1"],"password":"default","profile":"default","quota":"default"}}},"configurationRestartPolicy":{"rules":[{"rules":[{"settings/*":"yes"},{"settings/access_control_path":"no"},{"settings/dictionaries_config":"no"},{"settings/max_server_memory_*":"no"},{"settings/max_*_to_drop":"no"},{"settings/max_concurrent_queries":"no"},{"settings/models_config":"no"},{"settings/user_defined_executable_functions_config":"no"},{"settings/logger/*":"no"},{"settings/macros/*":"no"},{"settings/remote_servers/*":"no"},{"settings/user_directories/*":"no"},{"zookeeper/*":"yes"},{"files/*.xml":"yes"},{"files/config.d/*.xml":"yes"},{"files/config.d/*dict*.xml":"no"},{"profiles/default/background_*_pool_size":"yes"},{"profiles/default/max_*_for_server":"yes"}],"version":"*"},{"rules":[{"settings/logger":"yes"}],"version":"21.*"}]},"metrics":{"timeouts":{"collect":9}}},"keeper":{"configuration":{"file":{"path":{"common":"chk/keeper_config.d","host":"chk/conf.d","user":"chk/users.d"}}}},"label":{"appendScope":"no","exclude":[],"include":[]},"logger":{"alsologtostderr":"false","log_backtrace_at":"","logtostderr":"true","stderrthreshold":"","v":"1","vmodule":""},"pod":{"terminationGracePeriod":30},"reconcile":{"host":{"wait":{"exclude":true,"include":false,"queries":true}},"runtime":{"reconcileCHIsThreadsNumber":10,"reconcileShardsMaxConcurrencyPercent":50,"reconcileShardsThreadsNumber":5},"statefulSet":{"create":{"onFailure":"ignore"},"update":{"onFailure":"abort","pollInterval":5,"timeout":300}}},"statefulSet":{"revisionHistoryLimit":0},"template":{"chi":{"path":"chi/templates.d","policy":"ApplyOnNextReconcile"},"chk":{"path":"chk/templates.d","policy":"ApplyOnNextReconcile"}},"watch":{"namespaces":[]}}},"keeperConfdFiles":null,"keeperConfigdFiles":{"01-keeper-01-default-config.xml":"\n\n\n\n\n\n\n \n \n 10000\n 10000\n information\n 100000\n \n true\n /var/lib/clickhouse-keeper/coordination/logs\n /var/lib/clickhouse-keeper/coordination/snapshots\n /var/lib/clickhouse-keeper\n 2181\n true\n \n ::\n 0.0.0.0\n 1\n \n 1\n information\n \n 4096\n \n \n true\n /etc/clickhouse-keeper/server.crt\n /etc/clickhouse-keeper/dhparam.pem\n sslv2,sslv3\n true\n true\n /etc/clickhouse-keeper/server.key\n none\n \n \n\n","01-keeper-02-readiness.xml":"\n\n\n\n\n\n\n \n \n 9182\n \n /ready\n \n \n \n"},"keeperTemplatesdFiles":{"readme":"Templates in this folder are packaged with an operator and available via 'useTemplate'"},"keeperUsersdFiles":null,"templatesdFiles":{"001-templates.json.example":"{\n \"apiVersion\": \"clickhouse.altinity.com/v1\",\n \"kind\": \"ClickHouseInstallationTemplate\",\n \"metadata\": {\n \"name\": \"01-default-volumeclaimtemplate\"\n },\n \"spec\": {\n \"templates\": {\n \"volumeClaimTemplates\": [\n {\n \"name\": \"chi-default-volume-claim-template\",\n \"spec\": {\n \"accessModes\": [\n \"ReadWriteOnce\"\n ],\n \"resources\": {\n \"requests\": {\n \"storage\": \"2Gi\"\n }\n }\n }\n }\n ],\n \"podTemplates\": [\n {\n \"name\": \"chi-default-oneperhost-pod-template\",\n \"distribution\": \"OnePerHost\",\n \"spec\": {\n \"containers\" : [\n {\n \"name\": \"clickhouse\",\n \"image\": \"clickhouse/clickhouse-server:23.8\",\n \"ports\": [\n {\n \"name\": \"http\",\n \"containerPort\": 8123\n },\n {\n \"name\": \"client\",\n \"containerPort\": 9000\n },\n {\n \"name\": \"interserver\",\n \"containerPort\": 9009\n }\n ]\n }\n ]\n }\n }\n ]\n }\n }\n}\n","default-pod-template.yaml.example":"apiVersion: \"clickhouse.altinity.com/v1\"\nkind: \"ClickHouseInstallationTemplate\"\nmetadata:\n name: \"default-oneperhost-pod-template\"\nspec:\n templates:\n podTemplates:\n - name: default-oneperhost-pod-template\n distribution: \"OnePerHost\"\n","default-storage-template.yaml.example":"apiVersion: \"clickhouse.altinity.com/v1\"\nkind: \"ClickHouseInstallationTemplate\"\nmetadata:\n name: \"default-storage-template-2Gi\"\nspec:\n templates:\n volumeClaimTemplates:\n - name: default-storage-template-2Gi\n spec:\n accessModes:\n - ReadWriteOnce\n resources:\n requests:\n storage: 2Gi\n","readme":"Templates in this folder are packaged with an operator and available via 'useTemplate'"},"usersdFiles":{"01-clickhouse-operator-profile.xml":"\n\n\n\n\n\n\n\n \n \n \n 0\n 1\n 10\n 0\n 0\n \n \n\n","02-clickhouse-default-profile.xml":"\n\n\n\n\n\n\n \n \n 2\n 1\n 1000\n 1\n 1\n 1\n nearest_hostname\n 0\n \n \n \n"}}` | clickhouse-operator configs |
+| additionalResources | list | `[]` | list of additional resources to create (processed via `tpl` function), useful for create ClickHouse clusters together with clickhouse-operator. check `kubectl explain chi` for details |
+| affinity | object | `{}` | affinity for scheduler pod assignment, check `kubectl explain pod.spec.affinity` for details |
+| configs | object | check the `values.yaml` file for the config content (auto-generated from latest operator release) | clickhouse operator configs |
| dashboards.additionalLabels | object | `{"grafana_dashboard":""}` | labels to add to a secret with dashboards |
| dashboards.annotations | object | `{}` | annotations to add to a secret with dashboards |
| dashboards.enabled | bool | `false` | provision grafana dashboards as configMaps (can be synced by grafana dashboards sidecar https://github.com/grafana/helm-charts/blob/grafana-8.3.4/charts/grafana/values.yaml#L778 ) |
| dashboards.grafana_folder | string | `"clickhouse"` | |
| fullnameOverride | string | `""` | full name of the chart. |
-| imagePullSecrets | list | `[]` | image pull secret for private images in clickhouse-operator pod |
+| imagePullSecrets | list | `[]` | image pull secret for private images in clickhouse-operator pod possible value format `[{"name":"your-secret-name"}]`, check `kubectl explain pod.spec.imagePullSecrets` for details |
| metrics.containerSecurityContext | object | `{}` | |
| metrics.enabled | bool | `true` | |
-| metrics.env | list | `[]` | additional environment variables for the deployment of metrics-exporter containers |
+| metrics.env | list | `[]` | additional environment variables for the deployment of metrics-exporter containers possible format value `[{"name": "SAMPLE", "value": "text"}]` |
| metrics.image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
| metrics.image.repository | string | `"altinity/metrics-exporter"` | image repository |
| metrics.image.tag | string | `""` | image tag (chart's appVersion value will be used if not set) |
| metrics.resources | object | `{}` | custom resource configuration |
| nameOverride | string | `""` | override name of the chart |
-| nodeSelector | object | `{}` | node for scheduler pod assignment, look `kubectl explain pod.spec.nodeSelector` for details |
+| nodeSelector | object | `{}` | node for scheduler pod assignment, check `kubectl explain pod.spec.nodeSelector` for details |
| operator.containerSecurityContext | object | `{}` | |
-| operator.env | list | `[]` | additional environment variables for the clickhouse-operator container in deployment |
+| operator.env | list | `[]` | additional environment variables for the clickhouse-operator container in deployment possible format value `[{"name": "SAMPLE", "value": "text"}]` |
| operator.image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
| operator.image.repository | string | `"altinity/clickhouse-operator"` | image repository |
| operator.image.tag | string | `""` | image tag (chart's appVersion value will be used if not set) |
-| operator.resources | object | `{}` | custom resource configuration, look `kubectl explain pod.spec.containers.resources` for details |
-| podAnnotations | object | `{"clickhouse-operator-metrics/port":"9999","clickhouse-operator-metrics/scrape":"true","prometheus.io/port":"8888","prometheus.io/scrape":"true"}` | annotations to add to the clickhouse-operator pod, look `kubectl explain pod.spec.annotations` for details |
+| operator.resources | object | `{}` | custom resource configuration, check `kubectl explain pod.spec.containers.resources` for details |
+| podAnnotations | object | check the `values.yaml` file | annotations to add to the clickhouse-operator pod, check `kubectl explain pod.spec.annotations` for details |
| podLabels | object | `{}` | labels to add to the clickhouse-operator pod |
| podSecurityContext | object | `{}` | |
| rbac.create | bool | `true` | specifies whether cluster roles and cluster role bindings should be created |
@@ -60,6 +61,7 @@ For upgrade please install CRDs separately:
| serviceAccount.create | bool | `true` | specifies whether a service account should be created |
| serviceAccount.name | string | `nil` | the name of the service account to use; if not set and create is true, a name is generated using the fullname template |
| serviceMonitor.additionalLabels | object | `{}` | additional labels for service monitor |
-| serviceMonitor.enabled | bool | `false` | ServiceMonitor Custom resource is created for a (prometheus-operator)[https://github.com/prometheus-operator/prometheus-operator] |
-| tolerations | list | `[]` | tolerations for scheduler pod assignment, look `kubectl explain pod.spec.tolerations` for details |
+| serviceMonitor.enabled | bool | `false` | ServiceMonitor Custom resource is created for a [prometheus-operator](https://github.com/prometheus-operator/prometheus-operator) |
+| tolerations | list | `[]` | tolerations for scheduler pod assignment, check `kubectl explain pod.spec.tolerations` for details |
| topologySpreadConstraints | list | `[]` | |
+
diff --git a/deploy/helm/clickhouse-operator/README.md.gotmpl b/deploy/helm/clickhouse-operator/README.md.gotmpl
new file mode 100644
index 000000000..8dff37845
--- /dev/null
+++ b/deploy/helm/clickhouse-operator/README.md.gotmpl
@@ -0,0 +1,17 @@
+{{ template "chart.header" . }}
+{{ template "chart.deprecationWarning" . }}
+
+{{ template "chart.badgesSection" . }}
+
+{{ template "chart.description" . }}
+
+{{ template "chart.homepageLine" . }}
+
+{{ template "chart.maintainersSection" . }}
+
+{{ template "chart.sourcesSection" . }}
+
+{{ template "chart.requirementsSection" . }}
+
+{{ template "chart.valuesSection" . }}
+
diff --git a/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml b/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml
index fb1d6c9e7..5abf359fa 100644
--- a/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml
+++ b/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml
@@ -4,14 +4,14 @@
# SINGULAR=clickhouseinstallation
# PLURAL=clickhouseinstallations
# SHORT=chi
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -1083,7 +1083,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1230,7 +1230,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallationtemplates.clickhouse.altinity.com.yaml b/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallationtemplates.clickhouse.altinity.com.yaml
index 503b9063a..ead66666a 100644
--- a/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallationtemplates.clickhouse.altinity.com.yaml
+++ b/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallationtemplates.clickhouse.altinity.com.yaml
@@ -4,14 +4,14 @@
# SINGULAR=clickhouseinstallationtemplate
# PLURAL=clickhouseinstallationtemplates
# SHORT=chit
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -1083,7 +1083,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1230,7 +1230,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml b/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml
index b3e19dc37..1662c4051 100644
--- a/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml
+++ b/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml
@@ -1,13 +1,13 @@
# Template Parameters:
#
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
labels:
- clickhouse-keeper.altinity.com/chop: 0.24.0
+ clickhouse-keeper.altinity.com/chop: 0.24.1
spec:
group: clickhouse-keeper.altinity.com
scope: Namespaced
@@ -669,7 +669,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -816,7 +816,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseoperatorconfigurations.clickhouse.altinity.com.yaml b/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseoperatorconfigurations.clickhouse.altinity.com.yaml
index 57e944890..057ee8b2e 100644
--- a/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseoperatorconfigurations.clickhouse.altinity.com.yaml
+++ b/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseoperatorconfigurations.clickhouse.altinity.com.yaml
@@ -7,7 +7,7 @@ kind: CustomResourceDefinition
metadata:
name: clickhouseoperatorconfigurations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -373,6 +373,40 @@ spec:
- "LabelClusterScopeCycleSize"
- "LabelClusterScopeCycleIndex"
- "LabelClusterScopeCycleOffset"
+ metrics:
+ type: object
+ description: "defines metrics exporter options"
+ properties:
+ labels:
+ type: object
+ description: "defines metric labels options"
+ properties:
+ exclude:
+ type: array
+ description: |
+ When adding labels to a metric exclude labels with names from the following list
+ items:
+ type: string
+ status:
+ type: object
+ description: "defines status options"
+ properties:
+ fields:
+ type: object
+ description: "defines status fields options"
+ properties:
+ action:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'action'"
+ actions:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'actions'"
+ error:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'error'"
+ errors:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'errors'"
statefulSet:
type: object
description: "define StatefulSet-specific parameters"
diff --git a/deploy/helm/clickhouse-operator/templates/dashboards-configmap.yaml b/deploy/helm/clickhouse-operator/templates/dashboards-configmap.yaml
index 091cc1cb6..8e8ad08ee 100644
--- a/deploy/helm/clickhouse-operator/templates/dashboards-configmap.yaml
+++ b/deploy/helm/clickhouse-operator/templates/dashboards-configmap.yaml
@@ -15,6 +15,6 @@ metadata:
{{- end }}
data:
{{- range $path, $_ := .Files.Glob "files/*.json" }}
- {{ $path | trimPrefix "files/" }}: {{ $.Files.Get $path | b64enc -}}
+ {{ $path | trimPrefix "files/" }}: |- {{ $.Files.Get $path | nindent 4 -}}
{{ end }}
{{- end }}
diff --git a/deploy/helm/clickhouse-operator/templates/generated/Deployment-clickhouse-operator.yaml b/deploy/helm/clickhouse-operator/templates/generated/Deployment-clickhouse-operator.yaml
index d1176734a..7fa28f547 100644
--- a/deploy/helm/clickhouse-operator/templates/generated/Deployment-clickhouse-operator.yaml
+++ b/deploy/helm/clickhouse-operator/templates/generated/Deployment-clickhouse-operator.yaml
@@ -2,9 +2,9 @@
#
# NAMESPACE=kube-system
# COMMENT=
-# OPERATOR_IMAGE=altinity/clickhouse-operator:0.24.0
+# OPERATOR_IMAGE=altinity/clickhouse-operator:0.24.1
# OPERATOR_IMAGE_PULL_POLICY=Always
-# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.24.0
+# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.24.1
# METRICS_EXPORTER_IMAGE_PULL_POLICY=Always
#
# Setup Deployment for clickhouse-operator
diff --git a/deploy/helm/clickhouse-operator/templates/generated/Secret-clickhouse-operator.yaml b/deploy/helm/clickhouse-operator/templates/generated/Secret-clickhouse-operator.yaml
index b8f05e68a..9c4e3bb0c 100644
--- a/deploy/helm/clickhouse-operator/templates/generated/Secret-clickhouse-operator.yaml
+++ b/deploy/helm/clickhouse-operator/templates/generated/Secret-clickhouse-operator.yaml
@@ -3,7 +3,7 @@
# Template parameters available:
# NAMESPACE=kube-system
# COMMENT=
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
# CH_USERNAME_SECRET_PLAIN=clickhouse_operator
# CH_PASSWORD_SECRET_PLAIN=clickhouse_operator_password
#
diff --git a/deploy/helm/clickhouse-operator/templates/generated/ServiceAccount-clickhouse-operator.yaml b/deploy/helm/clickhouse-operator/templates/generated/ServiceAccount-clickhouse-operator.yaml
index 803619f97..3bc8d89af 100644
--- a/deploy/helm/clickhouse-operator/templates/generated/ServiceAccount-clickhouse-operator.yaml
+++ b/deploy/helm/clickhouse-operator/templates/generated/ServiceAccount-clickhouse-operator.yaml
@@ -13,6 +13,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels: {{ include "altinity-clickhouse-operator.labels" . | nindent 4 }}
annotations: {{ toYaml .Values.serviceAccount.annotations | nindent 4 }}
+
# Template Parameters:
#
# NAMESPACE=kube-system
diff --git a/deploy/helm/clickhouse-operator/values.yaml b/deploy/helm/clickhouse-operator/values.yaml
index 406496dbc..4eb72790b 100644
--- a/deploy/helm/clickhouse-operator/values.yaml
+++ b/deploy/helm/clickhouse-operator/values.yaml
@@ -3,30 +3,21 @@ operator:
# operator.image.repository -- image repository
repository: altinity/clickhouse-operator
# operator.image.tag -- image tag (chart's appVersion value will be used if not set)
-
tag: ""
# operator.image.pullPolicy -- image pull policy
-
pullPolicy: IfNotPresent
containerSecurityContext: {}
- # operator.resources -- custom resource configuration, look `kubectl explain pod.spec.containers.resources` for details
-
+ # operator.resources -- custom resource configuration, check `kubectl explain pod.spec.containers.resources` for details
resources: {}
# limits:
-
# cpu: 100m
-
# memory: 128Mi
-
# requests:
-
# cpu: 100m
-
# memory: 128Mi
# operator.env -- additional environment variables for the clickhouse-operator container in deployment
-
- # possible format value [{"name": "SAMPLE", "value": "text"}]
+ # possible format value `[{"name": "SAMPLE", "value": "text"}]`
env: []
metrics:
enabled: true
@@ -34,61 +25,45 @@ metrics:
# metrics.image.repository -- image repository
repository: altinity/metrics-exporter
# metrics.image.tag -- image tag (chart's appVersion value will be used if not set)
-
tag: ""
# metrics.image.pullPolicy -- image pull policy
-
pullPolicy: IfNotPresent
containerSecurityContext: {}
# metrics.resources -- custom resource configuration
-
resources: {}
# limits:
-
# cpu: 100m
-
# memory: 128Mi
-
# requests:
-
# cpu: 100m
-
# memory: 128Mi
# metrics.env -- additional environment variables for the deployment of metrics-exporter containers
-
- # possible format value [{"name": "SAMPLE", "value": "text"}]
+ # possible format value `[{"name": "SAMPLE", "value": "text"}]`
env: []
# imagePullSecrets -- image pull secret for private images in clickhouse-operator pod
-
-# possible value format [{"name":"your-secret-name"}]
-
-# look `kubectl explain pod.spec.imagePullSecrets` for details
+# possible value format `[{"name":"your-secret-name"}]`,
+# check `kubectl explain pod.spec.imagePullSecrets` for details
imagePullSecrets: []
# podLabels -- labels to add to the clickhouse-operator pod
-
podLabels: {}
-# podAnnotations -- annotations to add to the clickhouse-operator pod, look `kubectl explain pod.spec.annotations` for details
-
+# podAnnotations -- annotations to add to the clickhouse-operator pod, check `kubectl explain pod.spec.annotations` for details
+# @default -- check the `values.yaml` file
podAnnotations:
prometheus.io/port: '8888'
prometheus.io/scrape: 'true'
clickhouse-operator-metrics/port: '9999'
clickhouse-operator-metrics/scrape: 'true'
# nameOverride -- override name of the chart
-
nameOverride: ""
# fullnameOverride -- full name of the chart.
-
fullnameOverride: ""
serviceAccount:
# serviceAccount.create -- specifies whether a service account should be created
create: true
# serviceAccount.annotations -- annotations to add to the service account
-
annotations: {}
# serviceAccount.name -- the name of the service account to use; if not set and create is true, a name is generated using the fullname template
-
name:
rbac:
# rbac.create -- specifies whether cluster roles and cluster role bindings should be created
@@ -97,35 +72,26 @@ secret:
# secret.create -- create a secret with operator credentials
create: true
# secret.username -- operator credentials username
-
username: clickhouse_operator
# secret.password -- operator credentials password
-
password: clickhouse_operator_password
-# nodeSelector -- node for scheduler pod assignment, look `kubectl explain pod.spec.nodeSelector` for details
-
+# nodeSelector -- node for scheduler pod assignment, check `kubectl explain pod.spec.nodeSelector` for details
nodeSelector: {}
-# tolerations -- tolerations for scheduler pod assignment, look `kubectl explain pod.spec.tolerations` for details
-
+# tolerations -- tolerations for scheduler pod assignment, check `kubectl explain pod.spec.tolerations` for details
tolerations: []
-# affinity -- affinity for scheduler pod assignment, look `kubectl explain pod.spec.affinity` for details
-
+# affinity -- affinity for scheduler pod assignment, check `kubectl explain pod.spec.affinity` for details
affinity: {}
-# podSecurityContext - operator deployment SecurityContext, look `kubectl explain pod.spec.securityContext` for details
-
+# podSecurityContext - operator deployment SecurityContext, check `kubectl explain pod.spec.securityContext` for details
podSecurityContext: {}
-# topologySpreadConstraints - topologySpreadConstraints affinity for scheduler pod assignment, look `kubectl explain pod.spec.topologySpreadConstraints` for details
-
+# topologySpreadConstraints - topologySpreadConstraints affinity for scheduler pod assignment, check `kubectl explain pod.spec.topologySpreadConstraints` for details
topologySpreadConstraints: []
serviceMonitor:
- # serviceMonitor.enabled -- ServiceMonitor Custom resource is created for a (prometheus-operator)[https://github.com/prometheus-operator/prometheus-operator]
+ # serviceMonitor.enabled -- ServiceMonitor Custom resource is created for a [prometheus-operator](https://github.com/prometheus-operator/prometheus-operator)
enabled: false
# serviceMonitor.additionalLabels -- additional labels for service monitor
-
additionalLabels: {}
-# configs -- clickhouse-operator configs
-
-# @default -- check the values.yaml file for the config content, auto-generated from latest operator release
+# configs -- clickhouse operator configs
+# @default -- check the `values.yaml` file for the config content (auto-generated from latest operator release)
configs:
confdFiles: null
configdFiles:
@@ -349,7 +315,6 @@ configs:
# These credentials are used for:
# 1. Metrics requests
# 2. Schema maintenance
- # 3. DROP DNS CACHE
# User with these credentials can be specified in additional ClickHouse .xml config files,
# located in 'clickhouse.configuration.file.path.user' folder
username: ""
@@ -539,6 +504,25 @@ configs:
appendScope: "no"
################################################
##
+ ## Metrics management section
+ ##
+ ################################################
+ metrics:
+ labels:
+ exclude: []
+ ################################################
+ ##
+ ## Status management section
+ ##
+ ################################################
+ status:
+ fields:
+ action: false
+ actions: false
+ error: false
+ errors: false
+ ################################################
+ ##
## StatefulSet management section
##
################################################
@@ -719,7 +703,6 @@ configs:
/var/lib/clickhouse-keeper/coordination/snapshots
/var/lib/clickhouse-keeper
2181
- true
::
0.0.0.0
@@ -742,7 +725,7 @@ configs:
- 01-keeper-02-readiness.xml: |-
+ 01-keeper-02-readiness.xml: |
@@ -759,72 +742,59 @@ configs:
+ 01-keeper-03-enable-reconfig.xml: |-
+
+
+
+
+
+
+
+
+ false
+
+
keeperTemplatesdFiles:
readme: |-
Templates in this folder are packaged with an operator and available via 'useTemplate'
keeperUsersdFiles: null
-# additionalResources -- list of additional resources to create (are processed via `tpl` function), useful for create ClickHouse clusters together with clickhouse-operator, look `kubectl explain chi` for details
-
+# additionalResources -- list of additional resources to create (processed via `tpl` function),
+# useful for create ClickHouse clusters together with clickhouse-operator.
+# check `kubectl explain chi` for details
additionalResources: []
# - |
-
# apiVersion: v1
-
# kind: ConfigMap
-
# metadata:
-
# name: {{ include "altinity-clickhouse-operator.fullname" . }}-cm
-
# namespace: {{ .Release.Namespace }}
-
# - |
-
# apiVersion: v1
-
# kind: Secret
-
# metadata:
-
# name: {{ include "altinity-clickhouse-operator.fullname" . }}-s
-
# namespace: {{ .Release.Namespace }}
-
# stringData:
-
# mykey: my-value
-
# - |
-
# apiVersion: clickhouse.altinity.com/v1
-
# kind: ClickHouseInstallation
-
# metadata:
-
# name: {{ include "altinity-clickhouse-operator.fullname" . }}-chi
-
# namespace: {{ .Release.Namespace }}
-
# spec:
-
# configuration:
-
# clusters:
-
# - name: default
-
# layout:
-
# shardsCount: 1
+
dashboards:
# dashboards.enabled -- provision grafana dashboards as configMaps (can be synced by grafana dashboards sidecar https://github.com/grafana/helm-charts/blob/grafana-8.3.4/charts/grafana/values.yaml#L778 )
enabled: false
# dashboards.additionalLabels -- labels to add to a secret with dashboards
-
additionalLabels:
grafana_dashboard: ""
# dashboards.annotations -- annotations to add to a secret with dashboards
-
annotations: {}
grafana_folder: clickhouse
diff --git a/deploy/openebs/lvm/README b/deploy/openebs/lvm/README
new file mode 100644
index 000000000..890dadd2a
--- /dev/null
+++ b/deploy/openebs/lvm/README
@@ -0,0 +1,123 @@
+## OpenEBS - LocalPV-LVM CSI Driver with ClickHouse
+LocalPV-LVM CSI Driver became GA in August 2021 (with the release v0.8.0). It is now a very mature product and a core component of the OpenEBS storage platform.
+Due to the major adoption of LocalPV-LVM (+50,000 users), this Data-Engine is now being unified and integrated into the core OpenEBS Storage platform; instead of being maintained as an external Data-Engine within our project.
+
+## Setup
+
+Find the disk which you want to use for the LocalPV-LVM. Note: For testing you can use the loopback device.
+
+```
+truncate -s 1024G /tmp/disk.img
+sudo losetup -f /tmp/disk.img --show
+```
+
+> [!NOTE]
+> - This is the old maual config process
+> - LocalPV-LVM will num dynamically provision the VG fro you
+> - The PV, VG and LV names will be dynamically provisioned by OpenEBS LocalPV-LVM as K8s unique entities (for safety, you cannot provide your own PV, VG or LV names)
+
+Create the Volume group on all the nodes, which will be used by the LVM2 Driver for provisioning the volumes
+
+```
+sudo pvcreate /dev/loop0
+sudo vgcreate vg-test /dev/loop0 ## here lvmvg is the volume group name to be created
+```
+
+Display the Volume Group
+
+```
+vgdisplay
+```
+
+## Installation
+
+Install the latest release of OpenEBS LVM2 LocalPV-LVM driver by running the following command. Note: All nodes must be running the same version of LocalPV-LVM, LMV2, device-mapper & dm-snapshot.
+
+Create a variable containing the K8s namesapce
+
+```bash
+OPENEBS_NAMESPACE=openebs
+```
+
+Install the OpenEBS component without the distributed component (MayaStor) and ZFS
+
+```bash
+helm repo add openebs https://openebs.github.io/openebs
+helm repo update
+helm install openebs --namespace ${OPENEBS_NAMESPACE} openebs/openebs --set engines.replicated.mayastor.enabled=false --set engines.local.zfs.enabled=false --create-namespace --version 4.1.1
+```
+
+List the OpenEBS chart and check that it's deployed
+
+```bash
+helm list -n ${OPENEBS_NAMESPACE}
+NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
+openebs openebs 1 2024-06-01 12:28:49.358189 +0200 CEST deployed openebs-4.0.1 4.0.1
+```
+
+You can uninstall the OpenEBS componenent if there is any issues or for testing different version
+
+```bash
+helm uninstall openebs --namespace ${OPENEBS_NAMESPACE}
+```
+
+Create a new Storage Class using the test volume group (!! for testing only !!)
+```yaml
+apiVersion: storage.k8s.io/v1
+kind: StorageClass
+allowVolumeExpansion: true
+metadata:
+ name: openebs-lvm-test
+parameters:
+ fsType: xfs
+ storage: lvm
+ vgpattern: vg-test
+provisioner: local.csi.openebs.io
+reclaimPolicy: Retain
+volumeBindingMode: Immediate
+```
+
+Install a test installation of Clickhouse with a ``volumeClaimTemplates``
+```bash
+kubecl apply -f clickhouse-installation-with-openebs.yaml -n ch-test
+```
+
+Connect to the the Clickhouse pod and check the mounted volume name
+```bash
+# df -k
+Filesystem 1K-blocks Used Available Use% Mounted on
+overlay 73334784 10300660 63034124 15% /
+tmpfs 65536 0 65536 0% /dev
+/dev/mapper/rhel_vg-root 73334784 10300660 63034124 15% /etc/hosts
+shm 65536 0 65536 0% /dev/shm
+/dev/mapper/vg--test-pvc--d2c6219b--755d--4540--8382--a8959c5f1eb5 983040 41684 941356 5% /var/lib/clickhouse
+tmpfs 15804764 12 15804752 1% /run/secrets/kubernetes.io/serviceaccount
+tmpfs 7902380 0 7902380 0% /proc/asound
+tmpfs 7902380 0 7902380 0% /proc/acpi
+tmpfs 7902380 0 7902380 0% /proc/scsi
+tmpfs 7902380 0 7902380 0% /sys/firmware
+tmpfs 7902380 0 7902380 0% /sys/devices/virtual/powercap
+```
+
+You can find it on the host with the following LVM command
+```bash
+# lvdisplay
+
+ --- Logical volume ---
+ LV Path /dev/vg-test/pvc-d2c6219b-755d-4540-8382-a8959c5f1eb5
+ LV Name pvc-d2c6219b-755d-4540-8382-a8959c5f1eb5
+ VG Name vg-test
+ LV UUID KqDQ6f-70gM-fbyN-gePw-iROE-XL5E-6zTn5d
+ LV Write Access read/write
+ LV Creation host, time openebs-lvm-localpv-node-zfg4x, 2024-10-11 08:52:06 +0200
+ LV Status available
+ # open 1
+ LV Size 1.00 GiB
+ Current LE 256
+ Segments 1
+ Allocation inherit
+ Read ahead sectors auto
+ - currently set to 8192
+ Block device 253:4
+```
+
diff --git a/deploy/openebs/lvm/clickhouse-installation-with-openebs.yaml b/deploy/openebs/lvm/clickhouse-installation-with-openebs.yaml
new file mode 100644
index 000000000..d477fa686
--- /dev/null
+++ b/deploy/openebs/lvm/clickhouse-installation-with-openebs.yaml
@@ -0,0 +1,41 @@
+apiVersion: clickhouse.altinity.com/v1
+kind: ClickHouseInstallation
+metadata:
+ name: clickhouse-openebs
+spec:
+ configuration:
+ clusters:
+ - layout:
+ replicasCount: 1
+ shardsCount: 1
+ name: simple
+ defaults:
+ templates:
+ dataVolumeClaimTemplate: openebs
+ podTemplate: clickhouse:24.3
+ templates:
+ podTemplates:
+ - metadata:
+ name: clickhouse:24.3
+ spec:
+ containers:
+ - image: clickhouse/clickhouse-server:24.3
+ name: clickhouse
+ ports:
+ - containerPort: 8123
+ name: http
+ - containerPort: 9000
+ name: client
+ - containerPort: 9009
+ name: interserver
+ - containerPort: 9363
+ name: metrics
+ volumeClaimTemplates:
+ - name: openebs
+ spec:
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Gi
+ storageClassName: openebs-lvm-test
\ No newline at end of file
diff --git a/deploy/openebs/lvm/delete-openebs-lvm.sh b/deploy/openebs/lvm/delete-openebs-lvm.sh
new file mode 100755
index 000000000..fb8262156
--- /dev/null
+++ b/deploy/openebs/lvm/delete-openebs-lvm.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+OPENEBS_NAMESPACE="${OPENEBS_NAMESPACE:-openebs}"
+CLICKHOUSE_NAMESPACE="${CLICKHOUSE_NAMESPACE:-ch-test}"
+
+echo "Delete Test ClickHouse installation"
+kubectl delete --namespace="${CLICKHOUSE_NAMESPACE}" ClickhouseInstallation clickhouse-openebs
+
+echo "Delete OpenEBS namespace ${OPENEBS_NAMESPACE}"
+LVMVOLUMNE_TO_DELETE=$(kubectl get LVMVolume --namespace "${OPENEBS_NAMESPACE}" | tail -1 | cut -f1 -d ' ')
+kubectl delete LVMVolume $LVMVOLUMNE_TO_DELETE --namespace "${OPENEBS_NAMESPACE}"
+helm uninstall openebs --namespace ${OPENEBS_NAMESPACE}
+kubectl delete namespace "${OPENEBS_NAMESPACE}"
diff --git a/deploy/openebs/lvm/install-openebs-lvm.sh b/deploy/openebs/lvm/install-openebs-lvm.sh
new file mode 100755
index 000000000..702507b0f
--- /dev/null
+++ b/deploy/openebs/lvm/install-openebs-lvm.sh
@@ -0,0 +1,105 @@
+#!/bin/bash
+
+function ensure_namespace() {
+ local namespace="${1}"
+ if kubectl get namespace "${namespace}" 1>/dev/null 2>/dev/null; then
+ echo "Namespace '${namespace}' already exists."
+ else
+ echo "No '${namespace}' namespace found. Going to create."
+ kubectl create namespace "${namespace}"
+ fi
+}
+
+
+echo "External value for \$OPENEBS_NAMESPACE=$OPENEBS_NAMESPACE"
+echo "External value for \$OPENEBS_OPERATOR_VERSION=$OPENEBS_OPERATOR_VERSION"
+echo "External value for \$VALIDATE_YAML=$VALIDATE_YAML"
+echo "External value for \$CLICKHOUSE_NAMESPACE=$CLICKHOUSE_NAMESPACE"
+
+OPENEBS_NAMESPACE="${OPENEBS_NAMESPACE:-openebs}"
+OPENEBS_OPERATOR_VERSION="${OPENEBS_OPERATOR_VERSION:-v4.1.3}"
+VALIDATE_YAML="${VALIDATE_YAML:-"true"}"
+CLICKHOUSE_NAMESPACE="${CLICKHOUSE_NAMESPACE:-ch-test}"
+
+echo "Setup OpenEBS"
+echo "OPTIONS"
+echo "\$OPENEBS_NAMESPACE=${OPENEBS_NAMESPACE}"
+echo "\$OPENEBS_OPERATOR_VERSION=${OPENEBS_OPERATOR_VERSION}"
+echo "\$VALIDATE_YAML=${VALIDATE_YAML}"
+echo "\$CLICKHOUSE_NAMESPACE=${CLICKHOUSE_NAMESPACE}"
+echo ""
+echo "!!! IMPORTANT !!!"
+echo "If you do not agree with specified options, press ctrl-c now"
+if [[ "" == "${NO_WAIT}" ]]; then
+ sleep 10
+fi
+echo "Apply options now..."
+
+##
+##
+##
+function clean_dir() {
+ DIR="$1"
+
+ echo "##############################"
+ echo "Clean dir $DIR ..."
+ rm -rf "$DIR"
+ echo "...DONE"
+}
+
+##############################
+## ##
+## Install openebs.io operator ##
+## ##
+##############################
+
+# Download openebs-operator sources into temp dir and run all installation scripts from there
+
+TMP_DIR=$(mktemp -d)
+
+# Ensure temp dir in place
+mkdir -p "${OPENEBS_OPERATOR_DIR}"
+
+# Temp dir must not contain any data
+if [[ -n "$(ls -A "${OPENEBS_OPERATOR_DIR}")" ]]; then
+ echo "${OPENEBS_OPERATOR_DIR} is not empty. Abort"
+ exit 1
+fi
+
+# Temp dir is empty, will clear it upon script termination
+trap 'clean_dir ${TMP_DIR}' SIGHUP SIGINT SIGQUIT SIGFPE SIGALRM SIGTERM
+
+# Continue with installing help repo
+helm repo add openebs https://openebs.github.io/openebs
+helm repo update
+
+echo "Setup OpenEBS operator ${OPENEBS_OPERATOR_VERSION} into ${OPENEBS_NAMESPACE} namespace"
+
+# Let's setup all OpenEBS-related stuff into dedicated namespace
+## TODO: need to refactor after next OPENEBS-operator release
+kubectl delete crd volumesnapshotclasses.snapshot.storage.k8s.io
+kubectl delete crd volumesnapshotcontents.snapshot.storage.k8s.io
+kubectl delete crd volumesnapshots.snapshot.storage.k8s.io
+
+# Setup OPENEBS-operator into dedicated namespace via kustomize
+helm install openebs --namespace ${OPENEBS_NAMESPACE} openebs/openebs --set engines.replicated.mayastor.enabled=false --set engines.local.zfs.enabled=false --create-namespace --version 4.1.1
+
+echo -n "Waiting '${OPENEBS_NAMESPACE}/openebs-lvm-localpv-controller' deployment to start"
+# Check grafana deployment have all pods ready
+while [[ $(kubectl --namespace="${OPENEBS_NAMESPACE}" get deployments | grep "openebs-lvm-localpv-controller" | grep -c "1/1") == "0" ]]; do
+ printf "."
+ sleep 1
+done
+echo "...DONE"
+
+# Install the test storage class
+kubectl apply -f openebs-lvm-storageclass.yaml -n ${OPENEBS_NAMESPACE}
+
+# Install a simple Clickhouse instance using openebs
+echo "Setup simple Clickhouse into ${OPENEBS_NAMESPACE} namespace using OpenEBS"
+ensure_namespace "${CLICKHOUSE_NAMESPACE}"
+kubectl apply --validate="${VALIDATE_YAML}" --namespace="${CLICKHOUSE_NAMESPACE}" -f clickhouse-installation-with-openebs.yaml
+
+# Remove downloaded sources
+clean_dir "${TMP_DIR}"
+
diff --git a/deploy/openebs/lvm/openebs-lvm-pvc-test.yaml b/deploy/openebs/lvm/openebs-lvm-pvc-test.yaml
new file mode 100644
index 000000000..212c23964
--- /dev/null
+++ b/deploy/openebs/lvm/openebs-lvm-pvc-test.yaml
@@ -0,0 +1,12 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: pvc-test
+ namespace: openebs
+spec:
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Gi
+ storageClassName: openebs-lvm-test
\ No newline at end of file
diff --git a/deploy/openebs/lvm/openebs-lvm-storageclass.yaml b/deploy/openebs/lvm/openebs-lvm-storageclass.yaml
new file mode 100644
index 000000000..4d9d182a1
--- /dev/null
+++ b/deploy/openebs/lvm/openebs-lvm-storageclass.yaml
@@ -0,0 +1,12 @@
+apiVersion: storage.k8s.io/v1
+kind: StorageClass
+allowVolumeExpansion: true
+metadata:
+ name: openebs-lvm-test
+parameters:
+ fsType: xfs
+ storage: lvm
+ vgpattern: vg-test
+provisioner: local.csi.openebs.io
+reclaimPolicy: Delete
+volumeBindingMode: Immediate
diff --git a/deploy/operator/clickhouse-operator-install-ansible.yaml b/deploy/operator/clickhouse-operator-install-ansible.yaml
index 2025a63e7..34db98648 100644
--- a/deploy/operator/clickhouse-operator-install-ansible.yaml
+++ b/deploy/operator/clickhouse-operator-install-ansible.yaml
@@ -11,14 +11,14 @@
# SINGULAR=clickhouseinstallation
# PLURAL=clickhouseinstallations
# SHORT=chi
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -1094,7 +1094,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1242,7 +1242,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -1291,14 +1291,14 @@ spec:
# SINGULAR=clickhouseinstallationtemplate
# PLURAL=clickhouseinstallationtemplates
# SHORT=chit
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2374,7 +2374,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -2522,7 +2522,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -2574,7 +2574,7 @@ kind: CustomResourceDefinition
metadata:
name: clickhouseoperatorconfigurations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2941,6 +2941,40 @@ spec:
- "LabelClusterScopeCycleSize"
- "LabelClusterScopeCycleIndex"
- "LabelClusterScopeCycleOffset"
+ metrics:
+ type: object
+ description: "defines metrics exporter options"
+ properties:
+ labels:
+ type: object
+ description: "defines metric labels options"
+ properties:
+ exclude:
+ type: array
+ description: |
+ When adding labels to a metric exclude labels with names from the following list
+ items:
+ type: string
+ status:
+ type: object
+ description: "defines status options"
+ properties:
+ fields:
+ type: object
+ description: "defines status fields options"
+ properties:
+ action:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'action'"
+ actions:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'actions'"
+ error:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'error'"
+ errors:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'errors'"
statefulSet:
type: object
description: "define StatefulSet-specific parameters"
@@ -2989,14 +3023,14 @@ spec:
---
# Template Parameters:
#
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
labels:
- clickhouse-keeper.altinity.com/chop: 0.24.0
+ clickhouse-keeper.altinity.com/chop: 0.24.1
spec:
group: clickhouse-keeper.altinity.com
scope: Namespaced
@@ -3660,7 +3694,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -3808,7 +3842,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -3840,7 +3874,7 @@ metadata:
name: clickhouse-operator
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
---
# Template Parameters:
#
@@ -3866,7 +3900,7 @@ metadata:
name: clickhouse-operator
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
rules:
#
@@ -4085,7 +4119,7 @@ metadata:
name: clickhouse-operator
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
@@ -4107,7 +4141,7 @@ metadata:
name: etc-clickhouse-operator-files
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
config.yaml: |
@@ -4260,7 +4294,6 @@ data:
# These credentials are used for:
# 1. Metrics requests
# 2. Schema maintenance
- # 3. DROP DNS CACHE
# User with these credentials can be specified in additional ClickHouse .xml config files,
# located in 'clickhouse.configuration.file.path.user' folder
username: ""
@@ -4464,6 +4497,27 @@ data:
# LabelClusterScopeCycleOffset
appendScope: "no"
+ ################################################
+ ##
+ ## Metrics management section
+ ##
+ ################################################
+ metrics:
+ labels:
+ exclude: []
+
+ ################################################
+ ##
+ ## Status management section
+ ##
+ ################################################
+ status:
+ fields:
+ action: false
+ actions: false
+ error: false
+ errors: false
+
################################################
##
## StatefulSet management section
@@ -4510,7 +4564,7 @@ metadata:
name: etc-clickhouse-operator-confd-files
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4526,7 +4580,7 @@ metadata:
name: etc-clickhouse-operator-configd-files
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-01-listen.xml: |
@@ -4625,7 +4679,7 @@ metadata:
name: etc-clickhouse-operator-templatesd-files
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
001-templates.json.example: |
@@ -4725,7 +4779,7 @@ metadata:
name: etc-clickhouse-operator-usersd-files
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-operator-profile.xml: |
@@ -4788,7 +4842,7 @@ metadata:
name: etc-keeper-operator-confd-files
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4804,7 +4858,7 @@ metadata:
name: etc-keeper-operator-configd-files
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-keeper-01-default-config.xml: |
@@ -4827,7 +4881,6 @@ data:
/var/lib/clickhouse-keeper/coordination/snapshots
/var/lib/clickhouse-keeper
2181
- true
::
0.0.0.0
@@ -4869,6 +4922,19 @@ data:
+ 01-keeper-03-enable-reconfig.xml: |
+
+
+
+
+
+
+
+
+ false
+
+
+
---
# Template Parameters:
#
@@ -4882,7 +4948,7 @@ metadata:
name: etc-keeper-operator-templatesd-files
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
readme: |
@@ -4900,7 +4966,7 @@ metadata:
name: etc-keeper-operator-usersd-files
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4908,7 +4974,7 @@ data:
# Template parameters available:
# NAMESPACE={{ namespace }}
# COMMENT=
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
# CH_USERNAME_SECRET_PLAIN=clickhouse_operator
# CH_PASSWORD_SECRET_PLAIN={{ password }}
#
@@ -4918,7 +4984,7 @@ metadata:
name: clickhouse-operator
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
type: Opaque
stringData:
@@ -4929,9 +4995,9 @@ stringData:
#
# NAMESPACE={{ namespace }}
# COMMENT=
-# OPERATOR_IMAGE=altinity/clickhouse-operator:0.24.0
+# OPERATOR_IMAGE=altinity/clickhouse-operator:0.24.1
# OPERATOR_IMAGE_PULL_POLICY=Always
-# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.24.0
+# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.24.1
# METRICS_EXPORTER_IMAGE_PULL_POLICY=Always
#
# Setup Deployment for clickhouse-operator
@@ -4942,7 +5008,7 @@ metadata:
name: clickhouse-operator
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
replicas: 1
@@ -4990,7 +5056,7 @@ spec:
name: etc-keeper-operator-usersd-files
containers:
- name: clickhouse-operator
- image: altinity/clickhouse-operator:0.24.0
+ image: altinity/clickhouse-operator:0.24.1
imagePullPolicy: Always
volumeMounts:
- name: etc-clickhouse-operator-folder
@@ -5066,7 +5132,7 @@ spec:
name: metrics
- name: metrics-exporter
- image: altinity/metrics-exporter:0.24.0
+ image: altinity/metrics-exporter:0.24.1
imagePullPolicy: Always
volumeMounts:
- name: etc-clickhouse-operator-folder
@@ -5157,7 +5223,7 @@ metadata:
name: clickhouse-operator-metrics
namespace: {{ namespace }}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
ports:
diff --git a/deploy/operator/clickhouse-operator-install-bundle-v1beta1.yaml b/deploy/operator/clickhouse-operator-install-bundle-v1beta1.yaml
index cec7c1b79..685c20712 100644
--- a/deploy/operator/clickhouse-operator-install-bundle-v1beta1.yaml
+++ b/deploy/operator/clickhouse-operator-install-bundle-v1beta1.yaml
@@ -4,14 +4,14 @@
# SINGULAR=clickhouseinstallation
# PLURAL=clickhouseinstallations
# SHORT=chi
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -1079,7 +1079,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1226,7 +1226,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -1275,14 +1275,14 @@ spec:
# SINGULAR=clickhouseinstallationtemplate
# PLURAL=clickhouseinstallationtemplates
# SHORT=chit
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2348,7 +2348,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -2495,7 +2495,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -2547,7 +2547,7 @@ kind: CustomResourceDefinition
metadata:
name: clickhouseoperatorconfigurations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2909,6 +2909,40 @@ spec:
- "LabelClusterScopeCycleSize"
- "LabelClusterScopeCycleIndex"
- "LabelClusterScopeCycleOffset"
+ metrics:
+ type: object
+ description: "defines metrics exporter options"
+ properties:
+ labels:
+ type: object
+ description: "defines metric labels options"
+ properties:
+ exclude:
+ type: array
+ description: |
+ When adding labels to a metric exclude labels with names from the following list
+ items:
+ type: string
+ status:
+ type: object
+ description: "defines status options"
+ properties:
+ fields:
+ type: object
+ description: "defines status fields options"
+ properties:
+ action:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'action'"
+ actions:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'actions'"
+ error:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'error'"
+ errors:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'errors'"
statefulSet:
type: object
description: "define StatefulSet-specific parameters"
@@ -2952,14 +2986,14 @@ spec:
---
# Template Parameters:
#
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
labels:
- clickhouse-keeper.altinity.com/chop: 0.24.0
+ clickhouse-keeper.altinity.com/chop: 0.24.1
spec:
group: clickhouse-keeper.altinity.com
scope: Namespaced
@@ -3621,7 +3655,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -3768,7 +3802,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -3800,7 +3834,7 @@ metadata:
name: clickhouse-operator
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
# Template Parameters:
#
@@ -3825,7 +3859,7 @@ metadata:
name: clickhouse-operator-kube-system
#namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
rules:
#
# Core API group
@@ -4034,7 +4068,7 @@ metadata:
name: clickhouse-operator-kube-system
#namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
@@ -4056,7 +4090,7 @@ metadata:
name: etc-clickhouse-operator-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
config.yaml: |
@@ -4209,7 +4243,6 @@ data:
# These credentials are used for:
# 1. Metrics requests
# 2. Schema maintenance
- # 3. DROP DNS CACHE
# User with these credentials can be specified in additional ClickHouse .xml config files,
# located in 'clickhouse.configuration.file.path.user' folder
username: ""
@@ -4413,6 +4446,27 @@ data:
# LabelClusterScopeCycleOffset
appendScope: "no"
+ ################################################
+ ##
+ ## Metrics management section
+ ##
+ ################################################
+ metrics:
+ labels:
+ exclude: []
+
+ ################################################
+ ##
+ ## Status management section
+ ##
+ ################################################
+ status:
+ fields:
+ action: false
+ actions: false
+ error: false
+ errors: false
+
################################################
##
## StatefulSet management section
@@ -4458,7 +4512,7 @@ metadata:
name: etc-clickhouse-operator-confd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4474,7 +4528,7 @@ metadata:
name: etc-clickhouse-operator-configd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-01-listen.xml: |
@@ -4568,7 +4622,7 @@ metadata:
name: etc-clickhouse-operator-templatesd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
001-templates.json.example: |
@@ -4666,7 +4720,7 @@ metadata:
name: etc-clickhouse-operator-usersd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-operator-profile.xml: |
@@ -4728,7 +4782,7 @@ metadata:
name: etc-keeper-operator-confd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4744,7 +4798,7 @@ metadata:
name: etc-keeper-operator-configd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-keeper-01-default-config.xml: |
@@ -4767,7 +4821,6 @@ data:
/var/lib/clickhouse-keeper/coordination/snapshots
/var/lib/clickhouse-keeper
2181
- true
::
0.0.0.0
@@ -4807,6 +4860,18 @@ data:
+ 01-keeper-03-enable-reconfig.xml: |
+
+
+
+
+
+
+
+
+ false
+
+
---
# Template Parameters:
#
@@ -4820,7 +4885,7 @@ metadata:
name: etc-keeper-operator-templatesd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
readme: |
@@ -4838,7 +4903,7 @@ metadata:
name: etc-keeper-operator-usersd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4846,7 +4911,7 @@ data:
# Template parameters available:
# NAMESPACE=kube-system
# COMMENT=
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
# CH_USERNAME_SECRET_PLAIN=clickhouse_operator
# CH_PASSWORD_SECRET_PLAIN=clickhouse_operator_password
#
@@ -4856,7 +4921,7 @@ metadata:
name: clickhouse-operator
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
type: Opaque
stringData:
@@ -4867,9 +4932,9 @@ stringData:
#
# NAMESPACE=kube-system
# COMMENT=
-# OPERATOR_IMAGE=altinity/clickhouse-operator:0.24.0
+# OPERATOR_IMAGE=altinity/clickhouse-operator:0.24.1
# OPERATOR_IMAGE_PULL_POLICY=Always
-# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.24.0
+# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.24.1
# METRICS_EXPORTER_IMAGE_PULL_POLICY=Always
#
# Setup Deployment for clickhouse-operator
@@ -4880,7 +4945,7 @@ metadata:
name: clickhouse-operator
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
replicas: 1
@@ -4928,7 +4993,7 @@ spec:
name: etc-keeper-operator-usersd-files
containers:
- name: clickhouse-operator
- image: altinity/clickhouse-operator:0.24.0
+ image: altinity/clickhouse-operator:0.24.1
imagePullPolicy: Always
volumeMounts:
- name: etc-clickhouse-operator-folder
@@ -5002,7 +5067,7 @@ spec:
- containerPort: 9999
name: metrics
- name: metrics-exporter
- image: altinity/metrics-exporter:0.24.0
+ image: altinity/metrics-exporter:0.24.1
imagePullPolicy: Always
volumeMounts:
- name: etc-clickhouse-operator-folder
@@ -5092,7 +5157,7 @@ metadata:
name: clickhouse-operator-metrics
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
ports:
diff --git a/deploy/operator/clickhouse-operator-install-bundle.yaml b/deploy/operator/clickhouse-operator-install-bundle.yaml
index 762ce24b0..5180e0606 100644
--- a/deploy/operator/clickhouse-operator-install-bundle.yaml
+++ b/deploy/operator/clickhouse-operator-install-bundle.yaml
@@ -4,14 +4,14 @@
# SINGULAR=clickhouseinstallation
# PLURAL=clickhouseinstallations
# SHORT=chi
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -1087,7 +1087,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1235,7 +1235,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -1284,14 +1284,14 @@ spec:
# SINGULAR=clickhouseinstallationtemplate
# PLURAL=clickhouseinstallationtemplates
# SHORT=chit
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2367,7 +2367,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -2515,7 +2515,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -2567,7 +2567,7 @@ kind: CustomResourceDefinition
metadata:
name: clickhouseoperatorconfigurations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2934,6 +2934,40 @@ spec:
- "LabelClusterScopeCycleSize"
- "LabelClusterScopeCycleIndex"
- "LabelClusterScopeCycleOffset"
+ metrics:
+ type: object
+ description: "defines metrics exporter options"
+ properties:
+ labels:
+ type: object
+ description: "defines metric labels options"
+ properties:
+ exclude:
+ type: array
+ description: |
+ When adding labels to a metric exclude labels with names from the following list
+ items:
+ type: string
+ status:
+ type: object
+ description: "defines status options"
+ properties:
+ fields:
+ type: object
+ description: "defines status fields options"
+ properties:
+ action:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'action'"
+ actions:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'actions'"
+ error:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'error'"
+ errors:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'errors'"
statefulSet:
type: object
description: "define StatefulSet-specific parameters"
@@ -2982,14 +3016,14 @@ spec:
---
# Template Parameters:
#
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
labels:
- clickhouse-keeper.altinity.com/chop: 0.24.0
+ clickhouse-keeper.altinity.com/chop: 0.24.1
spec:
group: clickhouse-keeper.altinity.com
scope: Namespaced
@@ -3653,7 +3687,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -3801,7 +3835,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -3833,7 +3867,7 @@ metadata:
name: clickhouse-operator
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
---
# Template Parameters:
#
@@ -3859,7 +3893,7 @@ metadata:
name: clickhouse-operator-kube-system
#namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
rules:
#
@@ -4078,7 +4112,7 @@ metadata:
name: clickhouse-operator-kube-system
#namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
@@ -4100,7 +4134,7 @@ metadata:
name: etc-clickhouse-operator-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
config.yaml: |
@@ -4253,7 +4287,6 @@ data:
# These credentials are used for:
# 1. Metrics requests
# 2. Schema maintenance
- # 3. DROP DNS CACHE
# User with these credentials can be specified in additional ClickHouse .xml config files,
# located in 'clickhouse.configuration.file.path.user' folder
username: ""
@@ -4457,6 +4490,27 @@ data:
# LabelClusterScopeCycleOffset
appendScope: "no"
+ ################################################
+ ##
+ ## Metrics management section
+ ##
+ ################################################
+ metrics:
+ labels:
+ exclude: []
+
+ ################################################
+ ##
+ ## Status management section
+ ##
+ ################################################
+ status:
+ fields:
+ action: false
+ actions: false
+ error: false
+ errors: false
+
################################################
##
## StatefulSet management section
@@ -4503,7 +4557,7 @@ metadata:
name: etc-clickhouse-operator-confd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4519,7 +4573,7 @@ metadata:
name: etc-clickhouse-operator-configd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-01-listen.xml: |
@@ -4618,7 +4672,7 @@ metadata:
name: etc-clickhouse-operator-templatesd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
001-templates.json.example: |
@@ -4718,7 +4772,7 @@ metadata:
name: etc-clickhouse-operator-usersd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-operator-profile.xml: |
@@ -4781,7 +4835,7 @@ metadata:
name: etc-keeper-operator-confd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4797,7 +4851,7 @@ metadata:
name: etc-keeper-operator-configd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-keeper-01-default-config.xml: |
@@ -4820,7 +4874,6 @@ data:
/var/lib/clickhouse-keeper/coordination/snapshots
/var/lib/clickhouse-keeper
2181
- true
::
0.0.0.0
@@ -4862,6 +4915,19 @@ data:
+ 01-keeper-03-enable-reconfig.xml: |
+
+
+
+
+
+
+
+
+ false
+
+
+
---
# Template Parameters:
#
@@ -4875,7 +4941,7 @@ metadata:
name: etc-keeper-operator-templatesd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
readme: |
@@ -4893,7 +4959,7 @@ metadata:
name: etc-keeper-operator-usersd-files
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4901,7 +4967,7 @@ data:
# Template parameters available:
# NAMESPACE=kube-system
# COMMENT=
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
# CH_USERNAME_SECRET_PLAIN=clickhouse_operator
# CH_PASSWORD_SECRET_PLAIN=clickhouse_operator_password
#
@@ -4911,7 +4977,7 @@ metadata:
name: clickhouse-operator
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
type: Opaque
stringData:
@@ -4922,9 +4988,9 @@ stringData:
#
# NAMESPACE=kube-system
# COMMENT=
-# OPERATOR_IMAGE=altinity/clickhouse-operator:0.24.0
+# OPERATOR_IMAGE=altinity/clickhouse-operator:0.24.1
# OPERATOR_IMAGE_PULL_POLICY=Always
-# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.24.0
+# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.24.1
# METRICS_EXPORTER_IMAGE_PULL_POLICY=Always
#
# Setup Deployment for clickhouse-operator
@@ -4935,7 +5001,7 @@ metadata:
name: clickhouse-operator
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
replicas: 1
@@ -4983,7 +5049,7 @@ spec:
name: etc-keeper-operator-usersd-files
containers:
- name: clickhouse-operator
- image: altinity/clickhouse-operator:0.24.0
+ image: altinity/clickhouse-operator:0.24.1
imagePullPolicy: Always
volumeMounts:
- name: etc-clickhouse-operator-folder
@@ -5059,7 +5125,7 @@ spec:
name: metrics
- name: metrics-exporter
- image: altinity/metrics-exporter:0.24.0
+ image: altinity/metrics-exporter:0.24.1
imagePullPolicy: Always
volumeMounts:
- name: etc-clickhouse-operator-folder
@@ -5150,7 +5216,7 @@ metadata:
name: clickhouse-operator-metrics
namespace: kube-system
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
ports:
diff --git a/deploy/operator/clickhouse-operator-install-template-v1beta1.yaml b/deploy/operator/clickhouse-operator-install-template-v1beta1.yaml
index c6204ec06..3ba53a09b 100644
--- a/deploy/operator/clickhouse-operator-install-template-v1beta1.yaml
+++ b/deploy/operator/clickhouse-operator-install-template-v1beta1.yaml
@@ -4,14 +4,14 @@
# SINGULAR=clickhouseinstallation
# PLURAL=clickhouseinstallations
# SHORT=chi
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -1079,7 +1079,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1226,7 +1226,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -1275,14 +1275,14 @@ spec:
# SINGULAR=clickhouseinstallationtemplate
# PLURAL=clickhouseinstallationtemplates
# SHORT=chit
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2348,7 +2348,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -2495,7 +2495,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -2547,7 +2547,7 @@ kind: CustomResourceDefinition
metadata:
name: clickhouseoperatorconfigurations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2909,6 +2909,40 @@ spec:
- "LabelClusterScopeCycleSize"
- "LabelClusterScopeCycleIndex"
- "LabelClusterScopeCycleOffset"
+ metrics:
+ type: object
+ description: "defines metrics exporter options"
+ properties:
+ labels:
+ type: object
+ description: "defines metric labels options"
+ properties:
+ exclude:
+ type: array
+ description: |
+ When adding labels to a metric exclude labels with names from the following list
+ items:
+ type: string
+ status:
+ type: object
+ description: "defines status options"
+ properties:
+ fields:
+ type: object
+ description: "defines status fields options"
+ properties:
+ action:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'action'"
+ actions:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'actions'"
+ error:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'error'"
+ errors:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'errors'"
statefulSet:
type: object
description: "define StatefulSet-specific parameters"
@@ -2952,14 +2986,14 @@ spec:
---
# Template Parameters:
#
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
labels:
- clickhouse-keeper.altinity.com/chop: 0.24.0
+ clickhouse-keeper.altinity.com/chop: 0.24.1
spec:
group: clickhouse-keeper.altinity.com
scope: Namespaced
@@ -3621,7 +3655,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -3768,7 +3802,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -3800,7 +3834,7 @@ metadata:
name: clickhouse-operator
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
# Template Parameters:
#
@@ -3825,7 +3859,7 @@ metadata:
name: clickhouse-operator-${OPERATOR_NAMESPACE}
#namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
rules:
#
# Core API group
@@ -4034,7 +4068,7 @@ metadata:
name: clickhouse-operator-${OPERATOR_NAMESPACE}
#namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
@@ -4056,7 +4090,7 @@ metadata:
name: etc-clickhouse-operator-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
config.yaml: |
@@ -4209,7 +4243,6 @@ data:
# These credentials are used for:
# 1. Metrics requests
# 2. Schema maintenance
- # 3. DROP DNS CACHE
# User with these credentials can be specified in additional ClickHouse .xml config files,
# located in 'clickhouse.configuration.file.path.user' folder
username: ""
@@ -4413,6 +4446,27 @@ data:
# LabelClusterScopeCycleOffset
appendScope: "no"
+ ################################################
+ ##
+ ## Metrics management section
+ ##
+ ################################################
+ metrics:
+ labels:
+ exclude: []
+
+ ################################################
+ ##
+ ## Status management section
+ ##
+ ################################################
+ status:
+ fields:
+ action: false
+ actions: false
+ error: false
+ errors: false
+
################################################
##
## StatefulSet management section
@@ -4458,7 +4512,7 @@ metadata:
name: etc-clickhouse-operator-confd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4474,7 +4528,7 @@ metadata:
name: etc-clickhouse-operator-configd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-01-listen.xml: |
@@ -4568,7 +4622,7 @@ metadata:
name: etc-clickhouse-operator-templatesd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
001-templates.json.example: |
@@ -4666,7 +4720,7 @@ metadata:
name: etc-clickhouse-operator-usersd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-operator-profile.xml: |
@@ -4728,7 +4782,7 @@ metadata:
name: etc-keeper-operator-confd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4744,7 +4798,7 @@ metadata:
name: etc-keeper-operator-configd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-keeper-01-default-config.xml: |
@@ -4767,7 +4821,6 @@ data:
/var/lib/clickhouse-keeper/coordination/snapshots
/var/lib/clickhouse-keeper
2181
- true
::
0.0.0.0
@@ -4807,6 +4860,18 @@ data:
+ 01-keeper-03-enable-reconfig.xml: |
+
+
+
+
+
+
+
+
+ false
+
+
---
# Template Parameters:
#
@@ -4820,7 +4885,7 @@ metadata:
name: etc-keeper-operator-templatesd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
readme: |
@@ -4838,7 +4903,7 @@ metadata:
name: etc-keeper-operator-usersd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4846,7 +4911,7 @@ data:
# Template parameters available:
# NAMESPACE=${OPERATOR_NAMESPACE}
# COMMENT=
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
# CH_USERNAME_SECRET_PLAIN=clickhouse_operator
# CH_PASSWORD_SECRET_PLAIN=clickhouse_operator_password
#
@@ -4856,7 +4921,7 @@ metadata:
name: clickhouse-operator
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
type: Opaque
stringData:
@@ -4880,7 +4945,7 @@ metadata:
name: clickhouse-operator
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
replicas: 1
@@ -5092,7 +5157,7 @@ metadata:
name: clickhouse-operator-metrics
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
ports:
diff --git a/deploy/operator/clickhouse-operator-install-template.yaml b/deploy/operator/clickhouse-operator-install-template.yaml
index b91794ef2..16c0727dc 100644
--- a/deploy/operator/clickhouse-operator-install-template.yaml
+++ b/deploy/operator/clickhouse-operator-install-template.yaml
@@ -4,14 +4,14 @@
# SINGULAR=clickhouseinstallation
# PLURAL=clickhouseinstallations
# SHORT=chi
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -1087,7 +1087,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1235,7 +1235,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -1284,14 +1284,14 @@ spec:
# SINGULAR=clickhouseinstallationtemplate
# PLURAL=clickhouseinstallationtemplates
# SHORT=chit
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2367,7 +2367,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -2515,7 +2515,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -2567,7 +2567,7 @@ kind: CustomResourceDefinition
metadata:
name: clickhouseoperatorconfigurations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2934,6 +2934,40 @@ spec:
- "LabelClusterScopeCycleSize"
- "LabelClusterScopeCycleIndex"
- "LabelClusterScopeCycleOffset"
+ metrics:
+ type: object
+ description: "defines metrics exporter options"
+ properties:
+ labels:
+ type: object
+ description: "defines metric labels options"
+ properties:
+ exclude:
+ type: array
+ description: |
+ When adding labels to a metric exclude labels with names from the following list
+ items:
+ type: string
+ status:
+ type: object
+ description: "defines status options"
+ properties:
+ fields:
+ type: object
+ description: "defines status fields options"
+ properties:
+ action:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'action'"
+ actions:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'actions'"
+ error:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'error'"
+ errors:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'errors'"
statefulSet:
type: object
description: "define StatefulSet-specific parameters"
@@ -2982,14 +3016,14 @@ spec:
---
# Template Parameters:
#
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
labels:
- clickhouse-keeper.altinity.com/chop: 0.24.0
+ clickhouse-keeper.altinity.com/chop: 0.24.1
spec:
group: clickhouse-keeper.altinity.com
scope: Namespaced
@@ -3653,7 +3687,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -3801,7 +3835,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -3833,7 +3867,7 @@ metadata:
name: clickhouse-operator
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
---
# Template Parameters:
#
@@ -3859,7 +3893,7 @@ metadata:
name: clickhouse-operator-${OPERATOR_NAMESPACE}
#namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
rules:
#
@@ -4078,7 +4112,7 @@ metadata:
name: clickhouse-operator-${OPERATOR_NAMESPACE}
#namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
@@ -4100,7 +4134,7 @@ metadata:
name: etc-clickhouse-operator-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
config.yaml: |
@@ -4253,7 +4287,6 @@ data:
# These credentials are used for:
# 1. Metrics requests
# 2. Schema maintenance
- # 3. DROP DNS CACHE
# User with these credentials can be specified in additional ClickHouse .xml config files,
# located in 'clickhouse.configuration.file.path.user' folder
username: ""
@@ -4457,6 +4490,27 @@ data:
# LabelClusterScopeCycleOffset
appendScope: "no"
+ ################################################
+ ##
+ ## Metrics management section
+ ##
+ ################################################
+ metrics:
+ labels:
+ exclude: []
+
+ ################################################
+ ##
+ ## Status management section
+ ##
+ ################################################
+ status:
+ fields:
+ action: false
+ actions: false
+ error: false
+ errors: false
+
################################################
##
## StatefulSet management section
@@ -4503,7 +4557,7 @@ metadata:
name: etc-clickhouse-operator-confd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4519,7 +4573,7 @@ metadata:
name: etc-clickhouse-operator-configd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-01-listen.xml: |
@@ -4618,7 +4672,7 @@ metadata:
name: etc-clickhouse-operator-templatesd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
001-templates.json.example: |
@@ -4718,7 +4772,7 @@ metadata:
name: etc-clickhouse-operator-usersd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-operator-profile.xml: |
@@ -4781,7 +4835,7 @@ metadata:
name: etc-keeper-operator-confd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4797,7 +4851,7 @@ metadata:
name: etc-keeper-operator-configd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-keeper-01-default-config.xml: |
@@ -4820,7 +4874,6 @@ data:
/var/lib/clickhouse-keeper/coordination/snapshots
/var/lib/clickhouse-keeper
2181
- true
::
0.0.0.0
@@ -4862,6 +4915,19 @@ data:
+ 01-keeper-03-enable-reconfig.xml: |
+
+
+
+
+
+
+
+
+ false
+
+
+
---
# Template Parameters:
#
@@ -4875,7 +4941,7 @@ metadata:
name: etc-keeper-operator-templatesd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
readme: |
@@ -4893,7 +4959,7 @@ metadata:
name: etc-keeper-operator-usersd-files
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4901,7 +4967,7 @@ data:
# Template parameters available:
# NAMESPACE=${OPERATOR_NAMESPACE}
# COMMENT=
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
# CH_USERNAME_SECRET_PLAIN=clickhouse_operator
# CH_PASSWORD_SECRET_PLAIN=clickhouse_operator_password
#
@@ -4911,7 +4977,7 @@ metadata:
name: clickhouse-operator
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
type: Opaque
stringData:
@@ -4935,7 +5001,7 @@ metadata:
name: clickhouse-operator
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
replicas: 1
@@ -5150,7 +5216,7 @@ metadata:
name: clickhouse-operator-metrics
namespace: ${OPERATOR_NAMESPACE}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
ports:
diff --git a/deploy/operator/clickhouse-operator-install-tf.yaml b/deploy/operator/clickhouse-operator-install-tf.yaml
index 0fb8e9f9d..4795ecee3 100644
--- a/deploy/operator/clickhouse-operator-install-tf.yaml
+++ b/deploy/operator/clickhouse-operator-install-tf.yaml
@@ -11,14 +11,14 @@
# SINGULAR=clickhouseinstallation
# PLURAL=clickhouseinstallations
# SHORT=chi
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -1094,7 +1094,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1242,7 +1242,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -1291,14 +1291,14 @@ spec:
# SINGULAR=clickhouseinstallationtemplate
# PLURAL=clickhouseinstallationtemplates
# SHORT=chit
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2374,7 +2374,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -2522,7 +2522,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -2574,7 +2574,7 @@ kind: CustomResourceDefinition
metadata:
name: clickhouseoperatorconfigurations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -2941,6 +2941,40 @@ spec:
- "LabelClusterScopeCycleSize"
- "LabelClusterScopeCycleIndex"
- "LabelClusterScopeCycleOffset"
+ metrics:
+ type: object
+ description: "defines metrics exporter options"
+ properties:
+ labels:
+ type: object
+ description: "defines metric labels options"
+ properties:
+ exclude:
+ type: array
+ description: |
+ When adding labels to a metric exclude labels with names from the following list
+ items:
+ type: string
+ status:
+ type: object
+ description: "defines status options"
+ properties:
+ fields:
+ type: object
+ description: "defines status fields options"
+ properties:
+ action:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'action'"
+ actions:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'actions'"
+ error:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'error'"
+ errors:
+ <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'errors'"
statefulSet:
type: object
description: "define StatefulSet-specific parameters"
@@ -2989,14 +3023,14 @@ spec:
---
# Template Parameters:
#
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
labels:
- clickhouse-keeper.altinity.com/chop: 0.24.0
+ clickhouse-keeper.altinity.com/chop: 0.24.1
spec:
group: clickhouse-keeper.altinity.com
scope: Namespaced
@@ -3660,7 +3694,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -3808,7 +3842,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -3840,7 +3874,7 @@ metadata:
name: clickhouse-operator
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
---
# Template Parameters:
#
@@ -3866,7 +3900,7 @@ metadata:
name: clickhouse-operator
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
rules:
#
@@ -4085,7 +4119,7 @@ metadata:
name: clickhouse-operator
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
@@ -4107,7 +4141,7 @@ metadata:
name: etc-clickhouse-operator-files
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
config.yaml: |
@@ -4260,7 +4294,6 @@ data:
# These credentials are used for:
# 1. Metrics requests
# 2. Schema maintenance
- # 3. DROP DNS CACHE
# User with these credentials can be specified in additional ClickHouse .xml config files,
# located in 'clickhouse.configuration.file.path.user' folder
username: ""
@@ -4464,6 +4497,27 @@ data:
# LabelClusterScopeCycleOffset
appendScope: "no"
+ ################################################
+ ##
+ ## Metrics management section
+ ##
+ ################################################
+ metrics:
+ labels:
+ exclude: []
+
+ ################################################
+ ##
+ ## Status management section
+ ##
+ ################################################
+ status:
+ fields:
+ action: false
+ actions: false
+ error: false
+ errors: false
+
################################################
##
## StatefulSet management section
@@ -4510,7 +4564,7 @@ metadata:
name: etc-clickhouse-operator-confd-files
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4526,7 +4580,7 @@ metadata:
name: etc-clickhouse-operator-configd-files
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-01-listen.xml: |
@@ -4625,7 +4679,7 @@ metadata:
name: etc-clickhouse-operator-templatesd-files
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
001-templates.json.example: |
@@ -4725,7 +4779,7 @@ metadata:
name: etc-clickhouse-operator-usersd-files
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-clickhouse-operator-profile.xml: |
@@ -4788,7 +4842,7 @@ metadata:
name: etc-keeper-operator-confd-files
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4804,7 +4858,7 @@ metadata:
name: etc-keeper-operator-configd-files
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
01-keeper-01-default-config.xml: |
@@ -4827,7 +4881,6 @@ data:
/var/lib/clickhouse-keeper/coordination/snapshots
/var/lib/clickhouse-keeper
2181
- true
::
0.0.0.0
@@ -4869,6 +4922,19 @@ data:
+ 01-keeper-03-enable-reconfig.xml: |
+
+
+
+
+
+
+
+
+ false
+
+
+
---
# Template Parameters:
#
@@ -4882,7 +4948,7 @@ metadata:
name: etc-keeper-operator-templatesd-files
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
readme: |
@@ -4900,7 +4966,7 @@ metadata:
name: etc-keeper-operator-usersd-files
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
data:
---
@@ -4908,7 +4974,7 @@ data:
# Template parameters available:
# NAMESPACE=${namespace}
# COMMENT=
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
# CH_USERNAME_SECRET_PLAIN=clickhouse_operator
# CH_PASSWORD_SECRET_PLAIN=${password}
#
@@ -4918,7 +4984,7 @@ metadata:
name: clickhouse-operator
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
type: Opaque
stringData:
@@ -4929,9 +4995,9 @@ stringData:
#
# NAMESPACE=${namespace}
# COMMENT=
-# OPERATOR_IMAGE=altinity/clickhouse-operator:0.24.0
+# OPERATOR_IMAGE=altinity/clickhouse-operator:0.24.1
# OPERATOR_IMAGE_PULL_POLICY=Always
-# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.24.0
+# METRICS_EXPORTER_IMAGE=altinity/metrics-exporter:0.24.1
# METRICS_EXPORTER_IMAGE_PULL_POLICY=Always
#
# Setup Deployment for clickhouse-operator
@@ -4942,7 +5008,7 @@ metadata:
name: clickhouse-operator
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
replicas: 1
@@ -4990,7 +5056,7 @@ spec:
name: etc-keeper-operator-usersd-files
containers:
- name: clickhouse-operator
- image: altinity/clickhouse-operator:0.24.0
+ image: altinity/clickhouse-operator:0.24.1
imagePullPolicy: Always
volumeMounts:
- name: etc-clickhouse-operator-folder
@@ -5066,7 +5132,7 @@ spec:
name: metrics
- name: metrics-exporter
- image: altinity/metrics-exporter:0.24.0
+ image: altinity/metrics-exporter:0.24.1
imagePullPolicy: Always
volumeMounts:
- name: etc-clickhouse-operator-folder
@@ -5157,7 +5223,7 @@ metadata:
name: clickhouse-operator-metrics
namespace: ${namespace}
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
app: clickhouse-operator
spec:
ports:
diff --git a/deploy/operator/parts/crd.yaml b/deploy/operator/parts/crd.yaml
index 12dd8e5c7..bbccf18d3 100644
--- a/deploy/operator/parts/crd.yaml
+++ b/deploy/operator/parts/crd.yaml
@@ -4,14 +4,14 @@
# SINGULAR=clickhouseinstallation
# PLURAL=clickhouseinstallations
# SHORT=chi
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -1699,7 +1699,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1860,7 +1860,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -1909,14 +1909,14 @@ spec:
# SINGULAR=clickhouseinstallationtemplate
# PLURAL=clickhouseinstallationtemplates
# SHORT=chit
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhouseinstallationtemplates.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -3604,7 +3604,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -3765,7 +3765,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
@@ -3817,7 +3817,7 @@ kind: CustomResourceDefinition
metadata:
name: clickhouseoperatorconfigurations.clickhouse.altinity.com
labels:
- clickhouse.altinity.com/chop: 0.24.0
+ clickhouse.altinity.com/chop: 0.24.1
spec:
group: clickhouse.altinity.com
scope: Namespaced
@@ -4258,6 +4258,140 @@ spec:
- "LabelClusterScopeCycleSize"
- "LabelClusterScopeCycleIndex"
- "LabelClusterScopeCycleOffset"
+ metrics:
+ type: object
+ description: "defines metrics exporter options"
+ properties:
+ labels:
+ type: object
+ description: "defines metric labels options"
+ properties:
+ exclude:
+ type: array
+ description: |
+ When adding labels to a metric exclude labels with names from the following list
+ items:
+ type: string
+ status:
+ type: object
+ description: "defines status options"
+ properties:
+ fields:
+ type: object
+ description: "defines status fields options"
+ properties:
+ action:
+ type: string
+ enum:
+ # List StringBoolXXX constants from model
+ - ""
+ - "0"
+ - "1"
+ - "False"
+ - "false"
+ - "True"
+ - "true"
+ - "No"
+ - "no"
+ - "Yes"
+ - "yes"
+ - "Off"
+ - "off"
+ - "On"
+ - "on"
+ - "Disable"
+ - "disable"
+ - "Enable"
+ - "enable"
+ - "Disabled"
+ - "disabled"
+ - "Enabled"
+ - "enabled"
+ description: "Whether the operator should fill status field 'action'"
+ actions:
+ type: string
+ enum:
+ # List StringBoolXXX constants from model
+ - ""
+ - "0"
+ - "1"
+ - "False"
+ - "false"
+ - "True"
+ - "true"
+ - "No"
+ - "no"
+ - "Yes"
+ - "yes"
+ - "Off"
+ - "off"
+ - "On"
+ - "on"
+ - "Disable"
+ - "disable"
+ - "Enable"
+ - "enable"
+ - "Disabled"
+ - "disabled"
+ - "Enabled"
+ - "enabled"
+ description: "Whether the operator should fill status field 'actions'"
+ error:
+ type: string
+ enum:
+ # List StringBoolXXX constants from model
+ - ""
+ - "0"
+ - "1"
+ - "False"
+ - "false"
+ - "True"
+ - "true"
+ - "No"
+ - "no"
+ - "Yes"
+ - "yes"
+ - "Off"
+ - "off"
+ - "On"
+ - "on"
+ - "Disable"
+ - "disable"
+ - "Enable"
+ - "enable"
+ - "Disabled"
+ - "disabled"
+ - "Enabled"
+ - "enabled"
+ description: "Whether the operator should fill status field 'error'"
+ errors:
+ type: string
+ enum:
+ # List StringBoolXXX constants from model
+ - ""
+ - "0"
+ - "1"
+ - "False"
+ - "false"
+ - "True"
+ - "true"
+ - "No"
+ - "no"
+ - "Yes"
+ - "yes"
+ - "Off"
+ - "off"
+ - "On"
+ - "on"
+ - "Disable"
+ - "disable"
+ - "Enable"
+ - "enable"
+ - "Disabled"
+ - "disabled"
+ - "Enabled"
+ - "enabled"
+ description: "Whether the operator should fill status field 'errors'"
statefulSet:
type: object
description: "define StatefulSet-specific parameters"
@@ -4301,14 +4435,14 @@ spec:
---
# Template Parameters:
#
-# OPERATOR_VERSION=0.24.0
+# OPERATOR_VERSION=0.24.1
#
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
labels:
- clickhouse-keeper.altinity.com/chop: 0.24.0
+ clickhouse-keeper.altinity.com/chop: 0.24.1
spec:
group: clickhouse-keeper.altinity.com
scope: Namespaced
@@ -5161,7 +5295,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -5322,7 +5456,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.18.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.18.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 8846c528c..4ba236761 100644
--- a/deploy/operatorhub/0.18.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.18.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1130,7 +1130,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1276,7 +1276,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.18.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.18.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index fb8c6a5c4..bdffd61aa 100644
--- a/deploy/operatorhub/0.18.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.18.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1130,7 +1130,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1276,7 +1276,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.18.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.18.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index f426484cd..07293a392 100644
--- a/deploy/operatorhub/0.18.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.18.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1135,7 +1135,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1281,7 +1281,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.18.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.18.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 549d3b2d0..17b4a76d6 100644
--- a/deploy/operatorhub/0.18.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.18.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1135,7 +1135,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1281,7 +1281,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.18.4/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.18.4/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 355b6a81a..d829ec791 100644
--- a/deploy/operatorhub/0.18.4/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.18.4/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1138,7 +1138,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1284,7 +1284,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.18.4/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.18.4/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 2db6b2c5f..f00a2495b 100644
--- a/deploy/operatorhub/0.18.4/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.18.4/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1138,7 +1138,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1284,7 +1284,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.18.5/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.18.5/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index f0a5c3dec..dcaa29466 100644
--- a/deploy/operatorhub/0.18.5/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.18.5/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1138,7 +1138,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1284,7 +1284,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.18.5/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.18.5/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 7c27ec118..68cdb6b04 100644
--- a/deploy/operatorhub/0.18.5/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.18.5/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1138,7 +1138,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1284,7 +1284,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.19.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.19.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 8b69d12b8..59e6b8aba 100644
--- a/deploy/operatorhub/0.19.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.19.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1166,7 +1166,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1312,7 +1312,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.19.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.19.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index afe349614..8f222c23f 100644
--- a/deploy/operatorhub/0.19.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.19.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1166,7 +1166,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1312,7 +1312,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.19.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.19.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 97430f0b5..e2e707b3d 100644
--- a/deploy/operatorhub/0.19.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.19.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1166,7 +1166,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1312,7 +1312,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.19.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.19.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 65ceef223..3892696b6 100644
--- a/deploy/operatorhub/0.19.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.19.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1166,7 +1166,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1312,7 +1312,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.19.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.19.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 7e31a6c67..ec1789cd0 100644
--- a/deploy/operatorhub/0.19.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.19.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1166,7 +1166,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1312,7 +1312,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.19.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.19.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index cce07c0cd..7195cfa02 100644
--- a/deploy/operatorhub/0.19.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.19.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1166,7 +1166,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1312,7 +1312,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.19.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.19.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index ed7229600..1f98f08da 100644
--- a/deploy/operatorhub/0.19.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.19.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1170,7 +1170,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1316,7 +1316,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.19.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.19.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 173b4a8cb..a4157bca9 100644
--- a/deploy/operatorhub/0.19.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.19.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1170,7 +1170,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1316,7 +1316,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.20.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.20.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 9791a3e5f..242331f82 100644
--- a/deploy/operatorhub/0.20.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.20.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -918,7 +918,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1059,7 +1059,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.20.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.20.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 8aec7404d..df819e90b 100644
--- a/deploy/operatorhub/0.20.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.20.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -918,7 +918,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1059,7 +1059,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.20.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.20.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 13a048b0b..073256ded 100644
--- a/deploy/operatorhub/0.20.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.20.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -927,7 +927,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1068,7 +1068,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.20.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.20.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 2fd153449..f45b2db71 100644
--- a/deploy/operatorhub/0.20.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.20.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -927,7 +927,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1068,7 +1068,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.20.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.20.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index e1398e81c..22d878b17 100644
--- a/deploy/operatorhub/0.20.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.20.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -930,7 +930,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1071,7 +1071,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.20.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.20.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index c990e231e..5aa019a9e 100644
--- a/deploy/operatorhub/0.20.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.20.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -930,7 +930,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1071,7 +1071,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.20.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.20.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 6a0c2edc3..bd947f758 100644
--- a/deploy/operatorhub/0.20.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.20.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -930,7 +930,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1071,7 +1071,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.20.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.20.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index eb1f9d6e4..8b1f146e6 100644
--- a/deploy/operatorhub/0.20.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.20.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -930,7 +930,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1071,7 +1071,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.21.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.21.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 6faab92aa..c54dc3495 100644
--- a/deploy/operatorhub/0.21.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.21.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -970,7 +970,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1111,7 +1111,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.21.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.21.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index eac22ae7b..c8a418f2e 100644
--- a/deploy/operatorhub/0.21.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.21.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -970,7 +970,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1111,7 +1111,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.21.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.21.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index aaf5cdbab..4b0c0583e 100644
--- a/deploy/operatorhub/0.21.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.21.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -970,7 +970,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1111,7 +1111,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.21.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.21.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 503968d7f..05ca09df1 100644
--- a/deploy/operatorhub/0.21.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.21.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -970,7 +970,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1111,7 +1111,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.21.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.21.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 517a9e8cf..e0874c1fb 100644
--- a/deploy/operatorhub/0.21.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.21.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -970,7 +970,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1111,7 +1111,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.21.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.21.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 5be3ae2f2..d29ae7061 100644
--- a/deploy/operatorhub/0.21.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.21.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -970,7 +970,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1111,7 +1111,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.21.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.21.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index b47c5b99c..d2a286eda 100644
--- a/deploy/operatorhub/0.21.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.21.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -983,7 +983,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1124,7 +1124,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.21.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.21.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index f434f0cad..5327df3d7 100644
--- a/deploy/operatorhub/0.21.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.21.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -983,7 +983,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1124,7 +1124,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.22.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.22.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index f84abd64e..c4fa3f332 100644
--- a/deploy/operatorhub/0.22.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.22.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -997,7 +997,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1138,7 +1138,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.22.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.22.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 43dd55fa3..dcc88563d 100644
--- a/deploy/operatorhub/0.22.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.22.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -997,7 +997,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1138,7 +1138,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.22.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.22.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index f80c0f8de..0ec6a96fc 100644
--- a/deploy/operatorhub/0.22.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.22.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1010,7 +1010,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1151,7 +1151,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.22.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.22.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 659dd9849..c59af4a20 100644
--- a/deploy/operatorhub/0.22.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.22.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1010,7 +1010,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1151,7 +1151,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.22.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.22.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 55d6db79f..72c7f07d7 100644
--- a/deploy/operatorhub/0.22.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.22.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1010,7 +1010,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1151,7 +1151,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.22.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.22.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 4e3c34f74..27aab81e3 100644
--- a/deploy/operatorhub/0.22.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.22.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1010,7 +1010,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1151,7 +1151,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 7ed41338b..2f075ad20 100644
--- a/deploy/operatorhub/0.23.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1027,7 +1027,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1168,7 +1168,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 44af53f6b..8b364855a 100644
--- a/deploy/operatorhub/0.23.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1027,7 +1027,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1168,7 +1168,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index f9f6b42f6..3503c01b2 100644
--- a/deploy/operatorhub/0.23.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1027,7 +1027,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1168,7 +1168,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 7175710cc..78260fbdd 100644
--- a/deploy/operatorhub/0.23.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1027,7 +1027,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1168,7 +1168,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index f16c17d15..9286b5951 100644
--- a/deploy/operatorhub/0.23.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.2/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1027,7 +1027,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1168,7 +1168,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 29451b1ba..88f050d10 100644
--- a/deploy/operatorhub/0.23.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.2/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1027,7 +1027,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1168,7 +1168,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 093e55fc9..082f421f3 100644
--- a/deploy/operatorhub/0.23.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.3/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1036,7 +1036,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1177,7 +1177,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 837b2f286..964be1b6a 100644
--- a/deploy/operatorhub/0.23.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.3/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1036,7 +1036,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1177,7 +1177,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.4/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.4/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index f3eff2751..d97ee2c0e 100644
--- a/deploy/operatorhub/0.23.4/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.4/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1036,7 +1036,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1177,7 +1177,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.4/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.4/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index d8ef8ba5e..d854c33f3 100644
--- a/deploy/operatorhub/0.23.4/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.4/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1036,7 +1036,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1177,7 +1177,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.5/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.5/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 70beee4cb..1ab6e6a00 100644
--- a/deploy/operatorhub/0.23.5/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.5/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1036,7 +1036,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1177,7 +1177,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.5/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.5/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index fa5b50c4c..372998a59 100644
--- a/deploy/operatorhub/0.23.5/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.5/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1036,7 +1036,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1177,7 +1177,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.6/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.6/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 9821c68c8..ba8c45e41 100644
--- a/deploy/operatorhub/0.23.6/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.6/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1036,7 +1036,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1177,7 +1177,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.6/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.6/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index a115defc1..9c19bcb51 100644
--- a/deploy/operatorhub/0.23.6/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.6/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1036,7 +1036,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1177,7 +1177,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.7/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.7/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index 7e3da2898..2d50369b5 100644
--- a/deploy/operatorhub/0.23.7/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.7/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1036,7 +1036,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1177,7 +1177,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.23.7/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.23.7/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index e144c73d0..ec3dccad6 100644
--- a/deploy/operatorhub/0.23.7/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.23.7/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1036,7 +1036,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1177,7 +1177,7 @@ spec:
replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
generateName:
type: string
- description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Service` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.24.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.24.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
index a49e1a848..17eb6fee4 100644
--- a/deploy/operatorhub/0.24.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.24.0/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -1056,7 +1056,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1203,7 +1203,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.24.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.24.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
index 35bc793cd..767c09052 100644
--- a/deploy/operatorhub/0.24.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.24.0/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -1056,7 +1056,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -1203,7 +1203,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.24.0/clickhousekeeperinstallations.clickhouse-keeper.altinity.com.crd.yaml b/deploy/operatorhub/0.24.0/clickhousekeeperinstallations.clickhouse-keeper.altinity.com.crd.yaml
index b3e19dc37..0f003fe28 100644
--- a/deploy/operatorhub/0.24.0/clickhousekeeperinstallations.clickhouse-keeper.altinity.com.crd.yaml
+++ b/deploy/operatorhub/0.24.0/clickhousekeeperinstallations.clickhouse-keeper.altinity.com.crd.yaml
@@ -669,7 +669,7 @@ spec:
description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
generateName:
type: string
- description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about aviailable template variables"
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
zone:
type: object
description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
@@ -816,7 +816,7 @@ spec:
description: |
allows define format for generated `Service` name,
look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
- for details about aviailable template variables"
+ for details about available template variables"
metadata:
# TODO specify ObjectMeta
type: object
diff --git a/deploy/operatorhub/0.24.1/clickhouse-operator.v0.24.1.clusterserviceversion.yaml b/deploy/operatorhub/0.24.1/clickhouse-operator.v0.24.1.clusterserviceversion.yaml
new file mode 100644
index 000000000..480e0eba3
--- /dev/null
+++ b/deploy/operatorhub/0.24.1/clickhouse-operator.v0.24.1.clusterserviceversion.yaml
@@ -0,0 +1,1636 @@
+apiVersion: operators.coreos.com/v1alpha1
+kind: ClusterServiceVersion
+metadata:
+ name: clickhouse-operator.v0.24.1
+ namespace: placeholder
+ annotations:
+ capabilities: Full Lifecycle
+ categories: Database
+ containerImage: docker.io/altinity/clickhouse-operator:0.24.1
+ createdAt: '2024-12-02T12:39:09Z'
+ support: Altinity Ltd. https://altinity.com
+ description: ClickHouse Operator manages full lifecycle of ClickHouse clusters.
+ repository: https://github.com/altinity/clickhouse-operator
+ certified: 'false'
+ alm-examples: |
+ [
+ {
+ "apiVersion": "clickhouse.altinity.com/v1",
+ "kind": "ClickHouseInstallation",
+ "metadata": {
+ "name": "simple-01"
+ },
+ "spec": {
+ "configuration": {
+ "users": {
+ "test_user/password_sha256_hex": "10a6e6cc8311a3e2bcc09bf6c199adecd5dd59408c343e926b129c4914f3cb01",
+ "test_user/password": "test_password",
+ "test_user/networks/ip": [
+ "0.0.0.0/0"
+ ]
+ },
+ "clusters": [
+ {
+ "name": "simple"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "apiVersion": "clickhouse.altinity.com/v1",
+ "kind": "ClickHouseInstallation",
+ "metadata": {
+ "name": "use-templates-all",
+ "labels": {
+ "target-chi-label-manual": "target-chi-label-manual-value",
+ "target-chi-label-auto": "target-chi-label-auto-value"
+ }
+ },
+ "spec": {
+ "useTemplates": [
+ {
+ "name": "chit-01"
+ },
+ {
+ "name": "chit-02"
+ }
+ ],
+ "configuration": {
+ "clusters": [
+ {
+ "name": "c1"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "apiVersion": "clickhouse.altinity.com/v1",
+ "kind": "ClickHouseOperatorConfiguration",
+ "metadata": {
+ "name": "chop-config-01"
+ },
+ "spec": {
+ "watch": {
+ "namespaces": []
+ },
+ "clickhouse": {
+ "configuration": {
+ "file": {
+ "path": {
+ "common": "config.d",
+ "host": "conf.d",
+ "user": "users.d"
+ }
+ },
+ "user": {
+ "default": {
+ "profile": "default",
+ "quota": "default",
+ "networksIP": [
+ "::1",
+ "127.0.0.1"
+ ],
+ "password": "default"
+ }
+ },
+ "network": {
+ "hostRegexpTemplate": "(chi-{chi}-[^.]+\\d+-\\d+|clickhouse\\-{chi})\\.{namespace}\\.svc\\.cluster\\.local$"
+ }
+ },
+ "access": {
+ "username": "clickhouse_operator",
+ "password": "clickhouse_operator_password",
+ "secret": {
+ "namespace": "",
+ "name": ""
+ },
+ "port": 8123
+ }
+ },
+ "template": {
+ "chi": {
+ "path": "templates.d"
+ }
+ },
+ "reconcile": {
+ "runtime": {
+ "reconcileCHIsThreadsNumber": 10,
+ "reconcileShardsThreadsNumber": 1,
+ "reconcileShardsMaxConcurrencyPercent": 50
+ },
+ "statefulSet": {
+ "create": {
+ "onFailure": "ignore"
+ },
+ "update": {
+ "timeout": 300,
+ "pollInterval": 5,
+ "onFailure": "rollback"
+ }
+ },
+ "host": {
+ "wait": {
+ "exclude": "true",
+ "include": "false"
+ }
+ }
+ },
+ "annotation": {
+ "include": [],
+ "exclude": []
+ },
+ "label": {
+ "include": [],
+ "exclude": [],
+ "appendScope": "no"
+ },
+ "statefulSet": {
+ "revisionHistoryLimit": 0
+ },
+ "pod": {
+ "terminationGracePeriod": 30
+ },
+ "logger": {
+ "logtostderr": "true",
+ "alsologtostderr": "false",
+ "v": "1",
+ "stderrthreshold": "",
+ "vmodule": "",
+ "log_backtrace_at": ""
+ }
+ }
+ }
+ ]
+spec:
+ version: 0.24.1
+ minKubeVersion: 1.12.6
+ maturity: alpha
+ replaces: clickhouse-operator.v0.24.0
+ maintainers:
+ - email: support@altinity.com
+ name: Altinity
+ provider:
+ name: Altinity
+ displayName: Altinity Operator for ClickHouse
+ keywords:
+ - "clickhouse"
+ - "database"
+ - "oltp"
+ - "timeseries"
+ - "time series"
+ - "altinity"
+ customresourcedefinitions:
+ owned:
+ - description: ClickHouse Installation - set of ClickHouse Clusters
+ displayName: ClickHouseInstallation
+ group: clickhouse.altinity.com
+ kind: ClickHouseInstallation
+ name: clickhouseinstallations.clickhouse.altinity.com
+ version: v1
+ resources:
+ - kind: Service
+ name: ''
+ version: v1
+ - kind: Endpoint
+ name: ''
+ version: v1
+ - kind: Pod
+ name: ''
+ version: v1
+ - kind: StatefulSet
+ name: ''
+ version: v1
+ - kind: ConfigMap
+ name: ''
+ version: v1
+ - kind: Event
+ name: ''
+ version: v1
+ - kind: PersistentVolumeClaim
+ name: ''
+ version: v1
+ - description: ClickHouse Installation Template - template for ClickHouse Installation
+ displayName: ClickHouseInstallationTemplate
+ group: clickhouse.altinity.com
+ kind: ClickHouseInstallationTemplate
+ name: clickhouseinstallationtemplates.clickhouse.altinity.com
+ version: v1
+ resources:
+ - kind: Service
+ name: ''
+ version: v1
+ - kind: Endpoint
+ name: ''
+ version: v1
+ - kind: Pod
+ name: ''
+ version: v1
+ - kind: StatefulSet
+ name: ''
+ version: v1
+ - kind: ConfigMap
+ name: ''
+ version: v1
+ - kind: Event
+ name: ''
+ version: v1
+ - kind: PersistentVolumeClaim
+ name: ''
+ version: v1
+ - description: ClickHouse Operator Configuration - configuration of ClickHouse operator
+ displayName: ClickHouseOperatorConfiguration
+ group: clickhouse.altinity.com
+ kind: ClickHouseOperatorConfiguration
+ name: clickhouseoperatorconfigurations.clickhouse.altinity.com
+ version: v1
+ resources:
+ - kind: Service
+ name: ''
+ version: v1
+ - kind: Endpoint
+ name: ''
+ version: v1
+ - kind: Pod
+ name: ''
+ version: v1
+ - kind: StatefulSet
+ name: ''
+ version: v1
+ - kind: ConfigMap
+ name: ''
+ version: v1
+ - kind: Event
+ name: ''
+ version: v1
+ - kind: PersistentVolumeClaim
+ name: ''
+ version: v1
+ - description: ClickHouse Keeper Installation - ClickHouse Keeper cluster instance
+ displayName: ClickHouseKeeperInstallation
+ group: clickhouse-keeper.altinity.com
+ kind: ClickHouseKeeperInstallation
+ name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
+ version: v1
+ resources:
+ - kind: Service
+ name: ''
+ version: v1
+ - kind: Endpoint
+ name: ''
+ version: v1
+ - kind: Pod
+ name: ''
+ version: v1
+ - kind: StatefulSet
+ name: ''
+ version: v1
+ - kind: ConfigMap
+ name: ''
+ version: v1
+ - kind: Event
+ name: ''
+ version: v1
+ - kind: PersistentVolumeClaim
+ name: ''
+ version: v1
+ description: |-
+ ## ClickHouse
+ [ClickHouse](https://clickhouse.yandex) is an open source column-oriented database management system capable of real time generation of analytical data reports.
+ Check [ClickHouse documentation](https://clickhouse.yandex/docs/en) for more complete details.
+ ## The Altinity Operator for ClickHouse
+ The [Altinity Operator for ClickHouse](https://github.com/altinity/clickhouse-operator) automates the creation, alteration, or deletion of nodes in your ClickHouse cluster environment.
+ Check [operator documentation](https://github.com/Altinity/clickhouse-operator/tree/master/docs) for complete details and examples.
+ links:
+ - name: Altinity
+ url: https://altinity.com/
+ - name: Operator homepage
+ url: https://www.altinity.com/kubernetes-operator
+ - name: Github
+ url: https://github.com/altinity/clickhouse-operator
+ - name: Documentation
+ url: https://github.com/Altinity/clickhouse-operator/tree/master/docs
+ icon:
+ - mediatype: image/png
+ base64data: |-
+ iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAQABJREFUeAHs
+ vQmgZ2lVH3j/r6p676abpSNLE2TrRlwSQBoVtVFHiUGFLKOEKCQTTUzGmTExhmhiSJBoTMZEs2KQ
+ BsWNREWdyCTOGOMEQZbI0i0NyCaIxAB203tXvfef33LO+c697/+qqqu3V1Xvvq773fOd3/md5Tvf
+ 9+57/erVajq4DiqwoQLnvf4PH3Pe4ekx29P0oNVqfTEgl6xWE8eLV6uVxgnjCjLHab0TI+ZW00PW
+ 6zWgq0+up/XNkG+edjiubt6Zppu31tOnd1brm7fwvL1e3by1Bf165+b1+vDN02r7Jhh+6MZnXfYh
+ jAfXQQVmFUC/HVxnbQV+aX3Bg875xJOOracrD21NV00705U4XK6aVtMTVqut81WX6BAcNpOOIIye
+ x4iJFMfDhmry8CIwRh5mZBHfppH61XT7znp672pavQeH3g07W1s3rLbX77npQQ+6YXra6rYNXg6m
+ zoIKRPedBZmerSmu16vzfvnGRx9a3XXlar2+CscEDqXVVTgSrtzaWj2SZRmHURRJh0uf9/EycNE2
+ cVpxPg+jLLMOJczPRiiPd0j1Q634eMgtr/X693CIvWe9OnQD+G/goXbXzs4Nt3/FZR8BxwaDJcGB
+ fLpW4ODAOl1Xbq+4cUBd+Mv/4/Om9bFrcF5cs1qvvgSvM5fpMIDN8tCxzDcaHjoCiFkyn+psur/f
+ sOaHneLfdHgxRs7zcNxZfwrjryOPX5u2pl+78VmXvgsyvgo9uM6UChwcWKf7Sq7XWxf+8u997s72
+ 1jWHpvU169X6S/Dl3GVKi4cQrjp8JO11aGnPGxGHlw+ztPeh5jOtTjHhfdj50AgX8zcrHib8Mg9K
+ 2W8a49DJw2c2Jmkf85Aib/Ln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bDRFyB
+ HebW6E4Tgft+dPn568fxa266fd1sdj3elOCfKPOjo1x8uzY+YfnbRASyFCv0c/HCb0l4ZDad3Y8P
+ Th2c7971b4ffceFTTdzHwY6LwFiwdtyRbO3Q+fc9+dru+ORd+Dfa9uE22q91fq1pWe3Kb/c4wfn2
+ mEsxS09q0nPbTtTiFotiwx9PLk7R/JkS+NIfXDdFoxST0B+SztkIx700O92T3by7fzJbOXhsNv/m
+ kesve7LhHAc7PgJtJu94d0cHhyKw51+fvGblJJ68Jp0Vr+uBubwUmygPC8VJRy+cipFXO5qweXVc
+ WNFBt85jHRMBqx3hm9deETqV4kW/oBeS/MYz1Hr88Xavm89/BP2D80l3cNKt3P/sb+x9bEh9nFue
+ CHhWLo/Do6dbRAB/Uvyqb/z4WvwPItdPZngCm3TvxCftL81aLAKYMGmtjjlUFWIxykVq5z9hwfGn
+ 8Ynzb+Fzbvcfn3YHD++77Hu+o1GcJREYC9ZZcpAbbgMF7Px7/+/nVqbHr5lMZ9fgf8y+Bk8g7OPh
+ 60345P0q/8ddK156hCJVFDM+oGGmFjVPGce/0k9YcPEE/Hwcny44hBJ6CNs7BPcOrc92HzryzvN/
+ CEc3eAzbMELjwhJFYCxYS3RY2+4qfvXzRcefeuNkPkUBQyHDNxLiGpSna3DrX4Nixtuv4vXKPWF1
+ MDvt5j/sJrNDkIcwftgK1ImTq4eeX7nwsfFfktn2TFgawrFgLc1RvcKOfqfbdeHzz188Pd5dMpkd
+ 3zudrO6dTE/unUxWICeXwJu9+EN/jPGNMYqa+jEnd9cg1vBEt4aiszaxD2HOpmvzebcG3TX8Mru1
+ ldnkGfwt3RrK4Rp41ubT2drhC161NvmV6XFRjK9jBGoE/h//xb5CiJqhJQAAAABJRU5ErkJggg==
+ installModes:
+ - supported: true
+ type: OwnNamespace
+ - supported: false
+ type: SingleNamespace
+ - supported: false
+ type: MultiNamespace
+ - supported: false
+ type: AllNamespaces
+ install:
+ strategy: deployment
+ spec:
+ deployments:
+ - name: clickhouse-operator
+ spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: clickhouse-operator
+ template:
+ metadata:
+ labels:
+ app: clickhouse-operator
+ spec:
+ containers:
+ - env:
+ - name: OPERATOR_POD_NODE_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: spec.nodeName
+ - name: OPERATOR_POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: OPERATOR_POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: OPERATOR_POD_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ - name: OPERATOR_POD_SERVICE_ACCOUNT
+ valueFrom:
+ fieldRef:
+ fieldPath: spec.serviceAccountName
+ - name: OPERATOR_CONTAINER_CPU_REQUEST
+ valueFrom:
+ resourceFieldRef:
+ containerName: clickhouse-operator
+ resource: requests.cpu
+ - name: OPERATOR_CONTAINER_CPU_LIMIT
+ valueFrom:
+ resourceFieldRef:
+ containerName: clickhouse-operator
+ resource: limits.cpu
+ - name: OPERATOR_CONTAINER_MEM_REQUEST
+ valueFrom:
+ resourceFieldRef:
+ containerName: clickhouse-operator
+ resource: requests.memory
+ - name: OPERATOR_CONTAINER_MEM_LIMIT
+ valueFrom:
+ resourceFieldRef:
+ containerName: clickhouse-operator
+ resource: limits.memory
+ - name: WATCH_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ image: docker.io/altinity/clickhouse-operator:0.24.1
+ imagePullPolicy: Always
+ name: clickhouse-operator
+ - image: docker.io/altinity/metrics-exporter:0.24.1
+ imagePullPolicy: Always
+ name: metrics-exporter
+ serviceAccountName: clickhouse-operator
+ permissions:
+ - serviceAccountName: clickhouse-operator
+ rules:
+ #
+ # Core API group
+ #
+ - apiGroups:
+ - ""
+ resources:
+ - configmaps
+ - services
+ - persistentvolumeclaims
+ - secrets
+ verbs:
+ - get
+ - list
+ - patch
+ - update
+ - watch
+ - create
+ - delete
+ - apiGroups:
+ - ""
+ resources:
+ - endpoints
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - ""
+ resources:
+ - events
+ verbs:
+ - create
+ - apiGroups:
+ - ""
+ resources:
+ - persistentvolumes
+ verbs:
+ - get
+ - list
+ - patch
+ - update
+ - watch
+ - apiGroups:
+ - ""
+ resources:
+ - pods
+ verbs:
+ - get
+ - list
+ - patch
+ - update
+ - watch
+ - delete
+ - apiGroups:
+ - ""
+ resources:
+ - secrets
+ verbs:
+ - get
+ - list
+ #
+ # apps.* resources
+ #
+ - apiGroups:
+ - apps
+ resources:
+ - statefulsets
+ verbs:
+ - get
+ - list
+ - patch
+ - update
+ - watch
+ - create
+ - delete
+ - apiGroups:
+ - apps
+ resources:
+ - replicasets
+ verbs:
+ - get
+ - patch
+ - update
+ - delete
+ # The operator deployment personally, identified by name
+ - apiGroups:
+ - apps
+ resources:
+ - deployments
+ resourceNames:
+ - clickhouse-operator
+ verbs:
+ - get
+ - patch
+ - update
+ - delete
+ #
+ # policy.* resources
+ #
+ - apiGroups:
+ - policy
+ resources:
+ - poddisruptionbudgets
+ verbs:
+ - get
+ - list
+ - patch
+ - update
+ - watch
+ - create
+ - delete
+ #
+ # apiextensions
+ #
+ - apiGroups:
+ - apiextensions.k8s.io
+ resources:
+ - customresourcedefinitions
+ verbs:
+ - get
+ - list
+ # clickhouse - related resources
+ - apiGroups:
+ - clickhouse.altinity.com
+ #
+ # The operator's specific Custom Resources
+ #
+
+ resources:
+ - clickhouseinstallations
+ verbs:
+ - get
+ - list
+ - watch
+ - patch
+ - update
+ - delete
+ - apiGroups:
+ - clickhouse.altinity.com
+ resources:
+ - clickhouseinstallationtemplates
+ - clickhouseoperatorconfigurations
+ verbs:
+ - get
+ - list
+ - watch
+ - apiGroups:
+ - clickhouse.altinity.com
+ resources:
+ - clickhouseinstallations/finalizers
+ - clickhouseinstallationtemplates/finalizers
+ - clickhouseoperatorconfigurations/finalizers
+ verbs:
+ - update
+ - apiGroups:
+ - clickhouse.altinity.com
+ resources:
+ - clickhouseinstallations/status
+ - clickhouseinstallationtemplates/status
+ - clickhouseoperatorconfigurations/status
+ verbs:
+ - get
+ - update
+ - patch
+ - create
+ - delete
+ # clickhouse-keeper - related resources
+ - apiGroups:
+ - clickhouse-keeper.altinity.com
+ resources:
+ - clickhousekeeperinstallations
+ verbs:
+ - get
+ - list
+ - watch
+ - patch
+ - update
+ - delete
+ - apiGroups:
+ - clickhouse-keeper.altinity.com
+ resources:
+ - clickhousekeeperinstallations/finalizers
+ verbs:
+ - update
+ - apiGroups:
+ - clickhouse-keeper.altinity.com
+ resources:
+ - clickhousekeeperinstallations/status
+ verbs:
+ - get
+ - update
+ - patch
+ - create
+ - delete
diff --git a/deploy/operatorhub/0.24.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.24.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
new file mode 100644
index 000000000..5abf359fa
--- /dev/null
+++ b/deploy/operatorhub/0.24.1/clickhouseinstallations.clickhouse.altinity.com.crd.yaml
@@ -0,0 +1,1274 @@
+# Template Parameters:
+#
+# KIND=ClickHouseInstallation
+# SINGULAR=clickhouseinstallation
+# PLURAL=clickhouseinstallations
+# SHORT=chi
+# OPERATOR_VERSION=0.24.1
+#
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ name: clickhouseinstallations.clickhouse.altinity.com
+ labels:
+ clickhouse.altinity.com/chop: 0.24.1
+spec:
+ group: clickhouse.altinity.com
+ scope: Namespaced
+ names:
+ kind: ClickHouseInstallation
+ singular: clickhouseinstallation
+ plural: clickhouseinstallations
+ shortNames:
+ - chi
+ versions:
+ - name: v1
+ served: true
+ storage: true
+ additionalPrinterColumns:
+ - name: version
+ type: string
+ description: Operator version
+ priority: 1 # show in wide view
+ jsonPath: .status.chop-version
+ - name: clusters
+ type: integer
+ description: Clusters count
+ jsonPath: .status.clusters
+ - name: shards
+ type: integer
+ description: Shards count
+ priority: 1 # show in wide view
+ jsonPath: .status.shards
+ - name: hosts
+ type: integer
+ description: Hosts count
+ jsonPath: .status.hosts
+ - name: taskID
+ type: string
+ description: TaskID
+ priority: 1 # show in wide view
+ jsonPath: .status.taskID
+ - name: status
+ type: string
+ description: Resource status
+ jsonPath: .status.status
+ - name: hosts-unchanged
+ type: integer
+ description: Unchanged hosts count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsUnchanged
+ - name: hosts-updated
+ type: integer
+ description: Updated hosts count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsUpdated
+ - name: hosts-added
+ type: integer
+ description: Added hosts count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsAdded
+ - name: hosts-completed
+ type: integer
+ description: Completed hosts count
+ jsonPath: .status.hostsCompleted
+ - name: hosts-deleted
+ type: integer
+ description: Hosts deleted count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsDeleted
+ - name: hosts-delete
+ type: integer
+ description: Hosts to be deleted count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsDelete
+ - name: endpoint
+ type: string
+ description: Client access endpoint
+ priority: 1 # show in wide view
+ jsonPath: .status.endpoint
+ - name: age
+ type: date
+ description: Age of the resource
+ # Displayed in all priorities
+ jsonPath: .metadata.creationTimestamp
+ subresources:
+ status: {}
+ schema:
+ openAPIV3Schema:
+ description: "define a set of Kubernetes resources (StatefulSet, PVC, Service, ConfigMap) which describe behavior one or more clusters"
+ type: object
+ required:
+ - spec
+ properties:
+ apiVersion:
+ description: |
+ APIVersion defines the versioned schema of this representation
+ of an object. Servers should convert recognized schemas to the latest
+ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |
+ Kind is a string value representing the REST resource this
+ object represents. Servers may infer this from the endpoint the client
+ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ status:
+ type: object
+ description: |
+ Status contains many fields like a normalized configuration, clickhouse-operator version, current action and all applied action list, current taskID and all applied taskIDs and other
+ properties:
+ chop-version:
+ type: string
+ description: "Operator version"
+ chop-commit:
+ type: string
+ description: "Operator git commit SHA"
+ chop-date:
+ type: string
+ description: "Operator build date"
+ chop-ip:
+ type: string
+ description: "IP address of the operator's pod which managed this resource"
+ clusters:
+ type: integer
+ minimum: 0
+ description: "Clusters count"
+ shards:
+ type: integer
+ minimum: 0
+ description: "Shards count"
+ replicas:
+ type: integer
+ minimum: 0
+ description: "Replicas count"
+ hosts:
+ type: integer
+ minimum: 0
+ description: "Hosts count"
+ status:
+ type: string
+ description: "Status"
+ taskID:
+ type: string
+ description: "Current task id"
+ taskIDsStarted:
+ type: array
+ description: "Started task ids"
+ nullable: true
+ items:
+ type: string
+ taskIDsCompleted:
+ type: array
+ description: "Completed task ids"
+ nullable: true
+ items:
+ type: string
+ action:
+ type: string
+ description: "Action"
+ actions:
+ type: array
+ description: "Actions"
+ nullable: true
+ items:
+ type: string
+ error:
+ type: string
+ description: "Last error"
+ errors:
+ type: array
+ description: "Errors"
+ nullable: true
+ items:
+ type: string
+ hostsUnchanged:
+ type: integer
+ minimum: 0
+ description: "Unchanged Hosts count"
+ hostsUpdated:
+ type: integer
+ minimum: 0
+ description: "Updated Hosts count"
+ hostsAdded:
+ type: integer
+ minimum: 0
+ description: "Added Hosts count"
+ hostsCompleted:
+ type: integer
+ minimum: 0
+ description: "Completed Hosts count"
+ hostsDeleted:
+ type: integer
+ minimum: 0
+ description: "Deleted Hosts count"
+ hostsDelete:
+ type: integer
+ minimum: 0
+ description: "About to delete Hosts count"
+ pods:
+ type: array
+ description: "Pods"
+ nullable: true
+ items:
+ type: string
+ pod-ips:
+ type: array
+ description: "Pod IPs"
+ nullable: true
+ items:
+ type: string
+ fqdns:
+ type: array
+ description: "Pods FQDNs"
+ nullable: true
+ items:
+ type: string
+ endpoint:
+ type: string
+ description: "Endpoint"
+ generation:
+ type: integer
+ minimum: 0
+ description: "Generation"
+ normalized:
+ type: object
+ description: "Normalized resource requested"
+ x-kubernetes-preserve-unknown-fields: true
+ normalizedCompleted:
+ type: object
+ description: "Normalized resource completed"
+ x-kubernetes-preserve-unknown-fields: true
+ hostsWithTablesCreated:
+ type: array
+ description: "List of hosts with tables created by the operator"
+ nullable: true
+ items:
+ type: string
+ usedTemplates:
+ type: array
+ description: "List of templates used to build this CHI"
+ nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ items:
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ type: object
+ # x-kubernetes-preserve-unknown-fields: true
+ description: |
+ Specification of the desired behavior of one or more ClickHouse clusters
+ More info: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md
+ properties:
+ taskID:
+ type: string
+ description: |
+ Allows to define custom taskID for CHI update and watch status of this update execution.
+ Displayed in all .status.taskID* fields.
+ By default (if not filled) every update of CHI manifest will generate random taskID
+ stop: &TypeStringBool
+ type: string
+ description: |
+ Allows to stop all ClickHouse clusters defined in a CHI.
+ Works as the following:
+ - When `stop` is `1` operator sets `Replicas: 0` in each StatefulSet. Thie leads to having all `Pods` and `Service` deleted. All PVCs are kept intact.
+ - When `stop` is `0` operator sets `Replicas: 1` and `Pod`s and `Service`s will created again and all retained PVCs will be attached to `Pod`s.
+ enum:
+ # List StringBoolXXX constants from model
+ - ""
+ - "0"
+ - "1"
+ - "False"
+ - "false"
+ - "True"
+ - "true"
+ - "No"
+ - "no"
+ - "Yes"
+ - "yes"
+ - "Off"
+ - "off"
+ - "On"
+ - "on"
+ - "Disable"
+ - "disable"
+ - "Enable"
+ - "enable"
+ - "Disabled"
+ - "disabled"
+ - "Enabled"
+ - "enabled"
+ restart:
+ type: string
+ description: |
+ In case 'RollingUpdate' specified, the operator will always restart ClickHouse pods during reconcile.
+ This options is used in rare cases when force restart is required and is typically removed after the use in order to avoid unneeded restarts.
+ enum:
+ - ""
+ - "RollingUpdate"
+ troubleshoot:
+ !!merge <<: *TypeStringBool
+ description: |
+ Allows to troubleshoot Pods during CrashLoopBack state.
+ This may happen when wrong configuration applied, in this case `clickhouse-server` wouldn't start.
+ Command within ClickHouse container is modified with `sleep` in order to avoid quick restarts
+ and give time to troubleshoot via CLI.
+ Liveness and Readiness probes are disabled as well.
+ namespaceDomainPattern:
+ type: string
+ description: |
+ Custom domain pattern which will be used for DNS names of `Service` or `Pod`.
+ Typical use scenario - custom cluster domain in Kubernetes cluster
+ Example: %s.svc.my.test
+ templating:
+ type: object
+ # nullable: true
+ description: |
+ Optional, applicable inside ClickHouseInstallationTemplate only.
+ Defines current ClickHouseInstallationTemplate application options to target ClickHouseInstallation(s)."
+ properties:
+ policy:
+ type: string
+ description: |
+ When defined as `auto` inside ClickhouseInstallationTemplate, this ClickhouseInstallationTemplate
+ will be auto-added into ClickHouseInstallation, selectable by `chiSelector`.
+ Default value is `manual`, meaning ClickHouseInstallation should request this ClickhouseInstallationTemplate explicitly.
+ enum:
+ - ""
+ - "auto"
+ - "manual"
+ chiSelector:
+ type: object
+ description: "Optional, defines selector for ClickHouseInstallation(s) to be templated with ClickhouseInstallationTemplate"
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ reconciling:
+ type: object
+ description: "Optional, allows tuning reconciling cycle for ClickhouseInstallation from clickhouse-operator side"
+ # nullable: true
+ properties:
+ policy:
+ type: string
+ description: |
+ DISCUSSED TO BE DEPRECATED
+ Syntax sugar
+ Overrides all three 'reconcile.host.wait.{exclude, queries, include}' values from the operator's config
+ Possible values:
+ - wait - should wait to exclude host, complete queries and include host back into the cluster
+ - nowait - should NOT wait to exclude host, complete queries and include host back into the cluster
+ enum:
+ - ""
+ - "wait"
+ - "nowait"
+ configMapPropagationTimeout:
+ type: integer
+ description: |
+ Timeout in seconds for `clickhouse-operator` to wait for modified `ConfigMap` to propagate into the `Pod`
+ More details: https://kubernetes.io/docs/concepts/configuration/configmap/#mounted-configmaps-are-updated-automatically
+ minimum: 0
+ maximum: 3600
+ cleanup:
+ type: object
+ description: "Optional, defines behavior for cleanup Kubernetes resources during reconcile cycle"
+ # nullable: true
+ properties:
+ unknownObjects:
+ type: object
+ description: |
+ Describes what clickhouse-operator should do with found Kubernetes resources which should be managed by clickhouse-operator,
+ but do not have `ownerReference` to any currently managed `ClickHouseInstallation` resource.
+ Default behavior is `Delete`"
+ # nullable: true
+ properties:
+ statefulSet: &TypeObjectsCleanup
+ type: string
+ description: "Behavior policy for unknown StatefulSet, `Delete` by default"
+ enum:
+ # List ObjectsCleanupXXX constants from model
+ - ""
+ - "Retain"
+ - "Delete"
+ pvc:
+ type: string
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for unknown PVC, `Delete` by default"
+ configMap:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for unknown ConfigMap, `Delete` by default"
+ service:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for unknown Service, `Delete` by default"
+ reconcileFailedObjects:
+ type: object
+ description: |
+ Describes what clickhouse-operator should do with Kubernetes resources which are failed during reconcile.
+ Default behavior is `Retain`"
+ # nullable: true
+ properties:
+ statefulSet:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed StatefulSet, `Retain` by default"
+ pvc:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed PVC, `Retain` by default"
+ configMap:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed ConfigMap, `Retain` by default"
+ service:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed Service, `Retain` by default"
+ defaults:
+ type: object
+ description: |
+ define default behavior for whole ClickHouseInstallation, some behavior can be re-define on cluster, shard and replica level
+ More info: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specdefaults
+ # nullable: true
+ properties:
+ replicasUseFQDN:
+ !!merge <<: *TypeStringBool
+ description: |
+ define should replicas be specified by FQDN in ``.
+ In case of "no" will use short hostname and clickhouse-server will use kubernetes default suffixes for DNS lookup
+ "yes" by default
+ distributedDDL:
+ type: object
+ description: |
+ allows change `` settings
+ More info: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server-settings-distributed_ddl
+ # nullable: true
+ properties:
+ profile:
+ type: string
+ description: "Settings from this profile will be used to execute DDL queries"
+ storageManagement:
+ type: object
+ description: default storage management options
+ properties:
+ provisioner: &TypePVCProvisioner
+ type: string
+ description: "defines `PVC` provisioner - be it StatefulSet or the Operator"
+ enum:
+ - ""
+ - "StatefulSet"
+ - "Operator"
+ reclaimPolicy: &TypePVCReclaimPolicy
+ type: string
+ description: |
+ defines behavior of `PVC` deletion.
+ `Delete` by default, if `Retain` specified then `PVC` will be kept when deleting StatefulSet
+ enum:
+ - ""
+ - "Retain"
+ - "Delete"
+ templates: &TypeTemplateNames
+ type: object
+ description: "optional, configuration of the templates names which will use for generate Kubernetes resources according to one or more ClickHouse clusters described in current ClickHouseInstallation (chi) resource"
+ # nullable: true
+ properties:
+ hostTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.hostTemplates, which will apply to configure every `clickhouse-server` instance during render ConfigMap resources which will mount into `Pod`"
+ podTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.podTemplates, allows customization each `Pod` resource during render and reconcile each StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ dataVolumeClaimTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse data directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ logVolumeClaimTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse log directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ serviceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for one `Service` resource which will created by `clickhouse-operator` which cover all clusters in whole `chi` resource"
+ clusterServiceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each clickhouse cluster described in `chi.spec.configuration.clusters`"
+ shardServiceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each shard inside clickhouse cluster described in `chi.spec.configuration.clusters`"
+ replicaServiceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each replica inside each shard inside each clickhouse cluster described in `chi.spec.configuration.clusters`"
+ volumeClaimTemplate:
+ type: string
+ description: "optional, alias for dataVolumeClaimTemplate, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse data directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ configuration:
+ type: object
+ description: "allows configure multiple aspects and behavior for `clickhouse-server` instance and also allows describe multiple `clickhouse-server` clusters inside one `chi` resource"
+ # nullable: true
+ properties:
+ zookeeper: &TypeZookeeperConfig
+ type: object
+ description: |
+ allows configure .. section in each `Pod` during generate `ConfigMap` which will mounted in `/etc/clickhouse-server/config.d/`
+ `clickhouse-operator` itself doesn't manage Zookeeper, please install Zookeeper separatelly look examples on https://github.com/Altinity/clickhouse-operator/tree/master/deploy/zookeeper/
+ currently, zookeeper (or clickhouse-keeper replacement) used for *ReplicatedMergeTree table engines and for `distributed_ddl`
+ More details: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server-settings_zookeeper
+ # nullable: true
+ properties:
+ nodes:
+ type: array
+ description: "describe every available zookeeper cluster node for interaction"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - host
+ properties:
+ host:
+ type: string
+ description: "dns name or ip address for Zookeeper node"
+ port:
+ type: integer
+ description: "TCP port which used to connect to Zookeeper node"
+ minimum: 0
+ maximum: 65535
+ secure:
+ !!merge <<: *TypeStringBool
+ description: "if a secure connection to Zookeeper is required"
+ session_timeout_ms:
+ type: integer
+ description: "session timeout during connect to Zookeeper"
+ operation_timeout_ms:
+ type: integer
+ description: "one operation timeout during Zookeeper transactions"
+ root:
+ type: string
+ description: "optional root znode path inside zookeeper to store ClickHouse related data (replication queue or distributed DDL)"
+ identity:
+ type: string
+ description: "optional access credentials string with `user:password` format used when use digest authorization in Zookeeper"
+ users:
+ type: object
+ description: |
+ allows configure .. section in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/users.d/`
+ you can configure password hashed, authorization restrictions, database level security row filters etc.
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings-users/
+ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationusers
+
+ any key could contains `valueFrom` with `secretKeyRef` which allow pass password from kubernetes secrets
+ secret value will pass in `pod.spec.containers.evn`, and generate with from_env=XXX in XML in /etc/clickhouse-server/users.d/chop-generated-users.xml
+ it not allow automatically updates when updates `secret`, change spec.taskID for manually trigger reconcile cycle
+
+ look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples
+
+ any key with prefix `k8s_secret_` shall has value with format namespace/secret/key or secret/key
+ in this case value from secret will write directly into XML tag during render *-usersd ConfigMap
+
+ any key with prefix `k8s_secret_env` shall has value with format namespace/secret/key or secret/key
+ in this case value from secret will write into environment variable and write to XML tag via from_env=XXX
+
+ look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ profiles:
+ type: object
+ description: |
+ allows configure .. section in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/users.d/`
+ you can configure any aspect of settings profile
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings-profiles/
+ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationprofiles
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ quotas:
+ type: object
+ description: |
+ allows configure .. section in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/users.d/`
+ you can configure any aspect of resource quotas
+ More details: https://clickhouse.tech/docs/en/operations/quotas/
+ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationquotas
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ settings: &TypeSettings
+ type: object
+ description: |
+ allows configure `clickhouse-server` settings inside ... tag in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationsettings
+
+ any key could contains `valueFrom` with `secretKeyRef` which allow pass password from kubernetes secrets
+ look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples
+
+ secret value will pass in `pod.spec.evn`, and generate with from_env=XXX in XML in /etc/clickhouse-server/config.d/chop-generated-settings.xml
+ it not allow automatically updates when updates `secret`, change spec.taskID for manually trigger reconcile cycle
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ files: &TypeFiles
+ type: object
+ description: |
+ allows define content of any setting file inside each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ every key in this object is the file name
+ every value in this object is the file content
+ you can use `!!binary |` and base64 for binary files, see details here https://yaml.org/type/binary.html
+ each key could contains prefix like USERS, COMMON, HOST or config.d, users.d, cond.d, wrong prefixes will ignored, subfolders also will ignored
+ More details: https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-05-files-nested.yaml
+
+ any key could contains `valueFrom` with `secretKeyRef` which allow pass values from kubernetes secrets
+ secrets will mounted into pod as separate volume in /etc/clickhouse-server/secrets.d/
+ and will automatically update when update secret
+ it useful for pass SSL certificates from cert-manager or similar tool
+ look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ clusters:
+ type: array
+ description: |
+ describes clusters layout and allows change settings on cluster-level, shard-level and replica-level
+ every cluster is a set of StatefulSet, one StatefulSet contains only one Pod with `clickhouse-server`
+ all Pods will rendered in part of ClickHouse configs, mounted from ConfigMap as `/etc/clickhouse-server/config.d/chop-generated-remote_servers.xml`
+ Clusters will use for Distributed table engine, more details: https://clickhouse.tech/docs/en/engines/table-engines/special/distributed/
+ If `cluster` contains zookeeper settings (could be inherited from top `chi` level), when you can create *ReplicatedMergeTree tables
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ type: string
+ description: "cluster name, used to identify set of servers and wide used during generate names of related Kubernetes resources"
+ minLength: 1
+ # See namePartClusterMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ zookeeper:
+ !!merge <<: *TypeZookeeperConfig
+ description: |
+ optional, allows configure .. section in each `Pod` only in current ClickHouse cluster, during generate `ConfigMap` which will mounted in `/etc/clickhouse-server/config.d/`
+ override top-level `chi.spec.configuration.zookeeper` settings
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in each `Pod` only in one cluster during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/`
+ override top-level `chi.spec.configuration.settings`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` on current cluster during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files`
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected cluster
+ override top-level `chi.spec.configuration.templates`
+ schemaPolicy:
+ type: object
+ description: |
+ describes how schema is propagated within replicas and shards
+ properties:
+ replica:
+ type: string
+ description: "how schema is propagated within a replica"
+ enum:
+ # List SchemaPolicyReplicaXXX constants from model
+ - ""
+ - "None"
+ - "All"
+ shard:
+ type: string
+ description: "how schema is propagated between shards"
+ enum:
+ # List SchemaPolicyShardXXX constants from model
+ - ""
+ - "None"
+ - "All"
+ - "DistributedTablesOnly"
+ insecure:
+ !!merge <<: *TypeStringBool
+ description: optional, open insecure ports for cluster, defaults to "yes"
+ secure:
+ !!merge <<: *TypeStringBool
+ description: optional, open secure ports for cluster
+ secret:
+ type: object
+ description: "optional, shared secret value to secure cluster communications"
+ properties:
+ auto:
+ !!merge <<: *TypeStringBool
+ description: "Auto-generate shared secret value to secure cluster communications"
+ value:
+ description: "Cluster shared secret value in plain text"
+ type: string
+ valueFrom:
+ description: "Cluster shared secret source"
+ type: object
+ properties:
+ secretKeyRef:
+ description: |
+ Selects a key of a secret in the clickhouse installation namespace.
+ Should not be used if value is not empty.
+ type: object
+ properties:
+ name:
+ description: |
+ Name of the referent. More info:
+ https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ type: string
+ key:
+ description: The key of the secret to select from. Must be a valid secret key.
+ type: string
+ optional:
+ description: Specify whether the Secret or its key must be defined
+ type: boolean
+ required:
+ - name
+ - key
+ pdbMaxUnavailable:
+ type: integer
+ description: |
+ Pod eviction is allowed if at most "pdbMaxUnavailable" pods are unavailable after the eviction,
+ i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions
+ by specifying 0. This is a mutually exclusive setting with "minAvailable".
+ minimum: 0
+ maximum: 65535
+ layout:
+ type: object
+ description: |
+ describe current cluster layout, how much shards in cluster, how much replica in shard
+ allows override settings on each shard and replica separatelly
+ # nullable: true
+ properties:
+ shardsCount:
+ type: integer
+ description: |
+ how much shards for current ClickHouse cluster will run in Kubernetes,
+ each shard contains shared-nothing part of data and contains set of replicas,
+ cluster contains 1 shard by default"
+ replicasCount:
+ type: integer
+ description: |
+ how much replicas in each shards for current cluster will run in Kubernetes,
+ each replica is a separate `StatefulSet` which contains only one `Pod` with `clickhouse-server` instance,
+ every shard contains 1 replica by default"
+ shards:
+ type: array
+ description: |
+ optional, allows override top-level `chi.spec.configuration`, cluster-level
+ `chi.spec.configuration.clusters` settings for each shard separately,
+ use it only if you fully understand what you do"
+ # nullable: true
+ items:
+ type: object
+ properties:
+ name:
+ type: string
+ description: "optional, by default shard name is generated, but you can override it and setup custom name"
+ minLength: 1
+ # See namePartShardMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ definitionType:
+ type: string
+ description: "DEPRECATED - to be removed soon"
+ weight:
+ type: integer
+ description: |
+ optional, 1 by default, allows setup shard setting which will use during insert into tables with `Distributed` engine,
+ will apply in inside ConfigMap which will mount in /etc/clickhouse-server/config.d/chop-generated-remote_servers.xml
+ More details: https://clickhouse.tech/docs/en/engines/table-engines/special/distributed/
+ internalReplication:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, `true` by default when `chi.spec.configuration.clusters[].layout.ReplicaCount` > 1 and 0 otherwise
+ allows setup setting which will use during insert into tables with `Distributed` engine for insert only in one live replica and other replicas will download inserted data during replication,
+ will apply in inside ConfigMap which will mount in /etc/clickhouse-server/config.d/chop-generated-remote_servers.xml
+ More details: https://clickhouse.tech/docs/en/engines/table-engines/special/distributed/
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in each `Pod` only in one shard during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/`
+ override top-level `chi.spec.configuration.settings` and cluster-level `chi.spec.configuration.clusters.settings`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` only in one shard during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files`
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected shard
+ override top-level `chi.spec.configuration.templates` and cluster-level `chi.spec.configuration.clusters.templates`
+ replicasCount:
+ type: integer
+ description: |
+ optional, how much replicas in selected shard for selected ClickHouse cluster will run in Kubernetes, each replica is a separate `StatefulSet` which contains only one `Pod` with `clickhouse-server` instance,
+ shard contains 1 replica by default
+ override cluster-level `chi.spec.configuration.clusters.layout.replicasCount`
+ minimum: 1
+ replicas:
+ type: array
+ description: |
+ optional, allows override behavior for selected replicas from cluster-level `chi.spec.configuration.clusters` and shard-level `chi.spec.configuration.clusters.layout.shards`
+ # nullable: true
+ items:
+ # Host
+ type: object
+ properties:
+ name:
+ type: string
+ description: "optional, by default replica name is generated, but you can override it and setup custom name"
+ minLength: 1
+ # See namePartReplicaMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ insecure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open insecure ports for cluster, defaults to "yes"
+ secure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open secure ports
+ tcpPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `tcp` for selected replica, override `chi.spec.templates.hostTemplates.spec.tcpPort`
+ allows connect to `clickhouse-server` via TCP Native protocol via kubernetes `Service`
+ minimum: 1
+ maximum: 65535
+ tlsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ httpPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `http` for selected replica, override `chi.spec.templates.hostTemplates.spec.httpPort`
+ allows connect to `clickhouse-server` via HTTP protocol via kubernetes `Service`
+ minimum: 1
+ maximum: 65535
+ httpsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ interserverHTTPPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `interserver` for selected replica, override `chi.spec.templates.hostTemplates.spec.interserverHTTPPort`
+ allows connect between replicas inside same shard during fetch replicated data parts HTTP protocol
+ minimum: 1
+ maximum: 65535
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and shard-level `chi.spec.configuration.clusters.layout.shards.settings`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files`, cluster-level `chi.spec.configuration.clusters.files` and shard-level `chi.spec.configuration.clusters.layout.shards.files`
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica
+ override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates` and shard-level `chi.spec.configuration.clusters.layout.shards.templates`
+ replicas:
+ type: array
+ description: "optional, allows override top-level `chi.spec.configuration` and cluster-level `chi.spec.configuration.clusters` configuration for each replica and each shard relates to selected replica, use it only if you fully understand what you do"
+ # nullable: true
+ items:
+ type: object
+ properties:
+ name:
+ type: string
+ description: "optional, by default replica name is generated, but you can override it and setup custom name"
+ minLength: 1
+ # See namePartShardMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and will ignore if shard-level `chi.spec.configuration.clusters.layout.shards` present
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files`, will ignore if `chi.spec.configuration.clusters.layout.shards` presents
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica
+ override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates`
+ shardsCount:
+ type: integer
+ description: "optional, count of shards related to current replica, you can override each shard behavior on low-level `chi.spec.configuration.clusters.layout.replicas.shards`"
+ minimum: 1
+ shards:
+ type: array
+ description: "optional, list of shards related to current replica, will ignore if `chi.spec.configuration.clusters.layout.shards` presents"
+ # nullable: true
+ items:
+ # Host
+ type: object
+ properties:
+ name:
+ type: string
+ description: "optional, by default shard name is generated, but you can override it and setup custom name"
+ minLength: 1
+ # See namePartReplicaMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ insecure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open insecure ports for cluster, defaults to "yes"
+ secure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open secure ports
+ tcpPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `tcp` for selected shard, override `chi.spec.templates.hostTemplates.spec.tcpPort`
+ allows connect to `clickhouse-server` via TCP Native protocol via kubernetes `Service`
+ minimum: 1
+ maximum: 65535
+ tlsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ httpPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `http` for selected shard, override `chi.spec.templates.hostTemplates.spec.httpPort`
+ allows connect to `clickhouse-server` via HTTP protocol via kubernetes `Service`
+ minimum: 1
+ maximum: 65535
+ httpsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ interserverHTTPPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `interserver` for selected shard, override `chi.spec.templates.hostTemplates.spec.interserverHTTPPort`
+ allows connect between replicas inside same shard during fetch replicated data parts HTTP protocol
+ minimum: 1
+ maximum: 65535
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in `Pod` only in one shard related to current replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and replica-level `chi.spec.configuration.clusters.layout.replicas.settings`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` only in one shard related to current replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files`, will ignore if `chi.spec.configuration.clusters.layout.shards` presents
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica
+ override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates`
+ templates:
+ type: object
+ description: "allows define templates which will use for render Kubernetes resources like StatefulSet, ConfigMap, Service, PVC, by default, clickhouse-operator have own templates, but you can override it"
+ # nullable: true
+ properties:
+ hostTemplates:
+ type: array
+ description: "hostTemplate will use during apply to generate `clickhose-server` config files"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ description: "template name, could use to link inside top-level `chi.spec.defaults.templates.hostTemplate`, cluster-level `chi.spec.configuration.clusters.templates.hostTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.hostTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.hostTemplate`"
+ type: string
+ portDistribution:
+ type: array
+ description: "define how will distribute numeric values of named ports in `Pod.spec.containers.ports` and clickhouse-server configs"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - type
+ properties:
+ type:
+ type: string
+ description: "type of distribution, when `Unspecified` (default value) then all listen ports on clickhouse-server configuration in all Pods will have the same value, when `ClusterScopeIndex` then ports will increment to offset from base value depends on shard and replica index inside cluster with combination of `chi.spec.templates.podTemlates.spec.HostNetwork` it allows setup ClickHouse cluster inside Kubernetes and provide access via external network bypass Kubernetes internal network"
+ enum:
+ # List PortDistributionXXX constants
+ - ""
+ - "Unspecified"
+ - "ClusterScopeIndex"
+ spec:
+ # Host
+ type: object
+ properties:
+ name:
+ type: string
+ description: "by default, hostname will generate, but this allows define custom name for each `clickhuse-server`"
+ minLength: 1
+ # See namePartReplicaMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ insecure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open insecure ports for cluster, defaults to "yes"
+ secure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open secure ports
+ tcpPort:
+ type: integer
+ description: |
+ optional, setup `tcp_port` inside `clickhouse-server` settings for each Pod where current template will apply
+ if specified, should have equal value with `chi.spec.templates.podTemplates.spec.containers.ports[name=tcp]`
+ More info: https://clickhouse.tech/docs/en/interfaces/tcp/
+ minimum: 1
+ maximum: 65535
+ tlsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ httpPort:
+ type: integer
+ description: |
+ optional, setup `http_port` inside `clickhouse-server` settings for each Pod where current template will apply
+ if specified, should have equal value with `chi.spec.templates.podTemplates.spec.containers.ports[name=http]`
+ More info: https://clickhouse.tech/docs/en/interfaces/http/
+ minimum: 1
+ maximum: 65535
+ httpsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ interserverHTTPPort:
+ type: integer
+ description: |
+ optional, setup `interserver_http_port` inside `clickhouse-server` settings for each Pod where current template will apply
+ if specified, should have equal value with `chi.spec.templates.podTemplates.spec.containers.ports[name=interserver]`
+ More info: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#interserver-http-port
+ minimum: 1
+ maximum: 65535
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in each `Pod` where this template will apply during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` where this template will apply during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: "be careful, this part of CRD allows override template inside template, don't use it if you don't understand what you do"
+ podTemplates:
+ type: array
+ description: |
+ podTemplate will use during render `Pod` inside `StatefulSet.spec` and allows define rendered `Pod.spec`, pod scheduling distribution and pod zone
+ More information: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatespodtemplates
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ type: string
+ description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
+ generateName:
+ type: string
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
+ zone:
+ type: object
+ description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
+ #required:
+ # - values
+ properties:
+ key:
+ type: string
+ description: "optional, if defined, allows select kubernetes nodes by label with `name` equal `key`"
+ values:
+ type: array
+ description: "optional, if defined, allows select kubernetes nodes by label with `value` in `values`"
+ # nullable: true
+ items:
+ type: string
+ distribution:
+ type: string
+ description: "DEPRECATED, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
+ enum:
+ - ""
+ - "Unspecified"
+ - "OnePerHost"
+ podDistribution:
+ type: array
+ description: "define ClickHouse Pod distribution policy between Kubernetes Nodes inside Shard, Replica, Namespace, CHI, another ClickHouse cluster"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - type
+ properties:
+ type:
+ type: string
+ description: "you can define multiple affinity policy types"
+ enum:
+ # List PodDistributionXXX constants
+ - ""
+ - "Unspecified"
+ - "ClickHouseAntiAffinity"
+ - "ShardAntiAffinity"
+ - "ReplicaAntiAffinity"
+ - "AnotherNamespaceAntiAffinity"
+ - "AnotherClickHouseInstallationAntiAffinity"
+ - "AnotherClusterAntiAffinity"
+ - "MaxNumberPerNode"
+ - "NamespaceAffinity"
+ - "ClickHouseInstallationAffinity"
+ - "ClusterAffinity"
+ - "ShardAffinity"
+ - "ReplicaAffinity"
+ - "PreviousTailAffinity"
+ - "CircularReplication"
+ scope:
+ type: string
+ description: "scope for apply each podDistribution"
+ enum:
+ # list PodDistributionScopeXXX constants
+ - ""
+ - "Unspecified"
+ - "Shard"
+ - "Replica"
+ - "Cluster"
+ - "ClickHouseInstallation"
+ - "Namespace"
+ number:
+ type: integer
+ description: "define, how much ClickHouse Pods could be inside selected scope with selected distribution type"
+ minimum: 0
+ maximum: 65535
+ topologyKey:
+ type: string
+ description: |
+ use for inter-pod affinity look to `pod.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.topologyKey`,
+ more info: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity"
+ metadata:
+ type: object
+ description: |
+ allows pass standard object's metadata from template to Pod
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ # TODO specify PodSpec
+ type: object
+ description: "allows define whole Pod.spec inside StaefulSet.spec, look to https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates for details"
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ volumeClaimTemplates:
+ type: array
+ description: |
+ allows define template for rendering `PVC` kubernetes resource, which would use inside `Pod` for mount clickhouse `data`, clickhouse `logs` or something else
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ # - spec
+ properties:
+ name:
+ type: string
+ description: |
+ template name, could use to link inside
+ top-level `chi.spec.defaults.templates.dataVolumeClaimTemplate` or `chi.spec.defaults.templates.logVolumeClaimTemplate`,
+ cluster-level `chi.spec.configuration.clusters.templates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.templates.logVolumeClaimTemplate`,
+ shard-level `chi.spec.configuration.clusters.layout.shards.temlates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.layout.shards.temlates.logVolumeClaimTemplate`
+ replica-level `chi.spec.configuration.clusters.layout.replicas.templates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.layout.replicas.templates.logVolumeClaimTemplate`
+ provisioner: *TypePVCProvisioner
+ reclaimPolicy: *TypePVCReclaimPolicy
+ metadata:
+ type: object
+ description: |
+ allows to pass standard object's metadata from template to PVC
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ type: object
+ description: |
+ allows define all aspects of `PVC` resource
+ More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ serviceTemplates:
+ type: array
+ description: |
+ allows define template for rendering `Service` which would get endpoint from Pods which scoped chi-wide, cluster-wide, shard-wide, replica-wide level
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ # - spec
+ properties:
+ name:
+ type: string
+ description: |
+ template name, could use to link inside
+ chi-level `chi.spec.defaults.templates.serviceTemplate`
+ cluster-level `chi.spec.configuration.clusters.templates.clusterServiceTemplate`
+ shard-level `chi.spec.configuration.clusters.layout.shards.temlates.shardServiceTemplate`
+ replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
+ generateName:
+ type: string
+ description: |
+ allows define format for generated `Service` name,
+ look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
+ for details about available template variables"
+ metadata:
+ # TODO specify ObjectMeta
+ type: object
+ description: |
+ allows pass standard object's metadata from template to Service
+ Could be use for define specificly for Cloud Provider metadata which impact to behavior of service
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ # TODO specify ServiceSpec
+ type: object
+ description: |
+ describe behavior of generated Service
+ More info: https://kubernetes.io/docs/concepts/services-networking/service/
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ useTemplates:
+ type: array
+ description: |
+ list of `ClickHouseInstallationTemplate` (chit) resource names which will merge with current `CHI`
+ manifest during render Kubernetes resources to create related ClickHouse clusters"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ type: string
+ description: "name of `ClickHouseInstallationTemplate` (chit) resource"
+ namespace:
+ type: string
+ description: "Kubernetes namespace where need search `chit` resource, depending on `watchNamespaces` settings in `clichouse-operator`"
+ useType:
+ type: string
+ description: "optional, current strategy is only merge, and current `chi` settings have more priority than merged template `chit`"
+ enum:
+ # List useTypeXXX constants from model
+ - ""
+ - "merge"
diff --git a/deploy/operatorhub/0.24.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.24.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
new file mode 100644
index 000000000..ead66666a
--- /dev/null
+++ b/deploy/operatorhub/0.24.1/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml
@@ -0,0 +1,1274 @@
+# Template Parameters:
+#
+# KIND=ClickHouseInstallationTemplate
+# SINGULAR=clickhouseinstallationtemplate
+# PLURAL=clickhouseinstallationtemplates
+# SHORT=chit
+# OPERATOR_VERSION=0.24.1
+#
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ name: clickhouseinstallationtemplates.clickhouse.altinity.com
+ labels:
+ clickhouse.altinity.com/chop: 0.24.1
+spec:
+ group: clickhouse.altinity.com
+ scope: Namespaced
+ names:
+ kind: ClickHouseInstallationTemplate
+ singular: clickhouseinstallationtemplate
+ plural: clickhouseinstallationtemplates
+ shortNames:
+ - chit
+ versions:
+ - name: v1
+ served: true
+ storage: true
+ additionalPrinterColumns:
+ - name: version
+ type: string
+ description: Operator version
+ priority: 1 # show in wide view
+ jsonPath: .status.chop-version
+ - name: clusters
+ type: integer
+ description: Clusters count
+ jsonPath: .status.clusters
+ - name: shards
+ type: integer
+ description: Shards count
+ priority: 1 # show in wide view
+ jsonPath: .status.shards
+ - name: hosts
+ type: integer
+ description: Hosts count
+ jsonPath: .status.hosts
+ - name: taskID
+ type: string
+ description: TaskID
+ priority: 1 # show in wide view
+ jsonPath: .status.taskID
+ - name: status
+ type: string
+ description: Resource status
+ jsonPath: .status.status
+ - name: hosts-unchanged
+ type: integer
+ description: Unchanged hosts count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsUnchanged
+ - name: hosts-updated
+ type: integer
+ description: Updated hosts count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsUpdated
+ - name: hosts-added
+ type: integer
+ description: Added hosts count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsAdded
+ - name: hosts-completed
+ type: integer
+ description: Completed hosts count
+ jsonPath: .status.hostsCompleted
+ - name: hosts-deleted
+ type: integer
+ description: Hosts deleted count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsDeleted
+ - name: hosts-delete
+ type: integer
+ description: Hosts to be deleted count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsDelete
+ - name: endpoint
+ type: string
+ description: Client access endpoint
+ priority: 1 # show in wide view
+ jsonPath: .status.endpoint
+ - name: age
+ type: date
+ description: Age of the resource
+ # Displayed in all priorities
+ jsonPath: .metadata.creationTimestamp
+ subresources:
+ status: {}
+ schema:
+ openAPIV3Schema:
+ description: "define a set of Kubernetes resources (StatefulSet, PVC, Service, ConfigMap) which describe behavior one or more clusters"
+ type: object
+ required:
+ - spec
+ properties:
+ apiVersion:
+ description: |
+ APIVersion defines the versioned schema of this representation
+ of an object. Servers should convert recognized schemas to the latest
+ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |
+ Kind is a string value representing the REST resource this
+ object represents. Servers may infer this from the endpoint the client
+ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ status:
+ type: object
+ description: |
+ Status contains many fields like a normalized configuration, clickhouse-operator version, current action and all applied action list, current taskID and all applied taskIDs and other
+ properties:
+ chop-version:
+ type: string
+ description: "Operator version"
+ chop-commit:
+ type: string
+ description: "Operator git commit SHA"
+ chop-date:
+ type: string
+ description: "Operator build date"
+ chop-ip:
+ type: string
+ description: "IP address of the operator's pod which managed this resource"
+ clusters:
+ type: integer
+ minimum: 0
+ description: "Clusters count"
+ shards:
+ type: integer
+ minimum: 0
+ description: "Shards count"
+ replicas:
+ type: integer
+ minimum: 0
+ description: "Replicas count"
+ hosts:
+ type: integer
+ minimum: 0
+ description: "Hosts count"
+ status:
+ type: string
+ description: "Status"
+ taskID:
+ type: string
+ description: "Current task id"
+ taskIDsStarted:
+ type: array
+ description: "Started task ids"
+ nullable: true
+ items:
+ type: string
+ taskIDsCompleted:
+ type: array
+ description: "Completed task ids"
+ nullable: true
+ items:
+ type: string
+ action:
+ type: string
+ description: "Action"
+ actions:
+ type: array
+ description: "Actions"
+ nullable: true
+ items:
+ type: string
+ error:
+ type: string
+ description: "Last error"
+ errors:
+ type: array
+ description: "Errors"
+ nullable: true
+ items:
+ type: string
+ hostsUnchanged:
+ type: integer
+ minimum: 0
+ description: "Unchanged Hosts count"
+ hostsUpdated:
+ type: integer
+ minimum: 0
+ description: "Updated Hosts count"
+ hostsAdded:
+ type: integer
+ minimum: 0
+ description: "Added Hosts count"
+ hostsCompleted:
+ type: integer
+ minimum: 0
+ description: "Completed Hosts count"
+ hostsDeleted:
+ type: integer
+ minimum: 0
+ description: "Deleted Hosts count"
+ hostsDelete:
+ type: integer
+ minimum: 0
+ description: "About to delete Hosts count"
+ pods:
+ type: array
+ description: "Pods"
+ nullable: true
+ items:
+ type: string
+ pod-ips:
+ type: array
+ description: "Pod IPs"
+ nullable: true
+ items:
+ type: string
+ fqdns:
+ type: array
+ description: "Pods FQDNs"
+ nullable: true
+ items:
+ type: string
+ endpoint:
+ type: string
+ description: "Endpoint"
+ generation:
+ type: integer
+ minimum: 0
+ description: "Generation"
+ normalized:
+ type: object
+ description: "Normalized resource requested"
+ x-kubernetes-preserve-unknown-fields: true
+ normalizedCompleted:
+ type: object
+ description: "Normalized resource completed"
+ x-kubernetes-preserve-unknown-fields: true
+ hostsWithTablesCreated:
+ type: array
+ description: "List of hosts with tables created by the operator"
+ nullable: true
+ items:
+ type: string
+ usedTemplates:
+ type: array
+ description: "List of templates used to build this CHI"
+ nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ items:
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ type: object
+ # x-kubernetes-preserve-unknown-fields: true
+ description: |
+ Specification of the desired behavior of one or more ClickHouse clusters
+ More info: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md
+ properties:
+ taskID:
+ type: string
+ description: |
+ Allows to define custom taskID for CHI update and watch status of this update execution.
+ Displayed in all .status.taskID* fields.
+ By default (if not filled) every update of CHI manifest will generate random taskID
+ stop: &TypeStringBool
+ type: string
+ description: |
+ Allows to stop all ClickHouse clusters defined in a CHI.
+ Works as the following:
+ - When `stop` is `1` operator sets `Replicas: 0` in each StatefulSet. Thie leads to having all `Pods` and `Service` deleted. All PVCs are kept intact.
+ - When `stop` is `0` operator sets `Replicas: 1` and `Pod`s and `Service`s will created again and all retained PVCs will be attached to `Pod`s.
+ enum:
+ # List StringBoolXXX constants from model
+ - ""
+ - "0"
+ - "1"
+ - "False"
+ - "false"
+ - "True"
+ - "true"
+ - "No"
+ - "no"
+ - "Yes"
+ - "yes"
+ - "Off"
+ - "off"
+ - "On"
+ - "on"
+ - "Disable"
+ - "disable"
+ - "Enable"
+ - "enable"
+ - "Disabled"
+ - "disabled"
+ - "Enabled"
+ - "enabled"
+ restart:
+ type: string
+ description: |
+ In case 'RollingUpdate' specified, the operator will always restart ClickHouse pods during reconcile.
+ This options is used in rare cases when force restart is required and is typically removed after the use in order to avoid unneeded restarts.
+ enum:
+ - ""
+ - "RollingUpdate"
+ troubleshoot:
+ !!merge <<: *TypeStringBool
+ description: |
+ Allows to troubleshoot Pods during CrashLoopBack state.
+ This may happen when wrong configuration applied, in this case `clickhouse-server` wouldn't start.
+ Command within ClickHouse container is modified with `sleep` in order to avoid quick restarts
+ and give time to troubleshoot via CLI.
+ Liveness and Readiness probes are disabled as well.
+ namespaceDomainPattern:
+ type: string
+ description: |
+ Custom domain pattern which will be used for DNS names of `Service` or `Pod`.
+ Typical use scenario - custom cluster domain in Kubernetes cluster
+ Example: %s.svc.my.test
+ templating:
+ type: object
+ # nullable: true
+ description: |
+ Optional, applicable inside ClickHouseInstallationTemplate only.
+ Defines current ClickHouseInstallationTemplate application options to target ClickHouseInstallation(s)."
+ properties:
+ policy:
+ type: string
+ description: |
+ When defined as `auto` inside ClickhouseInstallationTemplate, this ClickhouseInstallationTemplate
+ will be auto-added into ClickHouseInstallation, selectable by `chiSelector`.
+ Default value is `manual`, meaning ClickHouseInstallation should request this ClickhouseInstallationTemplate explicitly.
+ enum:
+ - ""
+ - "auto"
+ - "manual"
+ chiSelector:
+ type: object
+ description: "Optional, defines selector for ClickHouseInstallation(s) to be templated with ClickhouseInstallationTemplate"
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ reconciling:
+ type: object
+ description: "Optional, allows tuning reconciling cycle for ClickhouseInstallation from clickhouse-operator side"
+ # nullable: true
+ properties:
+ policy:
+ type: string
+ description: |
+ DISCUSSED TO BE DEPRECATED
+ Syntax sugar
+ Overrides all three 'reconcile.host.wait.{exclude, queries, include}' values from the operator's config
+ Possible values:
+ - wait - should wait to exclude host, complete queries and include host back into the cluster
+ - nowait - should NOT wait to exclude host, complete queries and include host back into the cluster
+ enum:
+ - ""
+ - "wait"
+ - "nowait"
+ configMapPropagationTimeout:
+ type: integer
+ description: |
+ Timeout in seconds for `clickhouse-operator` to wait for modified `ConfigMap` to propagate into the `Pod`
+ More details: https://kubernetes.io/docs/concepts/configuration/configmap/#mounted-configmaps-are-updated-automatically
+ minimum: 0
+ maximum: 3600
+ cleanup:
+ type: object
+ description: "Optional, defines behavior for cleanup Kubernetes resources during reconcile cycle"
+ # nullable: true
+ properties:
+ unknownObjects:
+ type: object
+ description: |
+ Describes what clickhouse-operator should do with found Kubernetes resources which should be managed by clickhouse-operator,
+ but do not have `ownerReference` to any currently managed `ClickHouseInstallation` resource.
+ Default behavior is `Delete`"
+ # nullable: true
+ properties:
+ statefulSet: &TypeObjectsCleanup
+ type: string
+ description: "Behavior policy for unknown StatefulSet, `Delete` by default"
+ enum:
+ # List ObjectsCleanupXXX constants from model
+ - ""
+ - "Retain"
+ - "Delete"
+ pvc:
+ type: string
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for unknown PVC, `Delete` by default"
+ configMap:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for unknown ConfigMap, `Delete` by default"
+ service:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for unknown Service, `Delete` by default"
+ reconcileFailedObjects:
+ type: object
+ description: |
+ Describes what clickhouse-operator should do with Kubernetes resources which are failed during reconcile.
+ Default behavior is `Retain`"
+ # nullable: true
+ properties:
+ statefulSet:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed StatefulSet, `Retain` by default"
+ pvc:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed PVC, `Retain` by default"
+ configMap:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed ConfigMap, `Retain` by default"
+ service:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed Service, `Retain` by default"
+ defaults:
+ type: object
+ description: |
+ define default behavior for whole ClickHouseInstallation, some behavior can be re-define on cluster, shard and replica level
+ More info: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specdefaults
+ # nullable: true
+ properties:
+ replicasUseFQDN:
+ !!merge <<: *TypeStringBool
+ description: |
+ define should replicas be specified by FQDN in ``.
+ In case of "no" will use short hostname and clickhouse-server will use kubernetes default suffixes for DNS lookup
+ "yes" by default
+ distributedDDL:
+ type: object
+ description: |
+ allows change `` settings
+ More info: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server-settings-distributed_ddl
+ # nullable: true
+ properties:
+ profile:
+ type: string
+ description: "Settings from this profile will be used to execute DDL queries"
+ storageManagement:
+ type: object
+ description: default storage management options
+ properties:
+ provisioner: &TypePVCProvisioner
+ type: string
+ description: "defines `PVC` provisioner - be it StatefulSet or the Operator"
+ enum:
+ - ""
+ - "StatefulSet"
+ - "Operator"
+ reclaimPolicy: &TypePVCReclaimPolicy
+ type: string
+ description: |
+ defines behavior of `PVC` deletion.
+ `Delete` by default, if `Retain` specified then `PVC` will be kept when deleting StatefulSet
+ enum:
+ - ""
+ - "Retain"
+ - "Delete"
+ templates: &TypeTemplateNames
+ type: object
+ description: "optional, configuration of the templates names which will use for generate Kubernetes resources according to one or more ClickHouse clusters described in current ClickHouseInstallation (chi) resource"
+ # nullable: true
+ properties:
+ hostTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.hostTemplates, which will apply to configure every `clickhouse-server` instance during render ConfigMap resources which will mount into `Pod`"
+ podTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.podTemplates, allows customization each `Pod` resource during render and reconcile each StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ dataVolumeClaimTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse data directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ logVolumeClaimTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse log directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ serviceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for one `Service` resource which will created by `clickhouse-operator` which cover all clusters in whole `chi` resource"
+ clusterServiceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each clickhouse cluster described in `chi.spec.configuration.clusters`"
+ shardServiceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each shard inside clickhouse cluster described in `chi.spec.configuration.clusters`"
+ replicaServiceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each replica inside each shard inside each clickhouse cluster described in `chi.spec.configuration.clusters`"
+ volumeClaimTemplate:
+ type: string
+ description: "optional, alias for dataVolumeClaimTemplate, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse data directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ configuration:
+ type: object
+ description: "allows configure multiple aspects and behavior for `clickhouse-server` instance and also allows describe multiple `clickhouse-server` clusters inside one `chi` resource"
+ # nullable: true
+ properties:
+ zookeeper: &TypeZookeeperConfig
+ type: object
+ description: |
+ allows configure .. section in each `Pod` during generate `ConfigMap` which will mounted in `/etc/clickhouse-server/config.d/`
+ `clickhouse-operator` itself doesn't manage Zookeeper, please install Zookeeper separatelly look examples on https://github.com/Altinity/clickhouse-operator/tree/master/deploy/zookeeper/
+ currently, zookeeper (or clickhouse-keeper replacement) used for *ReplicatedMergeTree table engines and for `distributed_ddl`
+ More details: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server-settings_zookeeper
+ # nullable: true
+ properties:
+ nodes:
+ type: array
+ description: "describe every available zookeeper cluster node for interaction"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - host
+ properties:
+ host:
+ type: string
+ description: "dns name or ip address for Zookeeper node"
+ port:
+ type: integer
+ description: "TCP port which used to connect to Zookeeper node"
+ minimum: 0
+ maximum: 65535
+ secure:
+ !!merge <<: *TypeStringBool
+ description: "if a secure connection to Zookeeper is required"
+ session_timeout_ms:
+ type: integer
+ description: "session timeout during connect to Zookeeper"
+ operation_timeout_ms:
+ type: integer
+ description: "one operation timeout during Zookeeper transactions"
+ root:
+ type: string
+ description: "optional root znode path inside zookeeper to store ClickHouse related data (replication queue or distributed DDL)"
+ identity:
+ type: string
+ description: "optional access credentials string with `user:password` format used when use digest authorization in Zookeeper"
+ users:
+ type: object
+ description: |
+ allows configure .. section in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/users.d/`
+ you can configure password hashed, authorization restrictions, database level security row filters etc.
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings-users/
+ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationusers
+
+ any key could contains `valueFrom` with `secretKeyRef` which allow pass password from kubernetes secrets
+ secret value will pass in `pod.spec.containers.evn`, and generate with from_env=XXX in XML in /etc/clickhouse-server/users.d/chop-generated-users.xml
+ it not allow automatically updates when updates `secret`, change spec.taskID for manually trigger reconcile cycle
+
+ look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples
+
+ any key with prefix `k8s_secret_` shall has value with format namespace/secret/key or secret/key
+ in this case value from secret will write directly into XML tag during render *-usersd ConfigMap
+
+ any key with prefix `k8s_secret_env` shall has value with format namespace/secret/key or secret/key
+ in this case value from secret will write into environment variable and write to XML tag via from_env=XXX
+
+ look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ profiles:
+ type: object
+ description: |
+ allows configure .. section in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/users.d/`
+ you can configure any aspect of settings profile
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings-profiles/
+ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationprofiles
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ quotas:
+ type: object
+ description: |
+ allows configure .. section in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/users.d/`
+ you can configure any aspect of resource quotas
+ More details: https://clickhouse.tech/docs/en/operations/quotas/
+ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationquotas
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ settings: &TypeSettings
+ type: object
+ description: |
+ allows configure `clickhouse-server` settings inside ... tag in each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ Your yaml code will convert to XML, see examples https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specconfigurationsettings
+
+ any key could contains `valueFrom` with `secretKeyRef` which allow pass password from kubernetes secrets
+ look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples
+
+ secret value will pass in `pod.spec.evn`, and generate with from_env=XXX in XML in /etc/clickhouse-server/config.d/chop-generated-settings.xml
+ it not allow automatically updates when updates `secret`, change spec.taskID for manually trigger reconcile cycle
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ files: &TypeFiles
+ type: object
+ description: |
+ allows define content of any setting file inside each `Pod` during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ every key in this object is the file name
+ every value in this object is the file content
+ you can use `!!binary |` and base64 for binary files, see details here https://yaml.org/type/binary.html
+ each key could contains prefix like USERS, COMMON, HOST or config.d, users.d, cond.d, wrong prefixes will ignored, subfolders also will ignored
+ More details: https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-05-files-nested.yaml
+
+ any key could contains `valueFrom` with `secretKeyRef` which allow pass values from kubernetes secrets
+ secrets will mounted into pod as separate volume in /etc/clickhouse-server/secrets.d/
+ and will automatically update when update secret
+ it useful for pass SSL certificates from cert-manager or similar tool
+ look into https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/05-settings-01-overview.yaml for examples
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ clusters:
+ type: array
+ description: |
+ describes clusters layout and allows change settings on cluster-level, shard-level and replica-level
+ every cluster is a set of StatefulSet, one StatefulSet contains only one Pod with `clickhouse-server`
+ all Pods will rendered in part of ClickHouse configs, mounted from ConfigMap as `/etc/clickhouse-server/config.d/chop-generated-remote_servers.xml`
+ Clusters will use for Distributed table engine, more details: https://clickhouse.tech/docs/en/engines/table-engines/special/distributed/
+ If `cluster` contains zookeeper settings (could be inherited from top `chi` level), when you can create *ReplicatedMergeTree tables
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ type: string
+ description: "cluster name, used to identify set of servers and wide used during generate names of related Kubernetes resources"
+ minLength: 1
+ # See namePartClusterMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ zookeeper:
+ !!merge <<: *TypeZookeeperConfig
+ description: |
+ optional, allows configure .. section in each `Pod` only in current ClickHouse cluster, during generate `ConfigMap` which will mounted in `/etc/clickhouse-server/config.d/`
+ override top-level `chi.spec.configuration.zookeeper` settings
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in each `Pod` only in one cluster during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/`
+ override top-level `chi.spec.configuration.settings`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` on current cluster during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files`
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected cluster
+ override top-level `chi.spec.configuration.templates`
+ schemaPolicy:
+ type: object
+ description: |
+ describes how schema is propagated within replicas and shards
+ properties:
+ replica:
+ type: string
+ description: "how schema is propagated within a replica"
+ enum:
+ # List SchemaPolicyReplicaXXX constants from model
+ - ""
+ - "None"
+ - "All"
+ shard:
+ type: string
+ description: "how schema is propagated between shards"
+ enum:
+ # List SchemaPolicyShardXXX constants from model
+ - ""
+ - "None"
+ - "All"
+ - "DistributedTablesOnly"
+ insecure:
+ !!merge <<: *TypeStringBool
+ description: optional, open insecure ports for cluster, defaults to "yes"
+ secure:
+ !!merge <<: *TypeStringBool
+ description: optional, open secure ports for cluster
+ secret:
+ type: object
+ description: "optional, shared secret value to secure cluster communications"
+ properties:
+ auto:
+ !!merge <<: *TypeStringBool
+ description: "Auto-generate shared secret value to secure cluster communications"
+ value:
+ description: "Cluster shared secret value in plain text"
+ type: string
+ valueFrom:
+ description: "Cluster shared secret source"
+ type: object
+ properties:
+ secretKeyRef:
+ description: |
+ Selects a key of a secret in the clickhouse installation namespace.
+ Should not be used if value is not empty.
+ type: object
+ properties:
+ name:
+ description: |
+ Name of the referent. More info:
+ https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ type: string
+ key:
+ description: The key of the secret to select from. Must be a valid secret key.
+ type: string
+ optional:
+ description: Specify whether the Secret or its key must be defined
+ type: boolean
+ required:
+ - name
+ - key
+ pdbMaxUnavailable:
+ type: integer
+ description: |
+ Pod eviction is allowed if at most "pdbMaxUnavailable" pods are unavailable after the eviction,
+ i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions
+ by specifying 0. This is a mutually exclusive setting with "minAvailable".
+ minimum: 0
+ maximum: 65535
+ layout:
+ type: object
+ description: |
+ describe current cluster layout, how much shards in cluster, how much replica in shard
+ allows override settings on each shard and replica separatelly
+ # nullable: true
+ properties:
+ shardsCount:
+ type: integer
+ description: |
+ how much shards for current ClickHouse cluster will run in Kubernetes,
+ each shard contains shared-nothing part of data and contains set of replicas,
+ cluster contains 1 shard by default"
+ replicasCount:
+ type: integer
+ description: |
+ how much replicas in each shards for current cluster will run in Kubernetes,
+ each replica is a separate `StatefulSet` which contains only one `Pod` with `clickhouse-server` instance,
+ every shard contains 1 replica by default"
+ shards:
+ type: array
+ description: |
+ optional, allows override top-level `chi.spec.configuration`, cluster-level
+ `chi.spec.configuration.clusters` settings for each shard separately,
+ use it only if you fully understand what you do"
+ # nullable: true
+ items:
+ type: object
+ properties:
+ name:
+ type: string
+ description: "optional, by default shard name is generated, but you can override it and setup custom name"
+ minLength: 1
+ # See namePartShardMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ definitionType:
+ type: string
+ description: "DEPRECATED - to be removed soon"
+ weight:
+ type: integer
+ description: |
+ optional, 1 by default, allows setup shard setting which will use during insert into tables with `Distributed` engine,
+ will apply in inside ConfigMap which will mount in /etc/clickhouse-server/config.d/chop-generated-remote_servers.xml
+ More details: https://clickhouse.tech/docs/en/engines/table-engines/special/distributed/
+ internalReplication:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, `true` by default when `chi.spec.configuration.clusters[].layout.ReplicaCount` > 1 and 0 otherwise
+ allows setup setting which will use during insert into tables with `Distributed` engine for insert only in one live replica and other replicas will download inserted data during replication,
+ will apply in inside ConfigMap which will mount in /etc/clickhouse-server/config.d/chop-generated-remote_servers.xml
+ More details: https://clickhouse.tech/docs/en/engines/table-engines/special/distributed/
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in each `Pod` only in one shard during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/`
+ override top-level `chi.spec.configuration.settings` and cluster-level `chi.spec.configuration.clusters.settings`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` only in one shard during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files`
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected shard
+ override top-level `chi.spec.configuration.templates` and cluster-level `chi.spec.configuration.clusters.templates`
+ replicasCount:
+ type: integer
+ description: |
+ optional, how much replicas in selected shard for selected ClickHouse cluster will run in Kubernetes, each replica is a separate `StatefulSet` which contains only one `Pod` with `clickhouse-server` instance,
+ shard contains 1 replica by default
+ override cluster-level `chi.spec.configuration.clusters.layout.replicasCount`
+ minimum: 1
+ replicas:
+ type: array
+ description: |
+ optional, allows override behavior for selected replicas from cluster-level `chi.spec.configuration.clusters` and shard-level `chi.spec.configuration.clusters.layout.shards`
+ # nullable: true
+ items:
+ # Host
+ type: object
+ properties:
+ name:
+ type: string
+ description: "optional, by default replica name is generated, but you can override it and setup custom name"
+ minLength: 1
+ # See namePartReplicaMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ insecure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open insecure ports for cluster, defaults to "yes"
+ secure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open secure ports
+ tcpPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `tcp` for selected replica, override `chi.spec.templates.hostTemplates.spec.tcpPort`
+ allows connect to `clickhouse-server` via TCP Native protocol via kubernetes `Service`
+ minimum: 1
+ maximum: 65535
+ tlsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ httpPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `http` for selected replica, override `chi.spec.templates.hostTemplates.spec.httpPort`
+ allows connect to `clickhouse-server` via HTTP protocol via kubernetes `Service`
+ minimum: 1
+ maximum: 65535
+ httpsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ interserverHTTPPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `interserver` for selected replica, override `chi.spec.templates.hostTemplates.spec.interserverHTTPPort`
+ allows connect between replicas inside same shard during fetch replicated data parts HTTP protocol
+ minimum: 1
+ maximum: 65535
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and shard-level `chi.spec.configuration.clusters.layout.shards.settings`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files`, cluster-level `chi.spec.configuration.clusters.files` and shard-level `chi.spec.configuration.clusters.layout.shards.files`
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica
+ override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates` and shard-level `chi.spec.configuration.clusters.layout.shards.templates`
+ replicas:
+ type: array
+ description: "optional, allows override top-level `chi.spec.configuration` and cluster-level `chi.spec.configuration.clusters` configuration for each replica and each shard relates to selected replica, use it only if you fully understand what you do"
+ # nullable: true
+ items:
+ type: object
+ properties:
+ name:
+ type: string
+ description: "optional, by default replica name is generated, but you can override it and setup custom name"
+ minLength: 1
+ # See namePartShardMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and will ignore if shard-level `chi.spec.configuration.clusters.layout.shards` present
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files`, will ignore if `chi.spec.configuration.clusters.layout.shards` presents
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica
+ override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates`
+ shardsCount:
+ type: integer
+ description: "optional, count of shards related to current replica, you can override each shard behavior on low-level `chi.spec.configuration.clusters.layout.replicas.shards`"
+ minimum: 1
+ shards:
+ type: array
+ description: "optional, list of shards related to current replica, will ignore if `chi.spec.configuration.clusters.layout.shards` presents"
+ # nullable: true
+ items:
+ # Host
+ type: object
+ properties:
+ name:
+ type: string
+ description: "optional, by default shard name is generated, but you can override it and setup custom name"
+ minLength: 1
+ # See namePartReplicaMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ insecure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open insecure ports for cluster, defaults to "yes"
+ secure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open secure ports
+ tcpPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `tcp` for selected shard, override `chi.spec.templates.hostTemplates.spec.tcpPort`
+ allows connect to `clickhouse-server` via TCP Native protocol via kubernetes `Service`
+ minimum: 1
+ maximum: 65535
+ tlsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ httpPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `http` for selected shard, override `chi.spec.templates.hostTemplates.spec.httpPort`
+ allows connect to `clickhouse-server` via HTTP protocol via kubernetes `Service`
+ minimum: 1
+ maximum: 65535
+ httpsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ interserverHTTPPort:
+ type: integer
+ description: |
+ optional, setup `Pod.spec.containers.ports` with name `interserver` for selected shard, override `chi.spec.templates.hostTemplates.spec.interserverHTTPPort`
+ allows connect between replicas inside same shard during fetch replicated data parts HTTP protocol
+ minimum: 1
+ maximum: 65535
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in `Pod` only in one shard related to current replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and replica-level `chi.spec.configuration.clusters.layout.replicas.settings`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` only in one shard related to current replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files`, will ignore if `chi.spec.configuration.clusters.layout.shards` presents
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica
+ override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates`
+ templates:
+ type: object
+ description: "allows define templates which will use for render Kubernetes resources like StatefulSet, ConfigMap, Service, PVC, by default, clickhouse-operator have own templates, but you can override it"
+ # nullable: true
+ properties:
+ hostTemplates:
+ type: array
+ description: "hostTemplate will use during apply to generate `clickhose-server` config files"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ description: "template name, could use to link inside top-level `chi.spec.defaults.templates.hostTemplate`, cluster-level `chi.spec.configuration.clusters.templates.hostTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.hostTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.hostTemplate`"
+ type: string
+ portDistribution:
+ type: array
+ description: "define how will distribute numeric values of named ports in `Pod.spec.containers.ports` and clickhouse-server configs"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - type
+ properties:
+ type:
+ type: string
+ description: "type of distribution, when `Unspecified` (default value) then all listen ports on clickhouse-server configuration in all Pods will have the same value, when `ClusterScopeIndex` then ports will increment to offset from base value depends on shard and replica index inside cluster with combination of `chi.spec.templates.podTemlates.spec.HostNetwork` it allows setup ClickHouse cluster inside Kubernetes and provide access via external network bypass Kubernetes internal network"
+ enum:
+ # List PortDistributionXXX constants
+ - ""
+ - "Unspecified"
+ - "ClusterScopeIndex"
+ spec:
+ # Host
+ type: object
+ properties:
+ name:
+ type: string
+ description: "by default, hostname will generate, but this allows define custom name for each `clickhuse-server`"
+ minLength: 1
+ # See namePartReplicaMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ insecure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open insecure ports for cluster, defaults to "yes"
+ secure:
+ !!merge <<: *TypeStringBool
+ description: |
+ optional, open secure ports
+ tcpPort:
+ type: integer
+ description: |
+ optional, setup `tcp_port` inside `clickhouse-server` settings for each Pod where current template will apply
+ if specified, should have equal value with `chi.spec.templates.podTemplates.spec.containers.ports[name=tcp]`
+ More info: https://clickhouse.tech/docs/en/interfaces/tcp/
+ minimum: 1
+ maximum: 65535
+ tlsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ httpPort:
+ type: integer
+ description: |
+ optional, setup `http_port` inside `clickhouse-server` settings for each Pod where current template will apply
+ if specified, should have equal value with `chi.spec.templates.podTemplates.spec.containers.ports[name=http]`
+ More info: https://clickhouse.tech/docs/en/interfaces/http/
+ minimum: 1
+ maximum: 65535
+ httpsPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ interserverHTTPPort:
+ type: integer
+ description: |
+ optional, setup `interserver_http_port` inside `clickhouse-server` settings for each Pod where current template will apply
+ if specified, should have equal value with `chi.spec.templates.podTemplates.spec.containers.ports[name=interserver]`
+ More info: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#interserver-http-port
+ minimum: 1
+ maximum: 65535
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in each `Pod` where this template will apply during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` where this template will apply during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: "be careful, this part of CRD allows override template inside template, don't use it if you don't understand what you do"
+ podTemplates:
+ type: array
+ description: |
+ podTemplate will use during render `Pod` inside `StatefulSet.spec` and allows define rendered `Pod.spec`, pod scheduling distribution and pod zone
+ More information: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatespodtemplates
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ type: string
+ description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
+ generateName:
+ type: string
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
+ zone:
+ type: object
+ description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
+ #required:
+ # - values
+ properties:
+ key:
+ type: string
+ description: "optional, if defined, allows select kubernetes nodes by label with `name` equal `key`"
+ values:
+ type: array
+ description: "optional, if defined, allows select kubernetes nodes by label with `value` in `values`"
+ # nullable: true
+ items:
+ type: string
+ distribution:
+ type: string
+ description: "DEPRECATED, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
+ enum:
+ - ""
+ - "Unspecified"
+ - "OnePerHost"
+ podDistribution:
+ type: array
+ description: "define ClickHouse Pod distribution policy between Kubernetes Nodes inside Shard, Replica, Namespace, CHI, another ClickHouse cluster"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - type
+ properties:
+ type:
+ type: string
+ description: "you can define multiple affinity policy types"
+ enum:
+ # List PodDistributionXXX constants
+ - ""
+ - "Unspecified"
+ - "ClickHouseAntiAffinity"
+ - "ShardAntiAffinity"
+ - "ReplicaAntiAffinity"
+ - "AnotherNamespaceAntiAffinity"
+ - "AnotherClickHouseInstallationAntiAffinity"
+ - "AnotherClusterAntiAffinity"
+ - "MaxNumberPerNode"
+ - "NamespaceAffinity"
+ - "ClickHouseInstallationAffinity"
+ - "ClusterAffinity"
+ - "ShardAffinity"
+ - "ReplicaAffinity"
+ - "PreviousTailAffinity"
+ - "CircularReplication"
+ scope:
+ type: string
+ description: "scope for apply each podDistribution"
+ enum:
+ # list PodDistributionScopeXXX constants
+ - ""
+ - "Unspecified"
+ - "Shard"
+ - "Replica"
+ - "Cluster"
+ - "ClickHouseInstallation"
+ - "Namespace"
+ number:
+ type: integer
+ description: "define, how much ClickHouse Pods could be inside selected scope with selected distribution type"
+ minimum: 0
+ maximum: 65535
+ topologyKey:
+ type: string
+ description: |
+ use for inter-pod affinity look to `pod.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.topologyKey`,
+ more info: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity"
+ metadata:
+ type: object
+ description: |
+ allows pass standard object's metadata from template to Pod
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ # TODO specify PodSpec
+ type: object
+ description: "allows define whole Pod.spec inside StaefulSet.spec, look to https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates for details"
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ volumeClaimTemplates:
+ type: array
+ description: |
+ allows define template for rendering `PVC` kubernetes resource, which would use inside `Pod` for mount clickhouse `data`, clickhouse `logs` or something else
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ # - spec
+ properties:
+ name:
+ type: string
+ description: |
+ template name, could use to link inside
+ top-level `chi.spec.defaults.templates.dataVolumeClaimTemplate` or `chi.spec.defaults.templates.logVolumeClaimTemplate`,
+ cluster-level `chi.spec.configuration.clusters.templates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.templates.logVolumeClaimTemplate`,
+ shard-level `chi.spec.configuration.clusters.layout.shards.temlates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.layout.shards.temlates.logVolumeClaimTemplate`
+ replica-level `chi.spec.configuration.clusters.layout.replicas.templates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.layout.replicas.templates.logVolumeClaimTemplate`
+ provisioner: *TypePVCProvisioner
+ reclaimPolicy: *TypePVCReclaimPolicy
+ metadata:
+ type: object
+ description: |
+ allows to pass standard object's metadata from template to PVC
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ type: object
+ description: |
+ allows define all aspects of `PVC` resource
+ More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ serviceTemplates:
+ type: array
+ description: |
+ allows define template for rendering `Service` which would get endpoint from Pods which scoped chi-wide, cluster-wide, shard-wide, replica-wide level
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ # - spec
+ properties:
+ name:
+ type: string
+ description: |
+ template name, could use to link inside
+ chi-level `chi.spec.defaults.templates.serviceTemplate`
+ cluster-level `chi.spec.configuration.clusters.templates.clusterServiceTemplate`
+ shard-level `chi.spec.configuration.clusters.layout.shards.temlates.shardServiceTemplate`
+ replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
+ generateName:
+ type: string
+ description: |
+ allows define format for generated `Service` name,
+ look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
+ for details about available template variables"
+ metadata:
+ # TODO specify ObjectMeta
+ type: object
+ description: |
+ allows pass standard object's metadata from template to Service
+ Could be use for define specificly for Cloud Provider metadata which impact to behavior of service
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ # TODO specify ServiceSpec
+ type: object
+ description: |
+ describe behavior of generated Service
+ More info: https://kubernetes.io/docs/concepts/services-networking/service/
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ useTemplates:
+ type: array
+ description: |
+ list of `ClickHouseInstallationTemplate` (chit) resource names which will merge with current `CHI`
+ manifest during render Kubernetes resources to create related ClickHouse clusters"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ type: string
+ description: "name of `ClickHouseInstallationTemplate` (chit) resource"
+ namespace:
+ type: string
+ description: "Kubernetes namespace where need search `chit` resource, depending on `watchNamespaces` settings in `clichouse-operator`"
+ useType:
+ type: string
+ description: "optional, current strategy is only merge, and current `chi` settings have more priority than merged template `chit`"
+ enum:
+ # List useTypeXXX constants from model
+ - ""
+ - "merge"
diff --git a/deploy/operatorhub/0.24.1/clickhousekeeperinstallations.clickhouse-keeper.altinity.com.crd.yaml b/deploy/operatorhub/0.24.1/clickhousekeeperinstallations.clickhouse-keeper.altinity.com.crd.yaml
new file mode 100644
index 000000000..1662c4051
--- /dev/null
+++ b/deploy/operatorhub/0.24.1/clickhousekeeperinstallations.clickhouse-keeper.altinity.com.crd.yaml
@@ -0,0 +1,836 @@
+# Template Parameters:
+#
+# OPERATOR_VERSION=0.24.1
+#
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ name: clickhousekeeperinstallations.clickhouse-keeper.altinity.com
+ labels:
+ clickhouse-keeper.altinity.com/chop: 0.24.1
+spec:
+ group: clickhouse-keeper.altinity.com
+ scope: Namespaced
+ names:
+ kind: ClickHouseKeeperInstallation
+ singular: clickhousekeeperinstallation
+ plural: clickhousekeeperinstallations
+ shortNames:
+ - chk
+ versions:
+ - name: v1
+ served: true
+ storage: true
+ additionalPrinterColumns:
+ - name: version
+ type: string
+ description: Operator version
+ priority: 1 # show in wide view
+ jsonPath: .status.chop-version
+ - name: clusters
+ type: integer
+ description: Clusters count
+ jsonPath: .status.clusters
+ - name: shards
+ type: integer
+ description: Shards count
+ priority: 1 # show in wide view
+ jsonPath: .status.shards
+ - name: hosts
+ type: integer
+ description: Hosts count
+ jsonPath: .status.hosts
+ - name: taskID
+ type: string
+ description: TaskID
+ priority: 1 # show in wide view
+ jsonPath: .status.taskID
+ - name: status
+ type: string
+ description: Resource status
+ jsonPath: .status.status
+ - name: hosts-unchanged
+ type: integer
+ description: Unchanged hosts count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsUnchanged
+ - name: hosts-updated
+ type: integer
+ description: Updated hosts count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsUpdated
+ - name: hosts-added
+ type: integer
+ description: Added hosts count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsAdded
+ - name: hosts-completed
+ type: integer
+ description: Completed hosts count
+ jsonPath: .status.hostsCompleted
+ - name: hosts-deleted
+ type: integer
+ description: Hosts deleted count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsDeleted
+ - name: hosts-delete
+ type: integer
+ description: Hosts to be deleted count
+ priority: 1 # show in wide view
+ jsonPath: .status.hostsDelete
+ - name: endpoint
+ type: string
+ description: Client access endpoint
+ priority: 1 # show in wide view
+ jsonPath: .status.endpoint
+ - name: age
+ type: date
+ description: Age of the resource
+ # Displayed in all priorities
+ jsonPath: .metadata.creationTimestamp
+ subresources:
+ status: {}
+ schema:
+ openAPIV3Schema:
+ description: "define a set of Kubernetes resources (StatefulSet, PVC, Service, ConfigMap) which describe behavior one or more clusters"
+ type: object
+ required:
+ - spec
+ properties:
+ apiVersion:
+ description: |
+ APIVersion defines the versioned schema of this representation
+ of an object. Servers should convert recognized schemas to the latest
+ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
+ type: string
+ kind:
+ description: |
+ Kind is a string value representing the REST resource this
+ object represents. Servers may infer this from the endpoint the client
+ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+ type: string
+ metadata:
+ type: object
+ status:
+ type: object
+ description: |
+ Status contains many fields like a normalized configuration, clickhouse-operator version, current action and all applied action list, current taskID and all applied taskIDs and other
+ properties:
+ chop-version:
+ type: string
+ description: "Operator version"
+ chop-commit:
+ type: string
+ description: "Operator git commit SHA"
+ chop-date:
+ type: string
+ description: "Operator build date"
+ chop-ip:
+ type: string
+ description: "IP address of the operator's pod which managed this resource"
+ clusters:
+ type: integer
+ minimum: 0
+ description: "Clusters count"
+ shards:
+ type: integer
+ minimum: 0
+ description: "Shards count"
+ replicas:
+ type: integer
+ minimum: 0
+ description: "Replicas count"
+ hosts:
+ type: integer
+ minimum: 0
+ description: "Hosts count"
+ status:
+ type: string
+ description: "Status"
+ taskID:
+ type: string
+ description: "Current task id"
+ taskIDsStarted:
+ type: array
+ description: "Started task ids"
+ nullable: true
+ items:
+ type: string
+ taskIDsCompleted:
+ type: array
+ description: "Completed task ids"
+ nullable: true
+ items:
+ type: string
+ action:
+ type: string
+ description: "Action"
+ actions:
+ type: array
+ description: "Actions"
+ nullable: true
+ items:
+ type: string
+ error:
+ type: string
+ description: "Last error"
+ errors:
+ type: array
+ description: "Errors"
+ nullable: true
+ items:
+ type: string
+ hostsUnchanged:
+ type: integer
+ minimum: 0
+ description: "Unchanged Hosts count"
+ hostsUpdated:
+ type: integer
+ minimum: 0
+ description: "Updated Hosts count"
+ hostsAdded:
+ type: integer
+ minimum: 0
+ description: "Added Hosts count"
+ hostsCompleted:
+ type: integer
+ minimum: 0
+ description: "Completed Hosts count"
+ hostsDeleted:
+ type: integer
+ minimum: 0
+ description: "Deleted Hosts count"
+ hostsDelete:
+ type: integer
+ minimum: 0
+ description: "About to delete Hosts count"
+ pods:
+ type: array
+ description: "Pods"
+ nullable: true
+ items:
+ type: string
+ pod-ips:
+ type: array
+ description: "Pod IPs"
+ nullable: true
+ items:
+ type: string
+ fqdns:
+ type: array
+ description: "Pods FQDNs"
+ nullable: true
+ items:
+ type: string
+ endpoint:
+ type: string
+ description: "Endpoint"
+ generation:
+ type: integer
+ minimum: 0
+ description: "Generation"
+ normalized:
+ type: object
+ description: "Normalized resource requested"
+ x-kubernetes-preserve-unknown-fields: true
+ normalizedCompleted:
+ type: object
+ description: "Normalized resource completed"
+ x-kubernetes-preserve-unknown-fields: true
+ hostsWithTablesCreated:
+ type: array
+ description: "List of hosts with tables created by the operator"
+ nullable: true
+ items:
+ type: string
+ usedTemplates:
+ type: array
+ description: "List of templates used to build this CHI"
+ nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ items:
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ type: object
+ # x-kubernetes-preserve-unknown-fields: true
+ description: |
+ Specification of the desired behavior of one or more ClickHouse clusters
+ More info: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md
+ properties:
+ taskID:
+ type: string
+ description: |
+ Allows to define custom taskID for CHI update and watch status of this update execution.
+ Displayed in all .status.taskID* fields.
+ By default (if not filled) every update of CHI manifest will generate random taskID
+ stop: &TypeStringBool
+ type: string
+ description: |
+ Allows to stop all ClickHouse clusters defined in a CHI.
+ Works as the following:
+ - When `stop` is `1` operator sets `Replicas: 0` in each StatefulSet. Thie leads to having all `Pods` and `Service` deleted. All PVCs are kept intact.
+ - When `stop` is `0` operator sets `Replicas: 1` and `Pod`s and `Service`s will created again and all retained PVCs will be attached to `Pod`s.
+ enum:
+ # List StringBoolXXX constants from model
+ - ""
+ - "0"
+ - "1"
+ - "False"
+ - "false"
+ - "True"
+ - "true"
+ - "No"
+ - "no"
+ - "Yes"
+ - "yes"
+ - "Off"
+ - "off"
+ - "On"
+ - "on"
+ - "Disable"
+ - "disable"
+ - "Enable"
+ - "enable"
+ - "Disabled"
+ - "disabled"
+ - "Enabled"
+ - "enabled"
+ namespaceDomainPattern:
+ type: string
+ description: |
+ Custom domain pattern which will be used for DNS names of `Service` or `Pod`.
+ Typical use scenario - custom cluster domain in Kubernetes cluster
+ Example: %s.svc.my.test
+ reconciling:
+ type: object
+ description: "Optional, allows tuning reconciling cycle for ClickhouseInstallation from clickhouse-operator side"
+ # nullable: true
+ properties:
+ policy:
+ type: string
+ description: |
+ DISCUSSED TO BE DEPRECATED
+ Syntax sugar
+ Overrides all three 'reconcile.host.wait.{exclude, queries, include}' values from the operator's config
+ Possible values:
+ - wait - should wait to exclude host, complete queries and include host back into the cluster
+ - nowait - should NOT wait to exclude host, complete queries and include host back into the cluster
+ enum:
+ - ""
+ - "wait"
+ - "nowait"
+ configMapPropagationTimeout:
+ type: integer
+ description: |
+ Timeout in seconds for `clickhouse-operator` to wait for modified `ConfigMap` to propagate into the `Pod`
+ More details: https://kubernetes.io/docs/concepts/configuration/configmap/#mounted-configmaps-are-updated-automatically
+ minimum: 0
+ maximum: 3600
+ cleanup:
+ type: object
+ description: "Optional, defines behavior for cleanup Kubernetes resources during reconcile cycle"
+ # nullable: true
+ properties:
+ unknownObjects:
+ type: object
+ description: |
+ Describes what clickhouse-operator should do with found Kubernetes resources which should be managed by clickhouse-operator,
+ but do not have `ownerReference` to any currently managed `ClickHouseInstallation` resource.
+ Default behavior is `Delete`"
+ # nullable: true
+ properties:
+ statefulSet: &TypeObjectsCleanup
+ type: string
+ description: "Behavior policy for unknown StatefulSet, `Delete` by default"
+ enum:
+ # List ObjectsCleanupXXX constants from model
+ - ""
+ - "Retain"
+ - "Delete"
+ pvc:
+ type: string
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for unknown PVC, `Delete` by default"
+ configMap:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for unknown ConfigMap, `Delete` by default"
+ service:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for unknown Service, `Delete` by default"
+ reconcileFailedObjects:
+ type: object
+ description: |
+ Describes what clickhouse-operator should do with Kubernetes resources which are failed during reconcile.
+ Default behavior is `Retain`"
+ # nullable: true
+ properties:
+ statefulSet:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed StatefulSet, `Retain` by default"
+ pvc:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed PVC, `Retain` by default"
+ configMap:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed ConfigMap, `Retain` by default"
+ service:
+ !!merge <<: *TypeObjectsCleanup
+ description: "Behavior policy for failed Service, `Retain` by default"
+ defaults:
+ type: object
+ description: |
+ define default behavior for whole ClickHouseInstallation, some behavior can be re-define on cluster, shard and replica level
+ More info: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#specdefaults
+ # nullable: true
+ properties:
+ replicasUseFQDN:
+ !!merge <<: *TypeStringBool
+ description: |
+ define should replicas be specified by FQDN in ``.
+ In case of "no" will use short hostname and clickhouse-server will use kubernetes default suffixes for DNS lookup
+ "yes" by default
+ distributedDDL:
+ type: object
+ description: |
+ allows change `` settings
+ More info: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server-settings-distributed_ddl
+ # nullable: true
+ properties:
+ profile:
+ type: string
+ description: "Settings from this profile will be used to execute DDL queries"
+ storageManagement:
+ type: object
+ description: default storage management options
+ properties:
+ provisioner: &TypePVCProvisioner
+ type: string
+ description: "defines `PVC` provisioner - be it StatefulSet or the Operator"
+ enum:
+ - ""
+ - "StatefulSet"
+ - "Operator"
+ reclaimPolicy: &TypePVCReclaimPolicy
+ type: string
+ description: |
+ defines behavior of `PVC` deletion.
+ `Delete` by default, if `Retain` specified then `PVC` will be kept when deleting StatefulSet
+ enum:
+ - ""
+ - "Retain"
+ - "Delete"
+ templates: &TypeTemplateNames
+ type: object
+ description: "optional, configuration of the templates names which will use for generate Kubernetes resources according to one or more ClickHouse clusters described in current ClickHouseInstallation (chi) resource"
+ # nullable: true
+ properties:
+ hostTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.hostTemplates, which will apply to configure every `clickhouse-server` instance during render ConfigMap resources which will mount into `Pod`"
+ podTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.podTemplates, allows customization each `Pod` resource during render and reconcile each StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ dataVolumeClaimTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse data directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ logVolumeClaimTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse log directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ serviceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for one `Service` resource which will created by `clickhouse-operator` which cover all clusters in whole `chi` resource"
+ clusterServiceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each clickhouse cluster described in `chi.spec.configuration.clusters`"
+ shardServiceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each shard inside clickhouse cluster described in `chi.spec.configuration.clusters`"
+ replicaServiceTemplate:
+ type: string
+ description: "optional, template name from chi.spec.templates.serviceTemplates, allows customization for each `Service` resource which will created by `clickhouse-operator` which cover each replica inside each shard inside each clickhouse cluster described in `chi.spec.configuration.clusters`"
+ volumeClaimTemplate:
+ type: string
+ description: "optional, alias for dataVolumeClaimTemplate, template name from chi.spec.templates.volumeClaimTemplates, allows customization each `PVC` which will mount for clickhouse data directory in each `Pod` during render and reconcile every StatefulSet.spec resource described in `chi.spec.configuration.clusters`"
+ configuration:
+ type: object
+ description: "allows configure multiple aspects and behavior for `clickhouse-server` instance and also allows describe multiple `clickhouse-server` clusters inside one `chi` resource"
+ # nullable: true
+ properties:
+ settings: &TypeSettings
+ type: object
+ description: |
+ allows configure multiple aspects and behavior for `clickhouse-keeper` instance
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ files: &TypeFiles
+ type: object
+ description: |
+ allows define content of any setting
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ clusters:
+ type: array
+ description: |
+ describes clusters layout and allows change settings on cluster-level and replica-level
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ type: string
+ description: "cluster name, used to identify set of servers and wide used during generate names of related Kubernetes resources"
+ minLength: 1
+ # See namePartClusterMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in each `Pod` only in one cluster during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/`
+ override top-level `chi.spec.configuration.settings`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` on current cluster during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files`
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected cluster
+ override top-level `chi.spec.configuration.templates`
+ layout:
+ type: object
+ description: |
+ describe current cluster layout, how much shards in cluster, how much replica in shard
+ allows override settings on each shard and replica separatelly
+ # nullable: true
+ properties:
+ replicasCount:
+ type: integer
+ description: |
+ how much replicas in each shards for current cluster will run in Kubernetes,
+ each replica is a separate `StatefulSet` which contains only one `Pod` with `clickhouse-server` instance,
+ every shard contains 1 replica by default"
+ replicas:
+ type: array
+ description: "optional, allows override top-level `chi.spec.configuration` and cluster-level `chi.spec.configuration.clusters` configuration for each replica and each shard relates to selected replica, use it only if you fully understand what you do"
+ # nullable: true
+ items:
+ type: object
+ properties:
+ name:
+ type: string
+ description: "optional, by default replica name is generated, but you can override it and setup custom name"
+ minLength: 1
+ # See namePartShardMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and will ignore if shard-level `chi.spec.configuration.clusters.layout.shards` present
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` only in one replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files`, will ignore if `chi.spec.configuration.clusters.layout.shards` presents
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica
+ override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates`
+ shardsCount:
+ type: integer
+ description: "optional, count of shards related to current replica, you can override each shard behavior on low-level `chi.spec.configuration.clusters.layout.replicas.shards`"
+ minimum: 1
+ shards:
+ type: array
+ description: "optional, list of shards related to current replica, will ignore if `chi.spec.configuration.clusters.layout.shards` presents"
+ # nullable: true
+ items:
+ # Host
+ type: object
+ properties:
+ name:
+ type: string
+ description: "optional, by default shard name is generated, but you can override it and setup custom name"
+ minLength: 1
+ # See namePartReplicaMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ zkPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ raftPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in `Pod` only in one shard related to current replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ override top-level `chi.spec.configuration.settings`, cluster-level `chi.spec.configuration.clusters.settings` and replica-level `chi.spec.configuration.clusters.layout.replicas.settings`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` only in one shard related to current replica during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ override top-level `chi.spec.configuration.files` and cluster-level `chi.spec.configuration.clusters.files`, will ignore if `chi.spec.configuration.clusters.layout.shards` presents
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: |
+ optional, configuration of the templates names which will use for generate Kubernetes resources according to selected replica
+ override top-level `chi.spec.configuration.templates`, cluster-level `chi.spec.configuration.clusters.templates`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates`
+ templates:
+ type: object
+ description: "allows define templates which will use for render Kubernetes resources like StatefulSet, ConfigMap, Service, PVC, by default, clickhouse-operator have own templates, but you can override it"
+ # nullable: true
+ properties:
+ hostTemplates:
+ type: array
+ description: "hostTemplate will use during apply to generate `clickhose-server` config files"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ description: "template name, could use to link inside top-level `chi.spec.defaults.templates.hostTemplate`, cluster-level `chi.spec.configuration.clusters.templates.hostTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.hostTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.hostTemplate`"
+ type: string
+ portDistribution:
+ type: array
+ description: "define how will distribute numeric values of named ports in `Pod.spec.containers.ports` and clickhouse-server configs"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - type
+ properties:
+ type:
+ type: string
+ description: "type of distribution, when `Unspecified` (default value) then all listen ports on clickhouse-server configuration in all Pods will have the same value, when `ClusterScopeIndex` then ports will increment to offset from base value depends on shard and replica index inside cluster with combination of `chi.spec.templates.podTemlates.spec.HostNetwork` it allows setup ClickHouse cluster inside Kubernetes and provide access via external network bypass Kubernetes internal network"
+ enum:
+ # List PortDistributionXXX constants
+ - ""
+ - "Unspecified"
+ - "ClusterScopeIndex"
+ spec:
+ # Host
+ type: object
+ properties:
+ name:
+ type: string
+ description: "by default, hostname will generate, but this allows define custom name for each `clickhuse-server`"
+ minLength: 1
+ # See namePartReplicaMaxLen const
+ maxLength: 15
+ pattern: "^[a-zA-Z0-9-]{0,15}$"
+ zkPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ raftPort:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ settings:
+ !!merge <<: *TypeSettings
+ description: |
+ optional, allows configure `clickhouse-server` settings inside ... tag in each `Pod` where this template will apply during generate `ConfigMap` which will mount in `/etc/clickhouse-server/conf.d/`
+ More details: https://clickhouse.tech/docs/en/operations/settings/settings/
+ files:
+ !!merge <<: *TypeFiles
+ description: |
+ optional, allows define content of any setting file inside each `Pod` where this template will apply during generate `ConfigMap` which will mount in `/etc/clickhouse-server/config.d/` or `/etc/clickhouse-server/conf.d/` or `/etc/clickhouse-server/users.d/`
+ templates:
+ !!merge <<: *TypeTemplateNames
+ description: "be careful, this part of CRD allows override template inside template, don't use it if you don't understand what you do"
+ podTemplates:
+ type: array
+ description: |
+ podTemplate will use during render `Pod` inside `StatefulSet.spec` and allows define rendered `Pod.spec`, pod scheduling distribution and pod zone
+ More information: https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatespodtemplates
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ properties:
+ name:
+ type: string
+ description: "template name, could use to link inside top-level `chi.spec.defaults.templates.podTemplate`, cluster-level `chi.spec.configuration.clusters.templates.podTemplate`, shard-level `chi.spec.configuration.clusters.layout.shards.temlates.podTemplate`, replica-level `chi.spec.configuration.clusters.layout.replicas.templates.podTemplate`"
+ generateName:
+ type: string
+ description: "allows define format for generated `Pod` name, look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates for details about available template variables"
+ zone:
+ type: object
+ description: "allows define custom zone name and will separate ClickHouse `Pods` between nodes, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
+ #required:
+ # - values
+ properties:
+ key:
+ type: string
+ description: "optional, if defined, allows select kubernetes nodes by label with `name` equal `key`"
+ values:
+ type: array
+ description: "optional, if defined, allows select kubernetes nodes by label with `value` in `values`"
+ # nullable: true
+ items:
+ type: string
+ distribution:
+ type: string
+ description: "DEPRECATED, shortcut for `chi.spec.templates.podTemplates.spec.affinity.podAntiAffinity`"
+ enum:
+ - ""
+ - "Unspecified"
+ - "OnePerHost"
+ podDistribution:
+ type: array
+ description: "define ClickHouse Pod distribution policy between Kubernetes Nodes inside Shard, Replica, Namespace, CHI, another ClickHouse cluster"
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - type
+ properties:
+ type:
+ type: string
+ description: "you can define multiple affinity policy types"
+ enum:
+ # List PodDistributionXXX constants
+ - ""
+ - "Unspecified"
+ - "ClickHouseAntiAffinity"
+ - "ShardAntiAffinity"
+ - "ReplicaAntiAffinity"
+ - "AnotherNamespaceAntiAffinity"
+ - "AnotherClickHouseInstallationAntiAffinity"
+ - "AnotherClusterAntiAffinity"
+ - "MaxNumberPerNode"
+ - "NamespaceAffinity"
+ - "ClickHouseInstallationAffinity"
+ - "ClusterAffinity"
+ - "ShardAffinity"
+ - "ReplicaAffinity"
+ - "PreviousTailAffinity"
+ - "CircularReplication"
+ scope:
+ type: string
+ description: "scope for apply each podDistribution"
+ enum:
+ # list PodDistributionScopeXXX constants
+ - ""
+ - "Unspecified"
+ - "Shard"
+ - "Replica"
+ - "Cluster"
+ - "ClickHouseInstallation"
+ - "Namespace"
+ number:
+ type: integer
+ description: "define, how much ClickHouse Pods could be inside selected scope with selected distribution type"
+ minimum: 0
+ maximum: 65535
+ topologyKey:
+ type: string
+ description: |
+ use for inter-pod affinity look to `pod.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.topologyKey`,
+ more info: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity"
+ metadata:
+ type: object
+ description: |
+ allows pass standard object's metadata from template to Pod
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ # TODO specify PodSpec
+ type: object
+ description: "allows define whole Pod.spec inside StaefulSet.spec, look to https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates for details"
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ volumeClaimTemplates:
+ type: array
+ description: |
+ allows define template for rendering `PVC` kubernetes resource, which would use inside `Pod` for mount clickhouse `data`, clickhouse `logs` or something else
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ # - spec
+ properties:
+ name:
+ type: string
+ description: |
+ template name, could use to link inside
+ top-level `chi.spec.defaults.templates.dataVolumeClaimTemplate` or `chi.spec.defaults.templates.logVolumeClaimTemplate`,
+ cluster-level `chi.spec.configuration.clusters.templates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.templates.logVolumeClaimTemplate`,
+ shard-level `chi.spec.configuration.clusters.layout.shards.temlates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.layout.shards.temlates.logVolumeClaimTemplate`
+ replica-level `chi.spec.configuration.clusters.layout.replicas.templates.dataVolumeClaimTemplate` or `chi.spec.configuration.clusters.layout.replicas.templates.logVolumeClaimTemplate`
+ provisioner: *TypePVCProvisioner
+ reclaimPolicy: *TypePVCReclaimPolicy
+ metadata:
+ type: object
+ description: |
+ allows to pass standard object's metadata from template to PVC
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ type: object
+ description: |
+ allows define all aspects of `PVC` resource
+ More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ serviceTemplates:
+ type: array
+ description: |
+ allows define template for rendering `Service` which would get endpoint from Pods which scoped chi-wide, cluster-wide, shard-wide, replica-wide level
+ # nullable: true
+ items:
+ type: object
+ #required:
+ # - name
+ # - spec
+ properties:
+ name:
+ type: string
+ description: |
+ template name, could use to link inside
+ chi-level `chi.spec.defaults.templates.serviceTemplate`
+ cluster-level `chi.spec.configuration.clusters.templates.clusterServiceTemplate`
+ shard-level `chi.spec.configuration.clusters.layout.shards.temlates.shardServiceTemplate`
+ replica-level `chi.spec.configuration.clusters.layout.replicas.templates.replicaServiceTemplate` or `chi.spec.configuration.clusters.layout.shards.replicas.replicaServiceTemplate`
+ generateName:
+ type: string
+ description: |
+ allows define format for generated `Service` name,
+ look to https://github.com/Altinity/clickhouse-operator/blob/master/docs/custom_resource_explained.md#spectemplatesservicetemplates
+ for details about available template variables"
+ metadata:
+ # TODO specify ObjectMeta
+ type: object
+ description: |
+ allows pass standard object's metadata from template to Service
+ Could be use for define specificly for Cloud Provider metadata which impact to behavior of service
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ # TODO specify ServiceSpec
+ type: object
+ description: |
+ describe behavior of generated Service
+ More info: https://kubernetes.io/docs/concepts/services-networking/service/
+ # nullable: true
+ x-kubernetes-preserve-unknown-fields: true
diff --git a/deploy/operatorhub/0.24.1/clickhouseoperatorconfigurations.clickhouse.altinity.com.crd.yaml b/deploy/operatorhub/0.24.1/clickhouseoperatorconfigurations.clickhouse.altinity.com.crd.yaml
new file mode 100644
index 000000000..057ee8b2e
--- /dev/null
+++ b/deploy/operatorhub/0.24.1/clickhouseoperatorconfigurations.clickhouse.altinity.com.crd.yaml
@@ -0,0 +1,449 @@
+# Template Parameters:
+#
+# NONE
+#
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+ name: clickhouseoperatorconfigurations.clickhouse.altinity.com
+ labels:
+ clickhouse.altinity.com/chop: 0.24.1
+spec:
+ group: clickhouse.altinity.com
+ scope: Namespaced
+ names:
+ kind: ClickHouseOperatorConfiguration
+ singular: clickhouseoperatorconfiguration
+ plural: clickhouseoperatorconfigurations
+ shortNames:
+ - chopconf
+ versions:
+ - name: v1
+ served: true
+ storage: true
+ additionalPrinterColumns:
+ - name: namespaces
+ type: string
+ description: Watch namespaces
+ jsonPath: .status
+ - name: age
+ type: date
+ description: Age of the resource
+ # Displayed in all priorities
+ jsonPath: .metadata.creationTimestamp
+ schema:
+ openAPIV3Schema:
+ type: object
+ description: "allows customize `clickhouse-operator` settings, need restart clickhouse-operator pod after adding, more details https://github.com/Altinity/clickhouse-operator/blob/master/docs/operator_configuration.md"
+ x-kubernetes-preserve-unknown-fields: true
+ properties:
+ status:
+ type: object
+ x-kubernetes-preserve-unknown-fields: true
+ spec:
+ type: object
+ description: |
+ Allows to define settings of the clickhouse-operator.
+ More info: https://github.com/Altinity/clickhouse-operator/blob/master/config/config.yaml
+ Check into etc-clickhouse-operator* ConfigMaps if you need more control
+ x-kubernetes-preserve-unknown-fields: true
+ properties:
+ watch:
+ type: object
+ description: "Parameters for watch kubernetes resources which used by clickhouse-operator deployment"
+ properties:
+ namespaces:
+ type: array
+ description: "List of namespaces where clickhouse-operator watches for events."
+ items:
+ type: string
+ clickhouse:
+ type: object
+ description: "Clickhouse related parameters used by clickhouse-operator"
+ properties:
+ configuration:
+ type: object
+ properties:
+ file:
+ type: object
+ properties:
+ path:
+ type: object
+ description: |
+ Each 'path' can be either absolute or relative.
+ In case path is absolute - it is used as is.
+ In case path is relative - it is relative to the folder where configuration file you are reading right now is located.
+ properties:
+ common:
+ type: string
+ description: |
+ Path to the folder where ClickHouse configuration files common for all instances within a CHI are located.
+ Default value - config.d
+ host:
+ type: string
+ description: |
+ Path to the folder where ClickHouse configuration files unique for each instance (host) within a CHI are located.
+ Default value - conf.d
+ user:
+ type: string
+ description: |
+ Path to the folder where ClickHouse configuration files with users settings are located.
+ Files are common for all instances within a CHI.
+ Default value - users.d
+ user:
+ type: object
+ description: "Default parameters for any user which will create"
+ properties:
+ default:
+ type: object
+ properties:
+ profile:
+ type: string
+ description: "ClickHouse server configuration `...` for any "
+ quota:
+ type: string
+ description: "ClickHouse server configuration `...` for any "
+ networksIP:
+ type: array
+ description: "ClickHouse server configuration `...` for any "
+ items:
+ type: string
+ password:
+ type: string
+ description: "ClickHouse server configuration `...` for any "
+ network:
+ type: object
+ description: "Default network parameters for any user which will create"
+ properties:
+ hostRegexpTemplate:
+ type: string
+ description: "ClickHouse server configuration `...` for any "
+ configurationRestartPolicy:
+ type: object
+ description: "Configuration restart policy describes what configuration changes require ClickHouse restart"
+ properties:
+ rules:
+ type: array
+ description: "Array of set of rules per specified ClickHouse versions"
+ items:
+ type: object
+ properties:
+ version:
+ type: string
+ description: "ClickHouse version expression"
+ rules:
+ type: array
+ description: "Set of configuration rules for specified ClickHouse version"
+ items:
+ type: object
+ description: "setting: value pairs for configuration restart policy"
+ access:
+ type: object
+ description: "parameters which use for connect to clickhouse from clickhouse-operator deployment"
+ properties:
+ scheme:
+ type: string
+ description: "The scheme to user for connecting to ClickHouse. Possible values: http, https, auto"
+ username:
+ type: string
+ description: "ClickHouse username to be used by operator to connect to ClickHouse instances, deprecated, use chCredentialsSecretName"
+ password:
+ type: string
+ description: "ClickHouse password to be used by operator to connect to ClickHouse instances, deprecated, use chCredentialsSecretName"
+ rootCA:
+ type: string
+ description: "Root certificate authority that clients use when verifying server certificates. Used for https connection to ClickHouse"
+ secret:
+ type: object
+ properties:
+ namespace:
+ type: string
+ description: "Location of k8s Secret with username and password to be used by operator to connect to ClickHouse instances"
+ name:
+ type: string
+ description: "Name of k8s Secret with username and password to be used by operator to connect to ClickHouse instances"
+ port:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ description: "Port to be used by operator to connect to ClickHouse instances"
+ timeouts:
+ type: object
+ description: "Timeouts used to limit connection and queries from the operator to ClickHouse instances, In seconds"
+ properties:
+ connect:
+ type: integer
+ minimum: 1
+ maximum: 10
+ description: "Timout to setup connection from the operator to ClickHouse instances. In seconds."
+ query:
+ type: integer
+ minimum: 1
+ maximum: 600
+ description: "Timout to perform SQL query from the operator to ClickHouse instances. In seconds."
+ metrics:
+ type: object
+ description: "parameters which use for connect to fetch metrics from clickhouse by clickhouse-operator"
+ properties:
+ timeouts:
+ type: object
+ description: |
+ Timeouts used to limit connection and queries from the metrics exporter to ClickHouse instances
+ Specified in seconds.
+ properties:
+ collect:
+ type: integer
+ minimum: 1
+ maximum: 600
+ description: |
+ Timeout used to limit metrics collection request. In seconds.
+ Upon reaching this timeout metrics collection is aborted and no more metrics are collected in this cycle.
+ All collected metrics are returned.
+ template:
+ type: object
+ description: "Parameters which are used if you want to generate ClickHouseInstallationTemplate custom resources from files which are stored inside clickhouse-operator deployment"
+ properties:
+ chi:
+ type: object
+ properties:
+ policy:
+ type: string
+ description: |
+ CHI template updates handling policy
+ Possible policy values:
+ - ReadOnStart. Accept CHIT updates on the operators start only.
+ - ApplyOnNextReconcile. Accept CHIT updates at all time. Apply news CHITs on next regular reconcile of the CHI
+ enum:
+ - ""
+ - "ReadOnStart"
+ - "ApplyOnNextReconcile"
+ path:
+ type: string
+ description: "Path to folder where ClickHouseInstallationTemplate .yaml manifests are located."
+ reconcile:
+ type: object
+ description: "allow tuning reconciling process"
+ properties:
+ runtime:
+ type: object
+ description: "runtime parameters for clickhouse-operator process which are used during reconcile cycle"
+ properties:
+ reconcileCHIsThreadsNumber:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ description: "How many goroutines will be used to reconcile CHIs in parallel, 10 by default"
+ reconcileShardsThreadsNumber:
+ type: integer
+ minimum: 1
+ maximum: 65535
+ description: "How many goroutines will be used to reconcile shards of a cluster in parallel, 1 by default"
+ reconcileShardsMaxConcurrencyPercent:
+ type: integer
+ minimum: 0
+ maximum: 100
+ description: "The maximum percentage of cluster shards that may be reconciled in parallel, 50 percent by default."
+ statefulSet:
+ type: object
+ description: "Allow change default behavior for reconciling StatefulSet which generated by clickhouse-operator"
+ properties:
+ create:
+ type: object
+ description: "Behavior during create StatefulSet"
+ properties:
+ onFailure:
+ type: string
+ description: |
+ What to do in case created StatefulSet is not in Ready after `statefulSetUpdateTimeout` seconds
+ Possible options:
+ 1. abort - do nothing, just break the process and wait for admin.
+ 2. delete - delete newly created problematic StatefulSet.
+ 3. ignore (default) - ignore error, pretend nothing happened and move on to the next StatefulSet.
+ update:
+ type: object
+ description: "Behavior during update StatefulSet"
+ properties:
+ timeout:
+ type: integer
+ description: "How many seconds to wait for created/updated StatefulSet to be Ready"
+ pollInterval:
+ type: integer
+ description: "How many seconds to wait between checks for created/updated StatefulSet status"
+ onFailure:
+ type: string
+ description: |
+ What to do in case updated StatefulSet is not in Ready after `statefulSetUpdateTimeout` seconds
+ Possible options:
+ 1. abort - do nothing, just break the process and wait for admin.
+ 2. rollback (default) - delete Pod and rollback StatefulSet to previous Generation. Pod would be recreated by StatefulSet based on rollback-ed configuration.
+ 3. ignore - ignore error, pretend nothing happened and move on to the next StatefulSet.
+ host:
+ type: object
+ description: |
+ Whether the operator during reconcile procedure should wait for a ClickHouse host:
+ - to be excluded from a ClickHouse cluster
+ - to complete all running queries
+ - to be included into a ClickHouse cluster
+ respectfully before moving forward
+ properties:
+ wait:
+ type: object
+ properties:
+ exclude: &TypeStringBool
+ type: string
+ description: "Whether the operator during reconcile procedure should wait for a ClickHouse host to be excluded from a ClickHouse cluster"
+ enum:
+ # List StringBoolXXX constants from model
+ - ""
+ - "0"
+ - "1"
+ - "False"
+ - "false"
+ - "True"
+ - "true"
+ - "No"
+ - "no"
+ - "Yes"
+ - "yes"
+ - "Off"
+ - "off"
+ - "On"
+ - "on"
+ - "Disable"
+ - "disable"
+ - "Enable"
+ - "enable"
+ - "Disabled"
+ - "disabled"
+ - "Enabled"
+ - "enabled"
+ queries:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator during reconcile procedure should wait for a ClickHouse host to complete all running queries"
+ include:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator during reconcile procedure should wait for a ClickHouse host to be included into a ClickHouse cluster"
+ annotation:
+ type: object
+ description: "defines which metadata.annotations items will include or exclude during render StatefulSet, Pod, PVC resources"
+ properties:
+ include:
+ type: array
+ description: |
+ When propagating labels from the chi's `metadata.annotations` section to child objects' `metadata.annotations`,
+ include annotations with names from the following list
+ items:
+ type: string
+ exclude:
+ type: array
+ description: |
+ When propagating labels from the chi's `metadata.annotations` section to child objects' `metadata.annotations`,
+ exclude annotations with names from the following list
+ items:
+ type: string
+ label:
+ type: object
+ description: "defines which metadata.labels will include or exclude during render StatefulSet, Pod, PVC resources"
+ properties:
+ include:
+ type: array
+ description: |
+ When propagating labels from the chi's `metadata.labels` section to child objects' `metadata.labels`,
+ include labels from the following list
+ items:
+ type: string
+ exclude:
+ type: array
+ items:
+ type: string
+ description: |
+ When propagating labels from the chi's `metadata.labels` section to child objects' `metadata.labels`,
+ exclude labels from the following list
+ appendScope:
+ !!merge <<: *TypeStringBool
+ description: |
+ Whether to append *Scope* labels to StatefulSet and Pod
+ - "LabelShardScopeIndex"
+ - "LabelReplicaScopeIndex"
+ - "LabelCHIScopeIndex"
+ - "LabelCHIScopeCycleSize"
+ - "LabelCHIScopeCycleIndex"
+ - "LabelCHIScopeCycleOffset"
+ - "LabelClusterScopeIndex"
+ - "LabelClusterScopeCycleSize"
+ - "LabelClusterScopeCycleIndex"
+ - "LabelClusterScopeCycleOffset"
+ metrics:
+ type: object
+ description: "defines metrics exporter options"
+ properties:
+ labels:
+ type: object
+ description: "defines metric labels options"
+ properties:
+ exclude:
+ type: array
+ description: |
+ When adding labels to a metric exclude labels with names from the following list
+ items:
+ type: string
+ status:
+ type: object
+ description: "defines status options"
+ properties:
+ fields:
+ type: object
+ description: "defines status fields options"
+ properties:
+ action:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'action'"
+ actions:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'actions'"
+ error:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'error'"
+ errors:
+ !!merge <<: *TypeStringBool
+ description: "Whether the operator should fill status field 'errors'"
+ statefulSet:
+ type: object
+ description: "define StatefulSet-specific parameters"
+ properties:
+ revisionHistoryLimit:
+ type: integer
+ description: "revisionHistoryLimit is the maximum number of revisions that will be\nmaintained in the StatefulSet's revision history. \nLook details in `statefulset.spec.revisionHistoryLimit`\n"
+ pod:
+ type: object
+ description: "define pod specific parameters"
+ properties:
+ terminationGracePeriod:
+ type: integer
+ description: "Optional duration in seconds the pod needs to terminate gracefully. \nLook details in `pod.spec.terminationGracePeriodSeconds`\n"
+ logger:
+ type: object
+ description: "allow setup clickhouse-operator logger behavior"
+ properties:
+ logtostderr:
+ type: string
+ description: "boolean, allows logs to stderr"
+ alsologtostderr:
+ type: string
+ description: "boolean allows logs to stderr and files both"
+ v:
+ type: string
+ description: "verbosity level of clickhouse-operator log, default - 1 max - 9"
+ stderrthreshold:
+ type: string
+ vmodule:
+ type: string
+ description: |
+ Comma-separated list of filename=N, where filename (can be a pattern) must have no .go ext, and N is a V level.
+ Ex.: file*=2 sets the 'V' to 2 in all files with names like file*.
+ log_backtrace_at:
+ type: string
+ description: |
+ It can be set to a file and line number with a logging line.
+ Ex.: file.go:123
+ Each time when this line is being executed, a stack trace will be written to the Info log.
diff --git a/deploy/zookeeper/zookeeper-manually/advanced/05-stateful-set-persistent-volume.yaml b/deploy/zookeeper/zookeeper-manually/advanced/05-stateful-set-persistent-volume.yaml
index a9231c1b5..1a8848de1 100644
--- a/deploy/zookeeper/zookeeper-manually/advanced/05-stateful-set-persistent-volume.yaml
+++ b/deploy/zookeeper/zookeeper-manually/advanced/05-stateful-set-persistent-volume.yaml
@@ -42,7 +42,7 @@ spec:
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
- image: "docker.io/zookeeper:3.8.3"
+ image: "docker.io/zookeeper:3.8.4"
resources:
requests:
memory: "1Gi"
diff --git a/deploy/zookeeper/zookeeper-manually/advanced/05-stateful-set-volume-emptyDir.yaml b/deploy/zookeeper/zookeeper-manually/advanced/05-stateful-set-volume-emptyDir.yaml
index 31351b2be..c1149bcd0 100644
--- a/deploy/zookeeper/zookeeper-manually/advanced/05-stateful-set-volume-emptyDir.yaml
+++ b/deploy/zookeeper/zookeeper-manually/advanced/05-stateful-set-volume-emptyDir.yaml
@@ -42,7 +42,7 @@ spec:
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
- image: "docker.io/zookeeper:3.8.3"
+ image: "docker.io/zookeeper:3.8.4"
resources:
requests:
memory: "1Gi"
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only-scaleout-pvc-secure.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only-scaleout-pvc-secure.yaml
index 693ecfc70..f2385fcbb 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only-scaleout-pvc-secure.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only-scaleout-pvc-secure.yaml
@@ -592,7 +592,7 @@ spec:
- name: zookeeper
command:
- /conf/zookeeperStart.sh
- image: docker.io/zookeeper:3.8.3
+ image: docker.io/zookeeper:3.8.4
imagePullPolicy: Always
lifecycle:
preStop:
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only-scaleout-pvc.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only-scaleout-pvc.yaml
index 5914ff190..9a40392eb 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only-scaleout-pvc.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only-scaleout-pvc.yaml
@@ -545,7 +545,7 @@ spec:
- name: zookeeper
command:
- /conf/zookeeperStart.sh
- image: docker.io/zookeeper:3.8.3
+ image: docker.io/zookeeper:3.8.4
imagePullPolicy: Always
lifecycle:
preStop:
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only.yaml
index 980534dfc..0aa1e7918 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-1GB-for-tests-only.yaml
@@ -82,7 +82,7 @@ spec:
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
- image: "docker.io/zookeeper:3.8.3"
+ image: "docker.io/zookeeper:3.8.4"
ports:
- containerPort: 2181
name: client
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-for-test-probes.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-for-test-probes.yaml
index 34fa8f1ee..634c490ce 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-for-test-probes.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node-for-test-probes.yaml
@@ -93,7 +93,7 @@ spec:
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
- image: "docker.io/zookeeper:3.8.3"
+ image: "docker.io/zookeeper:3.8.4"
resources:
requests:
memory: "512M"
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node.yaml
index 82f735c4d..c24f27789 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-1-node.yaml
@@ -94,7 +94,7 @@ spec:
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
- image: "docker.io/zookeeper:3.8.3"
+ image: "docker.io/zookeeper:3.8.4"
resources:
requests:
memory: "512M"
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-1GB-for-tests-only-scaleout-pvc.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-1GB-for-tests-only-scaleout-pvc.yaml
index cbc0edc1a..9044829dc 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-1GB-for-tests-only-scaleout-pvc.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-1GB-for-tests-only-scaleout-pvc.yaml
@@ -545,7 +545,7 @@ spec:
- name: zookeeper
command:
- /conf/zookeeperStart.sh
- image: docker.io/zookeeper:3.8.3
+ image: docker.io/zookeeper:3.8.4
imagePullPolicy: Always
lifecycle:
preStop:
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-1GB-for-tests-only.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-1GB-for-tests-only.yaml
index 83b8b3fd5..68bf22703 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-1GB-for-tests-only.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-1GB-for-tests-only.yaml
@@ -82,7 +82,7 @@ spec:
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
- image: "docker.io/zookeeper:3.8.3"
+ image: "docker.io/zookeeper:3.8.4"
ports:
- containerPort: 2181
name: client
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-for-test-probes.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-for-test-probes.yaml
index 72169eb38..8d043a0bc 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-for-test-probes.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes-for-test-probes.yaml
@@ -93,7 +93,7 @@ spec:
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
- image: "docker.io/zookeeper:3.8.3"
+ image: "docker.io/zookeeper:3.8.4"
resources:
requests:
memory: "512M"
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes.yaml
index a26e9b02f..2ab53183f 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-persistent-volume/zookeeper-3-nodes.yaml
@@ -94,7 +94,7 @@ spec:
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
- image: "docker.io/zookeeper:3.8.3"
+ image: "docker.io/zookeeper:3.8.4"
resources:
requests:
memory: "512M"
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-volume-emptyDir/zookeeper-1-node.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-volume-emptyDir/zookeeper-1-node.yaml
index 0bf66db35..247af99b7 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-volume-emptyDir/zookeeper-1-node.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-volume-emptyDir/zookeeper-1-node.yaml
@@ -94,7 +94,7 @@ spec:
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
- image: "docker.io/zookeeper:3.8.3"
+ image: "docker.io/zookeeper:3.8.4"
resources:
requests:
memory: "512M"
diff --git a/deploy/zookeeper/zookeeper-manually/quick-start-volume-emptyDir/zookeeper-3-nodes.yaml b/deploy/zookeeper/zookeeper-manually/quick-start-volume-emptyDir/zookeeper-3-nodes.yaml
index e7aada9d5..e4dece68c 100644
--- a/deploy/zookeeper/zookeeper-manually/quick-start-volume-emptyDir/zookeeper-3-nodes.yaml
+++ b/deploy/zookeeper/zookeeper-manually/quick-start-volume-emptyDir/zookeeper-3-nodes.yaml
@@ -94,7 +94,7 @@ spec:
containers:
- name: kubernetes-zookeeper
imagePullPolicy: IfNotPresent
- image: "docker.io/zookeeper:3.8.3"
+ image: "docker.io/zookeeper:3.8.4"
resources:
requests:
memory: "512M"
diff --git a/deploy/zookeeper/zookeeper-with-zookeeper-operator/zookeeper-operator-1-node-with-custom-probes.yaml b/deploy/zookeeper/zookeeper-with-zookeeper-operator/zookeeper-operator-1-node-with-custom-probes.yaml
index fc4834295..3a8d95a3c 100644
--- a/deploy/zookeeper/zookeeper-with-zookeeper-operator/zookeeper-operator-1-node-with-custom-probes.yaml
+++ b/deploy/zookeeper/zookeeper-with-zookeeper-operator/zookeeper-operator-1-node-with-custom-probes.yaml
@@ -453,7 +453,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.annotations['sidecar.istio.io/status']
- image: docker.io/zookeeper:3.8.3
+ image: docker.io/zookeeper:3.8.4
imagePullPolicy: Always
lifecycle:
preStop:
diff --git a/deploy/zookeeper/zookeeper-with-zookeeper-operator/zookeeper-operator-3-nodes-with-custom-probes.yaml b/deploy/zookeeper/zookeeper-with-zookeeper-operator/zookeeper-operator-3-nodes-with-custom-probes.yaml
index 4a6fdab58..b2268a8f2 100644
--- a/deploy/zookeeper/zookeeper-with-zookeeper-operator/zookeeper-operator-3-nodes-with-custom-probes.yaml
+++ b/deploy/zookeeper/zookeeper-with-zookeeper-operator/zookeeper-operator-3-nodes-with-custom-probes.yaml
@@ -453,7 +453,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.annotations['sidecar.istio.io/status']
- image: docker.io/zookeeper:3.8.3
+ image: docker.io/zookeeper:3.8.4
imagePullPolicy: Always
lifecycle:
preStop:
diff --git a/dev/generate_helm_chart.sh b/dev/generate_helm_chart.sh
index 2dd20e40b..7caef9137 100755
--- a/dev/generate_helm_chart.sh
+++ b/dev/generate_helm_chart.sh
@@ -4,7 +4,7 @@ function usage() {
cat << EOT
Script splits clickhouse-operator-install-bundle.yaml to separate files and adjusts them to conform the helm standards
NOTE script requires some pre-installed tools:
- - yq ( https://mikefarah.gitbook.io/yq/ ) > v4.14.x. Do not use brew install yq in MacOS,Version is lower than it.
+ - yq ( https://mikefarah.gitbook.io/yq/ ) > v4.14.x
- jq ( https://github.com/stedolan/jq )
- helm-docs ( https://github.com/norwoodj/helm-docs )
- perl ( https://learn.perl.org/installing/ )
diff --git a/dev/start_new_release_branch.sh b/dev/start_new_release_branch.sh
index 8ea53f39d..e9701eb83 100755
--- a/dev/start_new_release_branch.sh
+++ b/dev/start_new_release_branch.sh
@@ -34,7 +34,7 @@ NEW_RELEASE_MINOR=$(increment_version "${CUR_RELEASE}" 1)
NEW_RELEASE_PATCH=$(increment_version "${CUR_RELEASE}" 2)
echo "Starting new release."
echo "Current release: ${CUR_RELEASE}"
-echo "What would you like to start. Possible options:"
+echo "What would you like to start? Possible options:"
echo " 1 - new MAJOR version: ${NEW_RELEASE_MAJOR}"
echo " 2 - new MINOR version: ${NEW_RELEASE_MINOR}"
echo " 3 - new PATCH version: ${NEW_RELEASE_PATCH}"
diff --git a/dockerfile/metrics-exporter/Dockerfile b/dockerfile/metrics-exporter/Dockerfile
index e277e4612..597e250f9 100644
--- a/dockerfile/metrics-exporter/Dockerfile
+++ b/dockerfile/metrics-exporter/Dockerfile
@@ -2,7 +2,7 @@
# ===== Builder =====
# ===================
-FROM --platform=${BUILDPLATFORM} golang:1.21 AS builder
+FROM --platform=${BUILDPLATFORM} golang:1.23 AS builder
ARG TARGETOS
ARG TARGETARCH
@@ -34,7 +34,7 @@ RUN METRICS_EXPORTER_BIN=/tmp/metrics-exporter bash -xe ./dev/go_build_metrics_e
# ===================
# == Delve builder ==
# ===================
-FROM --platform=${BUILDPLATFORM} golang:1.19 AS delve-builder
+FROM --platform=${BUILDPLATFORM} golang:1.23 AS delve-builder
RUN CGO_ENABLED=0 GO111MODULE=on GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" \
go install -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv@latest && \
rm -rf /root/.cache/go-build/ /go/pkg/mod/
diff --git a/dockerfile/operator/Dockerfile b/dockerfile/operator/Dockerfile
index 142af615c..9be1d8211 100644
--- a/dockerfile/operator/Dockerfile
+++ b/dockerfile/operator/Dockerfile
@@ -2,7 +2,7 @@
# ===== Builder =====
# ===================
-FROM --platform=${BUILDPLATFORM} golang:1.21 AS builder
+FROM --platform=${BUILDPLATFORM} golang:1.23 AS builder
ARG TARGETOS
ARG TARGETARCH
@@ -34,7 +34,7 @@ RUN OPERATOR_BIN=/tmp/clickhouse-operator bash -xe ./dev/go_build_operator.sh
# ===================
# == Delve builder ==
# ===================
-FROM --platform=${BUILDPLATFORM} golang:1.19 AS delve-builder
+FROM --platform=${BUILDPLATFORM} golang:1.23 AS delve-builder
RUN CGO_ENABLED=0 GO111MODULE=on GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" \
go install -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv@latest && \
rm -rf /root/.cache/go-build/ /go/pkg/mod/
diff --git a/docs/chi-examples/70-chop-config.yaml b/docs/chi-examples/70-chop-config.yaml
index b8c2bcd8e..323773bee 100644
--- a/docs/chi-examples/70-chop-config.yaml
+++ b/docs/chi-examples/70-chop-config.yaml
@@ -66,7 +66,6 @@ spec:
# for:
# 1. Metrics requests
# 2. Schema maintenance
- # 3. DROP DNS CACHE
# User with such credentials can be specified in additional ClickHouse .xml config files,
# located in `chUsersConfigsPath` folder
username: "clickhouse_operator"
diff --git a/docs/chi_update_clickhouse_version.md b/docs/chi_update_clickhouse_version.md
index 2d1caa427..b9617c2f9 100644
--- a/docs/chi_update_clickhouse_version.md
+++ b/docs/chi_update_clickhouse_version.md
@@ -51,7 +51,7 @@ configmap/chi-06791a-deploy-confd-28a0-0-0 1 9s
configmap/chi-06791a-deploy-confd-28a0-0-1 1 9s
configmap/chi-06791a-deploy-confd-28a0-0-2 1 9s
```
-We expect all Pods to run ClickHouse version `19.1.10` as specified in [initial manifest][initial-manifest].
+We expect all Pods to run ClickHouse version `23.3.0` as specified in [initial manifest][initial-manifest].
Let's explore all Pods in order to check available ClickHouse version.
Navigate directly inside each Pod
@@ -59,29 +59,29 @@ Navigate directly inside each Pod
kubectl -n dev exec -it chi-06791a-28a0-0-0-0 -- clickhouse-client
```
```text
-ClickHouse client version 19.1.10.
+ClickHouse client version 23.3.0.
Connecting to localhost:9000.
-Connected to ClickHouse server version 19.1.10 revision 54413.
+Connected to ClickHouse server version 23.3.0 revision 54413.
```
Repeat for all Pods
```bash
kubectl -n dev exec -it chi-06791a-28a0-0-1-0 -- clickhouse-client
```
```text
-ClickHouse client version 19.1.10.
+ClickHouse client version 23.3.0.
Connecting to localhost:9000.
-Connected to ClickHouse server version 19.1.10 revision 54413.
+Connected to ClickHouse server version 23.3.0 revision 54413.
```
And the last Pod
```bash
kubectl -n dev exec -it chi-06791a-28a0-0-2-0 -- clickhouse-client
```
```text
-ClickHouse client version 19.1.10.
+ClickHouse client version 23.3.0.
Connecting to localhost:9000.
-Connected to ClickHouse server version 19.1.10 revision 54413.
+Connected to ClickHouse server version 23.3.0 revision 54413.
```
-All is fine, all Pods are running `19.1.10`
+All is fine, all Pods are running `23.3.0`
We'll make Version Update in two steps:
1. Update one ClickHouse instance (one Pod)
@@ -93,40 +93,40 @@ Now let's update version of only one instance of ClickHouse. Let it be the last
We can do by explicitly specifying `templates` with different ClickHouse version:
```yaml
templates:
- podTemplate: clickhouse:19.3.7
+ podTemplate: clickhouse:23.8.0
```
Manifest file with one ClickHouse instance update is [08-clickhouse-version-update-02-apply-update-one.yaml][08-clickhouse-version-update-02-apply-update-one.yaml]:
```bash
kubectl -n dev apply -f 08-clickhouse-version-update-02-apply-update-one.yaml
```
-And let's check what ClickHouse versions are running over the whole cluster. We expect the last instance to run specific version `19.3.7`. Check the first Pod:
+And let's check what ClickHouse versions are running over the whole cluster. We expect the last instance to run specific version `23.8.0`. Check the first Pod:
```bash
kubectl -n dev exec -it chi-06791a-28a0-0-0-0 -- clickhouse-client
```
```text
-ClickHouse client version 19.1.10.
+ClickHouse client version 23.3.0.
Connecting to localhost:9000.
-Connected to ClickHouse server version 19.1.10 revision 54413.
+Connected to ClickHouse server version 23.3.0 revision 54413.
```
The second Pod:
```bash
kubectl -n dev exec -it chi-06791a-28a0-0-1-0 -- clickhouse-client
```
```text
-ClickHouse client version 19.1.10.
+ClickHouse client version 23.3.0.
Connecting to localhost:9000.
-Connected to ClickHouse server version 19.1.10 revision 54413.
+Connected to ClickHouse server version 23.3.0 revision 54413.
```
And the most interesting part - the last one:
```bash
kubectl -n dev exec -it chi-06791a-28a0-0-2-0 -- clickhouse-client
```
```text
-ClickHouse client version 19.3.7.
+ClickHouse client version 23.8.0.
Connecting to localhost:9000 as user default.
-Connected to ClickHouse server version 19.3.7 revision 54415.
+Connected to ClickHouse server version 23.8.0 revision 54415.
```
-As we can see - it runs different, explicitly specified version `19.3.7`.
+As we can see - it runs different, explicitly specified version `23.8.0`.
All seems to be good. Let's update the whole cluster now.
## Update the whole cluster
@@ -136,32 +136,32 @@ Manifest file with all ClickHouse instance updated is [08-clickhouse-version-upd
```bash
kubectl -n dev apply -f 08-clickhouse-version-update-03-apply-update-all.yaml
```
-And let's check the results - we expect all Pods to have ClickHouse `19.3.7` running. The first Pod
+And let's check the results - we expect all Pods to have ClickHouse `23.8.0` running. The first Pod
```bash
kubectl -n dev exec -it chi-06791a-28a0-0-0-0 -- clickhouse-client
```
```text
-ClickHouse client version 19.3.7.
+ClickHouse client version 23.8.0.
Connecting to localhost:9000 as user default.
-Connected to ClickHouse server version 19.3.7 revision 54415.```
+Connected to ClickHouse server version 23.8.0 revision 54415.```
```
The second Pod
```bash
kubectl -n dev exec -it chi-06791a-28a0-0-1-0 -- clickhouse-client
```
```text
-ClickHouse client version 19.3.7.
+ClickHouse client version 23.8.0.
Connecting to localhost:9000 as user default.
-Connected to ClickHouse server version 19.3.7 revision 54415.
+Connected to ClickHouse server version 23.8.0 revision 54415.
```
And the last Pod
```bash
kubectl -n dev exec -it chi-06791a-28a0-0-2-0 -- clickhouse-client
```
```text
-ClickHouse client version 19.3.7.
+ClickHouse client version 23.8.0.
Connecting to localhost:9000 as user default.
-Connected to ClickHouse server version 19.3.7 revision 54415.
+Connected to ClickHouse server version 23.8.0 revision 54415.
```
All looks fine.
diff --git a/docs/chk-examples/02-extended-1-node.yaml b/docs/chk-examples/02-extended-1-node.yaml
index 28e481bb9..8a0b5bfae 100644
--- a/docs/chk-examples/02-extended-1-node.yaml
+++ b/docs/chk-examples/02-extended-1-node.yaml
@@ -25,6 +25,7 @@ spec:
templates:
# Templates are specified as default for all clusters
podTemplate: default
+ dataVolumeClaimTemplate: default
templates:
podTemplates:
@@ -33,7 +34,7 @@ spec:
containers:
- name: clickhouse-keeper
imagePullPolicy: IfNotPresent
- image: "clickhouse/clickhouse-keeper:24.3.5.46"
+ image: "clickhouse/clickhouse-keeper:latest"
resources:
requests:
memory: "256M"
diff --git a/docs/chk-examples/02-extended-3-nodes.yaml b/docs/chk-examples/02-extended-3-nodes.yaml
index da3cd3f68..e38389ade 100644
--- a/docs/chk-examples/02-extended-3-nodes.yaml
+++ b/docs/chk-examples/02-extended-3-nodes.yaml
@@ -25,6 +25,7 @@ spec:
templates:
# Templates are specified as default for all clusters
podTemplate: default
+ dataVolumeClaimTemplate: default
templates:
podTemplates:
@@ -44,7 +45,7 @@ spec:
containers:
- name: clickhouse-keeper
imagePullPolicy: IfNotPresent
- image: "clickhouse/clickhouse-keeper:24.3.5.46"
+ image: "clickhouse/clickhouse-keeper:latest"
resources:
requests:
memory: "256M"
diff --git a/docs/chk-examples/04-private-image-secret.yaml b/docs/chk-examples/04-private-image-secret.yaml
new file mode 100644
index 000000000..5b8eeb890
--- /dev/null
+++ b/docs/chk-examples/04-private-image-secret.yaml
@@ -0,0 +1,38 @@
+apiVersion: v1
+kind: Secret
+metadata:
+ name: my-registry-secret
+type: kubernetes.io/dockerconfigjson
+stringData:
+ .dockerconfigjson: |
+ {
+ "auths": {
+ "https://index.docker.io/v1/": {
+ "username": "your-login",
+ "password": "your-password"
+ }
+ }
+ }
+
+---
+apiVersion: clickhouse-keeper.altinity.com/v1
+kind: ClickHouseKeeperInstallation
+metadata:
+ name: custom-image
+spec:
+ defaults:
+ templates:
+ podTemplate: private-image
+ configuration:
+ clusters:
+ - name: keeper
+
+ templates:
+ podTemplates:
+ - name: private-image
+ spec:
+ imagePullSecrets:
+ - name: image-pull-secret
+ containers:
+ - name: clickhouse
+ image: registry/repo/clickhouse-keeper:latest
\ No newline at end of file
diff --git a/docs/chk-examples/clickhouse-keeper-1-node-for-test-only.yaml b/docs/chk-examples/clickhouse-keeper-1-node-for-test-only.yaml
index 6c1672289..818f0672d 100644
--- a/docs/chk-examples/clickhouse-keeper-1-node-for-test-only.yaml
+++ b/docs/chk-examples/clickhouse-keeper-1-node-for-test-only.yaml
@@ -1,46 +1,27 @@
----
-# Fake Service to drop-in replacement in tests
-apiVersion: v1
-kind: Service
-metadata:
- # DNS would be like zookeeper.namespace.svc
- name: zookeeper
- labels:
- app: zookeeper
-spec:
- ports:
- - port: 2181
- name: client
- - port: 7000
- name: prometheus
- selector:
- clickhouse-keeper.altinity.com/chk: clickhouse-keeper
- clickhouse-keeper.altinity.com/ready: "yes"
----
apiVersion: "clickhouse-keeper.altinity.com/v1"
kind: "ClickHouseKeeperInstallation"
metadata:
name: clickhouse-keeper
- labels:
- app: clickhouse-keeper
spec:
defaults:
templates:
+ podTemplate: clickhouse-keeper
volumeClaimTemplate: data-volume
- podTemplate: latest-with-volume-mounts
configuration:
clusters:
- - name: "test-only"
+ - name: test
layout:
replicasCount: 1
+ settings:
+ keeper_server/tcp_port: "2181"
templates:
podTemplates:
- - name: latest-with-volume-mounts
+ - name: clickhouse-keeper
spec:
containers:
- name: clickhouse-keeper
imagePullPolicy: Always
- image: "clickhouse/clickhouse-keeper:latest-alpine"
+ image: "clickhouse/clickhouse-keeper:24.8"
volumeClaimTemplates:
- name: data-volume
spec:
@@ -48,4 +29,22 @@ spec:
- ReadWriteOnce
resources:
requests:
- storage: 1Gi
+ storage: 100Mi
+---
+# Fake Service to drop-in replacement in tests
+apiVersion: v1
+kind: Service
+metadata:
+ name: zookeeper
+ labels:
+ clickhouse-keeper.altinity.com/app: chop
+ clickhouse-keeper.altinity.com/chk: clickhouse-keeper
+spec:
+ ports:
+ - port: 2181
+ name: client
+ - port: 7000
+ name: prometheus
+ selector:
+ clickhouse-keeper.altinity.com/chk: clickhouse-keeper
+ clickhouse-keeper.altinity.com/ready: "yes"
diff --git a/docs/chk-examples/clickhouse-keeper-3-node-for-test-only-version-24.yaml b/docs/chk-examples/clickhouse-keeper-3-node-for-test-only-version-24.yaml
deleted file mode 100644
index 8c0d8c905..000000000
--- a/docs/chk-examples/clickhouse-keeper-3-node-for-test-only-version-24.yaml
+++ /dev/null
@@ -1,60 +0,0 @@
----
-# Fake Service to drop-in replacement in tests
-apiVersion: v1
-kind: Service
-metadata:
- # DNS would be like zookeeper.namespace.svc
- name: zookeeper
- labels:
- app: zookeeper
-spec:
- ports:
- - port: 2181
- name: client
- - port: 7000
- name: prometheus
- selector:
- clickhouse-keeper.altinity.com/chk: clickhouse-keeper
- clickhouse-keeper.altinity.com/ready: "yes"
----
-apiVersion: "clickhouse-keeper.altinity.com/v1"
-kind: "ClickHouseKeeperInstallation"
-metadata:
- name: clickhouse-keeper
-spec:
- defaults:
- templates:
- podTemplate: default
- volumeClaimTemplate: default
- templates:
- podTemplates:
- - name: default
- spec:
- containers:
- - name: clickhouse-keeper
- imagePullPolicy: IfNotPresent
- # IMPORTANT !!!
- # clickhouse-keeper:24.3.5.46 version IS CHECKED IN TESTS and can be changed with TESTS only!
- # DO NOT CHANGE THE VERSION !
- image: "clickhouse/clickhouse-keeper:24.3.5.46"
- volumeClaimTemplates:
- - name: default
- spec:
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 1Gi
- configuration:
- clusters:
- - name: "test-only"
- layout:
- replicasCount: 3
- settings:
- logger/level: "trace"
- prometheus/endpoint: "/metrics"
- prometheus/port: "7000"
- prometheus/metrics: "true"
- prometheus/events: "true"
- prometheus/asynchronous_metrics: "true"
- prometheus/status_info: "false"
diff --git a/docs/chk-examples/clickhouse-keeper-3-node-for-test-only.yaml b/docs/chk-examples/clickhouse-keeper-3-node-for-test-only.yaml
index 67beb494c..3bbee607d 100644
--- a/docs/chk-examples/clickhouse-keeper-3-node-for-test-only.yaml
+++ b/docs/chk-examples/clickhouse-keeper-3-node-for-test-only.yaml
@@ -1,46 +1,27 @@
----
-# Fake Service to drop-in replacement in tests
-apiVersion: v1
-kind: Service
-metadata:
- # DNS would be like zookeeper.namespace.svc
- name: zookeeper
- labels:
- app: zookeeper
-spec:
- ports:
- - port: 2181
- name: client
- - port: 7000
- name: prometheus
- selector:
- clickhouse-keeper.altinity.com/chk: clickhouse-keeper
- clickhouse-keeper.altinity.com/ready: "yes"
----
apiVersion: "clickhouse-keeper.altinity.com/v1"
kind: "ClickHouseKeeperInstallation"
metadata:
name: clickhouse-keeper
- labels:
- app: clickhouse-keeper
spec:
defaults:
templates:
+ podTemplate: clickhouse-keeper
volumeClaimTemplate: data-volume
- podTemplate: latest-with-volume-mounts
configuration:
clusters:
- - name: "test-only"
+ - name: test
layout:
replicasCount: 3
+ settings:
+ keeper_server/tcp_port: "2181"
templates:
podTemplates:
- - name: latest-with-volume-mounts
+ - name: clickhouse-keeper
spec:
containers:
- name: clickhouse-keeper
imagePullPolicy: Always
- image: "clickhouse/clickhouse-keeper:latest-alpine"
+ image: "clickhouse/clickhouse-keeper:24.8"
volumeClaimTemplates:
- name: data-volume
spec:
@@ -48,4 +29,22 @@ spec:
- ReadWriteOnce
resources:
requests:
- storage: 1Gi
+ storage: 100Mi
+---
+# Fake Service to drop-in replacement in tests
+apiVersion: v1
+kind: Service
+metadata:
+ name: zookeeper
+ labels:
+ clickhouse-keeper.altinity.com/app: chop
+ clickhouse-keeper.altinity.com/chk: clickhouse-keeper
+spec:
+ ports:
+ - port: 2181
+ name: client
+ - port: 7000
+ name: prometheus
+ selector:
+ clickhouse-keeper.altinity.com/chk: clickhouse-keeper
+ clickhouse-keeper.altinity.com/ready: "yes"
\ No newline at end of file
diff --git a/docs/custom_resource_explained.md b/docs/custom_resource_explained.md
index 60944e9c8..648dbf079 100644
--- a/docs/custom_resource_explained.md
+++ b/docs/custom_resource_explained.md
@@ -440,42 +440,49 @@ Another example with selectively described replicas. Note - `replicasCount` spec
templates:
serviceTemplates:
- name: chi-service-template
- # generateName understands different sets of macroses,
+ # generateName understands different sets of macros,
# depending on the level of the object, for which Service is being created:
- #
- # For CHI-level Service:
- # 1. {chi} - ClickHouseInstallation name
- # 2. {chiID} - short hashed ClickHouseInstallation name (BEWARE, this is an experimental feature)
+ # For CHI/CHK-level Service:
+ # {chi} - ClickHouseInstallation name
+ # {chk} - ClickHouseKeeperInstallation name
+ # {chiID} - short hashed ClickHouseInstallation name
+ # {chkID} - short hashed ClickHouseKeeperInstallation name
#
# For Cluster-level Service:
- # 1. {chi} - ClickHouseInstallation name
- # 2. {chiID} - short hashed ClickHouseInstallation name (BEWARE, this is an experimental feature)
- # 3. {cluster} - cluster name
- # 4. {clusterID} - short hashed cluster name (BEWARE, this is an experimental feature)
- # 5. {clusterIndex} - 0-based index of the cluster in the CHI (BEWARE, this is an experimental feature)
+ # {chi} - ClickHouseInstallation name
+ # {chk} - ClickHouseKeeperInstallation name
+ # {chiID} - short hashed ClickHouseInstallation name
+ # {chkID} - short hashed ClickHouseKeeperInstallation name
+ # {cluster} - cluster name
+ # {clusterID} - short hashed cluster name (BEWARE, this is an experimental feature)
+ # {clusterIndex} - 0-based index of the cluster in the CHI (BEWARE, this is an experimental feature)
#
# For Shard-level Service:
- # 1. {chi} - ClickHouseInstallation name
- # 2. {chiID} - short hashed ClickHouseInstallation name (BEWARE, this is an experimental feature)
- # 3. {cluster} - cluster name
- # 4. {clusterID} - short hashed cluster name (BEWARE, this is an experimental feature)
- # 5. {clusterIndex} - 0-based index of the cluster in the CHI (BEWARE, this is an experimental feature)
- # 6. {shard} - shard name
- # 7. {shardID} - short hashed shard name (BEWARE, this is an experimental feature)
- # 8. {shardIndex} - 0-based index of the shard in the cluster (BEWARE, this is an experimental feature)
+ # {chi} - ClickHouseInstallation name
+ # {chk} - ClickHouseKeeperInstallation name
+ # {chiID} - short hashed ClickHouseInstallation name
+ # {chkID} - short hashed ClickHouseKeeperInstallation name
+ # {cluster} - cluster name
+ # {clusterID} - short hashed cluster name (BEWARE, this is an experimental feature)
+ # {clusterIndex} - 0-based index of the cluster in the CHI
+ # {shard} - shard name
+ # {shardID} - short hashed shard name (BEWARE, this is an experimental feature)
+ # {shardIndex} - 0-based index of the shard in the cluster
#
# For Replica-level Service:
- # 1. {chi} - ClickHouseInstallation name
- # 2. {chiID} - short hashed ClickHouseInstallation name (BEWARE, this is an experimental feature)
- # 3. {cluster} - cluster name
- # 4. {clusterID} - short hashed cluster name (BEWARE, this is an experimental feature)
- # 5. {clusterIndex} - 0-based index of the cluster in the CHI (BEWARE, this is an experimental feature)
- # 6. {shard} - shard name
- # 7. {shardID} - short hashed shard name (BEWARE, this is an experimental feature)
- # 8. {shardIndex} - 0-based index of the shard in the cluster (BEWARE, this is an experimental feature)
- # 9. {replica} - replica name
- # 10. {replicaID} - short hashed replica name (BEWARE, this is an experimental feature)
- # 11. {replicaIndex} - 0-based index of the replica in the shard (BEWARE, this is an experimental feature)
+ # {chi} - ClickHouseInstallation name
+ # {chk} - ClickHouseKeeperInstallation name
+ # {chiID} - short hashed ClickHouseInstallation name
+ # {chkID} - short hashed ClickHouseKeeperInstallation name
+ # {cluster} - cluster name
+ # {clusterID} - short hashed cluster name
+ # {clusterIndex} - 0-based index of the cluster in the CHI
+ # {shard} - shard name
+ # {shardID} - short hashed shard name (BEWARE, this is an experimental feature)
+ # {shardIndex} - 0-based index of the shard in the cluster
+ # {replica} - replica name
+ # {replicaID} - short hashed replica name
+ # {replicaIndex} - 0-based index of the replica in the shard
generateName: "service-{chi}"
# type ObjectMeta struct from k8s.io/meta/v1
metadata:
diff --git a/go.mod b/go.mod
index 5a3e18f3a..e6d1c223e 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/altinity/clickhouse-operator
-go 1.21
+go 1.23
replace (
github.com/emicklei/go-restful/v3 => github.com/emicklei/go-restful/v3 v3.10.0
diff --git a/pkg/announcer/announcer.go b/pkg/announcer/announcer.go
index 70b50c7bb..52697e711 100644
--- a/pkg/announcer/announcer.go
+++ b/pkg/announcer/announcer.go
@@ -44,14 +44,6 @@ type Announcer struct {
meta string
}
-// announcer which would be used in top-level functions, can be called as a 'default announcer'
-var announcer Announcer
-
-// init creates default announcer
-func init() {
- announcer = New()
-}
-
// skip specifies file name which to be skipped from address
const skip = "announcer.go"
@@ -69,11 +61,6 @@ func (a Announcer) Silence() Announcer {
return b
}
-// Silence produces silent announcer
-func Silence() Announcer {
- return announcer.Silence()
-}
-
// V is inspired by log.V()
func (a Announcer) V(level log.Level) Announcer {
b := a
@@ -81,11 +68,6 @@ func (a Announcer) V(level log.Level) Announcer {
return b
}
-// V is inspired by log.V()
-func V(level log.Level) Announcer {
- return announcer.V(level)
-}
-
// F adds function name
func (a Announcer) F() Announcer {
b := a
@@ -93,11 +75,6 @@ func (a Announcer) F() Announcer {
return b
}
-// F adds function name
-func F() Announcer {
- return announcer.F()
-}
-
// L adds line number
func (a Announcer) L() Announcer {
b := a
@@ -105,11 +82,6 @@ func (a Announcer) L() Announcer {
return b
}
-// L adds line number
-func L() Announcer {
- return announcer.L()
-}
-
// FL adds filename
func (a Announcer) FL() Announcer {
b := a
@@ -117,11 +89,6 @@ func (a Announcer) FL() Announcer {
return b
}
-// FL adds filename
-func FL() Announcer {
- return announcer.FL()
-}
-
// A adds full code address as 'file:line:function'
func (a Announcer) A() Announcer {
b := a
@@ -129,11 +96,6 @@ func (a Announcer) A() Announcer {
return b
}
-// A adds full code address as 'file:line:function'
-func A() Announcer {
- return announcer.A()
-}
-
// S adds 'start of the function' tag, which includes:
// file, line, function and start prefix
func (a Announcer) S() Announcer {
@@ -143,12 +105,6 @@ func (a Announcer) S() Announcer {
return b
}
-// S adds 'start of the function' tag, which includes:
-// file, line, function and start prefix
-func S() Announcer {
- return announcer.S()
-}
-
// E adds 'end of the function' tag, which includes:
// file, line, function and start prefix
func (a Announcer) E() Announcer {
@@ -158,12 +114,6 @@ func (a Announcer) E() Announcer {
return b
}
-// E adds 'end of the function' tag, which includes:
-// file, line, function and start prefix
-func E() Announcer {
- return announcer.E()
-}
-
// M adds object meta as 'namespace/name'
func (a Announcer) M(m ...interface{}) Announcer {
if len(m) == 0 {
@@ -199,21 +149,11 @@ func (a Announcer) M(m ...interface{}) Announcer {
return b
}
-// M adds object meta as 'namespace/name'
-func M(m ...interface{}) Announcer {
- return announcer.M(m...)
-}
-
// P triggers log to print line
func (a Announcer) P() {
a.Info("")
}
-// P triggers log to print line
-func P() {
- announcer.P()
-}
-
// Info is inspired by log.Infof()
func (a Announcer) Info(format string, args ...interface{}) {
// Produce classic log line
@@ -237,11 +177,6 @@ func (a Announcer) Info(format string, args ...interface{}) {
}
}
-// Info is inspired by log.Infof()
-func Info(format string, args ...interface{}) {
- announcer.Info(format, args...)
-}
-
// Warning is inspired by log.Warningf()
func (a Announcer) Warning(format string, args ...interface{}) {
// Produce classic log line
@@ -257,11 +192,6 @@ func (a Announcer) Warning(format string, args ...interface{}) {
}
}
-// Warning is inspired by log.Warningf()
-func Warning(format string, args ...interface{}) {
- announcer.Warning(format, args...)
-}
-
// Error is inspired by log.Errorf()
func (a Announcer) Error(format string, args ...interface{}) {
// Produce classic log line
@@ -277,11 +207,6 @@ func (a Announcer) Error(format string, args ...interface{}) {
}
}
-// Error is inspired by log.Errorf()
-func Error(format string, args ...interface{}) {
- announcer.Error(format, args...)
-}
-
// Fatal is inspired by log.Fatalf()
func (a Announcer) Fatal(format string, args ...interface{}) {
format = a.prependFormat(format)
@@ -293,11 +218,6 @@ func (a Announcer) Fatal(format string, args ...interface{}) {
}
}
-// Fatal is inspired by log.Fatalf()
-func Fatal(format string, args ...interface{}) {
- announcer.Fatal(format, args...)
-}
-
// prependFormat
func (a Announcer) prependFormat(format string) string {
// Result format is expected to be 'file:line:function:prefix:meta:_start_format_'
@@ -351,7 +271,7 @@ func (a Announcer) tryToFindNamespaceNameEverywhere(m interface{}) (string, bool
return "", false
}
-// findInObjectMeta
+// findNamespaceName
func (a Announcer) findNamespaceName(m interface{}) (string, bool) {
if m == nil {
return "", false
diff --git a/pkg/announcer/export.go b/pkg/announcer/export.go
new file mode 100644
index 000000000..22f1a8f35
--- /dev/null
+++ b/pkg/announcer/export.go
@@ -0,0 +1,99 @@
+// Copyright 2019 Altinity Ltd and/or its affiliates. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package announcer
+
+import (
+ log "github.com/golang/glog"
+)
+
+// announcer which would be used in top-level functions, can be called as a 'default announcer'
+var announcer Announcer
+
+// init creates default announcer
+func init() {
+ announcer = New()
+}
+
+// Silence produces silent announcer
+func Silence() Announcer {
+ return announcer.Silence()
+}
+
+// V is inspired by log.V()
+func V(level log.Level) Announcer {
+ return announcer.V(level)
+}
+
+// F adds function name
+func F() Announcer {
+ return announcer.F()
+}
+
+// L adds line number
+func L() Announcer {
+ return announcer.L()
+}
+
+// FL adds filename
+func FL() Announcer {
+ return announcer.FL()
+}
+
+// A adds full code address as 'file:line:function'
+func A() Announcer {
+ return announcer.A()
+}
+
+// S adds 'start of the function' tag, which includes:
+// file, line, function and start prefix
+func S() Announcer {
+ return announcer.S()
+}
+
+// E adds 'end of the function' tag, which includes:
+// file, line, function and start prefix
+func E() Announcer {
+ return announcer.E()
+}
+
+// M adds object meta as 'namespace/name'
+func M(m ...interface{}) Announcer {
+ return announcer.M(m...)
+}
+
+// P triggers log to print line
+func P() {
+ announcer.P()
+}
+
+// Info is inspired by log.Infof()
+func Info(format string, args ...interface{}) {
+ announcer.Info(format, args...)
+}
+
+// Warning is inspired by log.Warningf()
+func Warning(format string, args ...interface{}) {
+ announcer.Warning(format, args...)
+}
+
+// Error is inspired by log.Errorf()
+func Error(format string, args ...interface{}) {
+ announcer.Error(format, args...)
+}
+
+// Fatal is inspired by log.Fatalf()
+func Fatal(format string, args ...interface{}) {
+ announcer.Fatal(format, args...)
+}
diff --git a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_chk.go b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_chk.go
index d52406022..1a7dbfef1 100644
--- a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_chk.go
+++ b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_chk.go
@@ -27,10 +27,6 @@ import (
"github.com/altinity/clickhouse-operator/pkg/util"
)
-func (cr *ClickHouseKeeperInstallation) IsNonZero() bool {
- return cr != nil
-}
-
func (cr *ClickHouseKeeperInstallation) GetSpec() apiChi.ICRSpec {
return &cr.Spec
}
@@ -227,7 +223,9 @@ func (cr *ClickHouseKeeperInstallation) MergeFrom(from *ClickHouseKeeperInstalla
//cr.ensureRuntime().attributes = from.ensureRuntime().attributes
cr.EnsureStatus().CopyFrom(from.Status, types.CopyStatusOptions{
- InheritableFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupInheritable: true,
+ },
})
}
@@ -653,3 +651,11 @@ func (cr *ClickHouseKeeperInstallation) WalkTillError(
return nil
}
+
+func (cr *ClickHouseKeeperInstallation) IsZero() bool {
+ return cr == nil
+}
+
+func (cr *ClickHouseKeeperInstallation) IsNonZero() bool {
+ return cr != nil
+}
diff --git a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_cluster.go b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_cluster.go
index 45f25c1c6..ec4a084e9 100644
--- a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_cluster.go
+++ b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_cluster.go
@@ -189,6 +189,10 @@ func (cluster *Cluster) GetServiceTemplate() (*apiChi.ServiceTemplate, bool) {
return nil, false
}
+func (cluster *Cluster) GetAncestor() apiChi.ICluster {
+ return (*Cluster)(nil)
+}
+
// GetShard gets shard with specified index
func (cluster *Cluster) GetShard(shard int) *ChkShard {
return cluster.Layout.Shards[shard]
@@ -330,6 +334,14 @@ func (cluster *Cluster) HostsCount() int {
return count
}
+func (cluster *Cluster) IsZero() bool {
+ return cluster == nil
+}
+
+func (cluster *Cluster) IsNonZero() bool {
+ return cluster != nil
+}
+
// ChkClusterLayout defines layout section of .spec.configuration.clusters
type ChkClusterLayout struct {
ShardsCount int `json:"shardsCount,omitempty" yaml:"shardsCount,omitempty"`
diff --git a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_configuration.go b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_configuration.go
index 1636f2452..374196e7f 100644
--- a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_configuration.go
+++ b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_configuration.go
@@ -30,6 +30,10 @@ func NewConfiguration() *Configuration {
return new(Configuration)
}
+func (c *Configuration) GetUsers() *apiChi.Settings {
+ return nil
+}
+
func (c *Configuration) GetProfiles() *apiChi.Settings {
return nil
}
@@ -42,31 +46,14 @@ func (c *Configuration) GetSettings() *apiChi.Settings {
if c == nil {
return nil
}
-
return c.Settings
}
func (c *Configuration) GetFiles() *apiChi.Settings {
- return c.Files
-}
-
-func (c *Configuration) GetClusters() []*Cluster {
if c == nil {
return nil
}
-
- return c.Clusters
-}
-
-func (c *Configuration) GetCluster(i int) *Cluster {
- clusters := c.GetClusters()
- if clusters == nil {
- return nil
- }
- if i >= len(clusters) {
- return nil
- }
- return clusters[i]
+ return c.Files
}
// MergeFrom merges from specified source
diff --git a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_shard.go b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_shard.go
index 89ed9e15f..050ceca5c 100644
--- a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_shard.go
+++ b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_shard.go
@@ -175,6 +175,10 @@ func (shard *ChkShard) GetCHK() *ClickHouseKeeperInstallation {
return shard.Runtime.CHK
}
+func (shard *ChkShard) GetAncestor() apiChi.IShard {
+ return (*ChkShard)(nil)
+}
+
// GetCluster gets cluster of the shard
func (shard *ChkShard) GetCluster() *Cluster {
return shard.Runtime.CHK.GetSpecT().Configuration.Clusters[shard.Runtime.Address.ClusterIndex]
@@ -239,6 +243,14 @@ func (shard *ChkShard) GetTemplates() *apiChi.TemplatesList {
return shard.Templates
}
+func (shard *ChkShard) IsZero() bool {
+ return shard == nil
+}
+
+func (shard *ChkShard) IsNonZero() bool {
+ return shard != nil
+}
+
// ChiShardAddress defines address of a shard within ClickHouseInstallation
type ChkShardAddress struct {
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
diff --git a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_spec.go b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_spec.go
index 9a097628b..faa798fe5 100644
--- a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_spec.go
+++ b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_spec.go
@@ -31,27 +31,45 @@ type ChkSpec struct {
// HasTaskID checks whether task id is specified
func (spec *ChkSpec) HasTaskID() bool {
+ if spec == nil {
+ return false
+ }
return len(spec.TaskID.Value()) > 0
}
// GetTaskID gets task id as a string
func (spec *ChkSpec) GetTaskID() string {
+ if spec == nil {
+ return ""
+ }
return spec.TaskID.Value()
}
func (spec *ChkSpec) GetNamespaceDomainPattern() *types.String {
+ if spec == nil {
+ return (*types.String)(nil)
+ }
return spec.NamespaceDomainPattern
}
func (spec *ChkSpec) GetDefaults() *apiChi.Defaults {
+ if spec == nil {
+ return (*apiChi.Defaults)(nil)
+ }
return spec.Defaults
}
func (spec *ChkSpec) GetConfiguration() apiChi.IConfiguration {
+ if spec == nil {
+ return (*Configuration)(nil)
+ }
return spec.Configuration
}
func (spec *ChkSpec) GetTemplates() *apiChi.Templates {
+ if spec == nil {
+ return (*apiChi.Templates)(nil)
+ }
return spec.Templates
}
@@ -61,6 +79,10 @@ func (spec *ChkSpec) MergeFrom(from *ChkSpec, _type apiChi.MergeType) {
return
}
+ if spec == nil {
+ spec = &ChkSpec{}
+ }
+
switch _type {
case apiChi.MergeTypeFillEmptyValues:
if !spec.HasTaskID() {
diff --git a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_status.go b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_status.go
index 400440c9a..16356e13d 100644
--- a/pkg/apis/clickhouse-keeper.altinity.com/v1/type_status.go
+++ b/pkg/apis/clickhouse-keeper.altinity.com/v1/type_status.go
@@ -18,7 +18,7 @@ import (
"sort"
"sync"
- apiChi "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
+ chi "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
"github.com/altinity/clickhouse-operator/pkg/apis/common/types"
"github.com/altinity/clickhouse-operator/pkg/util"
"github.com/altinity/clickhouse-operator/pkg/version"
@@ -75,7 +75,7 @@ type Status struct {
NormalizedCR *ClickHouseKeeperInstallation `json:"normalized,omitempty" yaml:"normalized,omitempty"`
NormalizedCRCompleted *ClickHouseKeeperInstallation `json:"normalizedCompleted,omitempty" yaml:"normalizedCompleted,omitempty"`
HostsWithTablesCreated []string `json:"hostsWithTablesCreated,omitempty" yaml:"hostsWithTablesCreated,omitempty"`
- UsedTemplates []*apiChi.TemplateRef `json:"usedTemplates,omitempty" yaml:"usedTemplates,omitempty"`
+ UsedTemplates []*chi.TemplateRef `json:"usedTemplates,omitempty" yaml:"usedTemplates,omitempty"`
mu sync.RWMutex `json:"-" yaml:"-"`
}
@@ -135,6 +135,16 @@ func (s *Status) SetError(err string) {
})
}
+// PushError sets and pushes error into status
+func (s *Status) PushError(error string) {
+ doWithWriteLock(s, func(s *Status) {
+ s.Errors = append([]string{error}, s.Errors...)
+ if len(s.Errors) > maxErrors {
+ s.Errors = s.Errors[:maxErrors]
+ }
+ })
+}
+
// SetAndPushError sets and pushes error into status
func (s *Status) SetAndPushError(err string) {
doWithWriteLock(s, func(s *Status) {
@@ -166,11 +176,13 @@ func (s *Status) SyncHostTablesCreated() {
})
}
-// PushUsedTemplate pushes used template to the list of used templates
-func (s *Status) PushUsedTemplate(templateRef *apiChi.TemplateRef) {
- doWithWriteLock(s, func(s *Status) {
- s.UsedTemplates = append(s.UsedTemplates, templateRef)
- })
+// PushUsedTemplate pushes used templates to the list of used templates
+func (s *Status) PushUsedTemplate(templateRefs ...*chi.TemplateRef) {
+ if len(templateRefs) > 0 {
+ doWithWriteLock(s, func(s *Status) {
+ s.UsedTemplates = append(s.UsedTemplates, templateRefs...)
+ })
+ }
}
// GetUsedTemplatesCount gets used templates count
@@ -187,16 +199,6 @@ func (s *Status) SetAction(action string) {
})
}
-// HasNormalizedCRCompleted is a checker
-func (s *Status) HasNormalizedCRCompleted() bool {
- return s.GetNormalizedCRCompleted() != nil
-}
-
-// HasNormalizedCR is a checker
-func (s *Status) HasNormalizedCR() bool {
- return s.GetNormalizedCR() != nil
-}
-
// PushAction pushes action into status
func (s *Status) PushAction(action string) {
doWithWriteLock(s, func(s *Status) {
@@ -205,14 +207,14 @@ func (s *Status) PushAction(action string) {
})
}
-// PushError sets and pushes error into status
-func (s *Status) PushError(error string) {
- doWithWriteLock(s, func(s *Status) {
- s.Errors = append([]string{error}, s.Errors...)
- if len(s.Errors) > maxErrors {
- s.Errors = s.Errors[:maxErrors]
- }
- })
+// HasNormalizedCRCompleted is a checker
+func (s *Status) HasNormalizedCRCompleted() bool {
+ return s.GetNormalizedCRCompleted() != nil
+}
+
+// HasNormalizedCR is a checker
+func (s *Status) HasNormalizedCR() bool {
+ return s.GetNormalizedCR() != nil
}
// SetPodIPs sets pod IPs
@@ -322,6 +324,98 @@ func (s *Status) DeleteStart() {
})
}
+func prepareOptions(opts types.CopyStatusOptions) types.CopyStatusOptions {
+ if opts.FieldGroupInheritable {
+ opts.Copy.TaskIDsStarted = true
+ opts.Copy.TaskIDsCompleted = true
+ opts.Copy.Actions = true
+ opts.Copy.Errors = true
+ opts.Copy.HostsWithTablesCreated = true
+ opts.Copy.UsedTemplates = true
+ }
+
+ if opts.FieldGroupActions {
+ opts.Copy.Action = true
+ opts.Merge.Actions = true
+ opts.Copy.HostsWithTablesCreated = true
+ opts.Copy.UsedTemplates = true
+ }
+
+ if opts.FieldGroupErrors {
+ opts.Copy.Error = true
+ opts.Merge.Errors = true
+ }
+
+ if opts.FieldGroupMain {
+ opts.Copy.CHOpVersion = true
+ opts.Copy.CHOpCommit = true
+ opts.Copy.CHOpDate = true
+ opts.Copy.CHOpIP = true
+ opts.Copy.ClustersCount = true
+ opts.Copy.ShardsCount = true
+ opts.Copy.ReplicasCount = true
+ opts.Copy.HostsCount = true
+ opts.Copy.Status = true
+ opts.Copy.TaskID = true
+ opts.Copy.TaskIDsStarted = true
+ opts.Copy.TaskIDsCompleted = true
+ opts.Copy.Action = true
+ opts.Merge.Actions = true
+ opts.Copy.Error = true
+ opts.Copy.Errors = true
+ opts.Copy.HostsUpdatedCount = true
+ opts.Copy.HostsAddedCount = true
+ opts.Copy.HostsUnchangedCount = true
+ opts.Copy.HostsCompletedCount = true
+ opts.Copy.HostsDeletedCount = true
+ opts.Copy.HostsDeleteCount = true
+ opts.Copy.Pods = true
+ opts.Copy.PodIPs = true
+ opts.Copy.FQDNs = true
+ opts.Copy.Endpoint = true
+ opts.Copy.NormalizedCR = true
+ opts.Copy.UsedTemplates = true
+ }
+
+ if opts.FieldGroupNormalized {
+ opts.Copy.NormalizedCR = true
+ }
+
+ if opts.FieldGroupWholeStatus {
+ opts.Copy.CHOpVersion = true
+ opts.Copy.CHOpCommit = true
+ opts.Copy.CHOpDate = true
+ opts.Copy.CHOpIP = true
+ opts.Copy.ClustersCount = true
+ opts.Copy.ShardsCount = true
+ opts.Copy.ReplicasCount = true
+ opts.Copy.HostsCount = true
+ opts.Copy.Status = true
+ opts.Copy.TaskID = true
+ opts.Copy.TaskIDsStarted = true
+ opts.Copy.TaskIDsCompleted = true
+ opts.Copy.Action = true
+ opts.Merge.Actions = true
+ opts.Copy.Error = true
+ opts.Copy.Errors = true
+ opts.Copy.HostsUpdatedCount = true
+ opts.Copy.HostsAddedCount = true
+ opts.Copy.HostsUnchangedCount = true
+ opts.Copy.HostsCompletedCount = true
+ opts.Copy.HostsDeletedCount = true
+ opts.Copy.HostsDeleteCount = true
+ opts.Copy.Pods = true
+ opts.Copy.PodIPs = true
+ opts.Copy.FQDNs = true
+ opts.Copy.Endpoint = true
+ opts.Copy.NormalizedCR = true
+ opts.Copy.NormalizedCRCompleted = true
+ opts.Copy.UsedTemplates = true
+ }
+
+ return opts
+}
+
// CopyFrom copies the state of a given Status f into the receiver Status of the call.
func (s *Status) CopyFrom(f *Status, opts types.CopyStatusOptions) {
doWithWriteLock(s, func(s *Status) {
@@ -330,97 +424,109 @@ func (s *Status) CopyFrom(f *Status, opts types.CopyStatusOptions) {
return
}
- if opts.InheritableFields {
- s.TaskIDsStarted = from.TaskIDsStarted
- s.TaskIDsCompleted = from.TaskIDsCompleted
- s.Actions = from.Actions
- s.Errors = from.Errors
- s.HostsWithTablesCreated = from.HostsWithTablesCreated
- }
+ opts = prepareOptions(opts)
- if opts.Actions {
- s.Action = from.Action
- mergeActionsNoSync(s, from)
- s.HostsWithTablesCreated = nil
- if len(from.HostsWithTablesCreated) > 0 {
- s.HostsWithTablesCreated = append(s.HostsWithTablesCreated, from.HostsWithTablesCreated...)
- }
- s.UsedTemplates = nil
- if len(from.UsedTemplates) > 0 {
- s.UsedTemplates = append(s.UsedTemplates, from.UsedTemplates...)
- }
- }
-
- if opts.Errors {
- s.Error = from.Error
- s.Errors = util.MergeStringArrays(s.Errors, from.Errors)
- sort.Sort(sort.Reverse(sort.StringSlice(s.Errors)))
- }
-
- if opts.MainFields {
+ // Copy fields
+ if opts.Copy.CHOpVersion {
s.CHOpVersion = from.CHOpVersion
+ }
+ if opts.Copy.CHOpCommit {
s.CHOpCommit = from.CHOpCommit
+ }
+ if opts.Copy.CHOpDate {
s.CHOpDate = from.CHOpDate
+ }
+ if opts.Copy.CHOpIP {
s.CHOpIP = from.CHOpIP
+ }
+ if opts.Copy.ClustersCount {
s.ClustersCount = from.ClustersCount
+ }
+ if opts.Copy.ShardsCount {
s.ShardsCount = from.ShardsCount
+ }
+ if opts.Copy.ReplicasCount {
s.ReplicasCount = from.ReplicasCount
+ }
+ if opts.Copy.HostsCount {
s.HostsCount = from.HostsCount
+ }
+ if opts.Copy.Status {
s.Status = from.Status
+ }
+ if opts.Copy.TaskID {
s.TaskID = from.TaskID
+ }
+ if opts.Copy.TaskIDsStarted {
s.TaskIDsStarted = from.TaskIDsStarted
+ }
+ if opts.Copy.TaskIDsCompleted {
s.TaskIDsCompleted = from.TaskIDsCompleted
+ }
+ if opts.Copy.Action {
s.Action = from.Action
+ }
+ if opts.Merge.Actions {
mergeActionsNoSync(s, from)
+ }
+ if opts.Copy.Error {
s.Error = from.Error
+ }
+ if opts.Copy.Errors {
s.Errors = from.Errors
- s.HostsUpdatedCount = from.HostsUpdatedCount
- s.HostsAddedCount = from.HostsAddedCount
- s.HostsUnchangedCount = from.HostsUnchangedCount
- s.HostsCompletedCount = from.HostsCompletedCount
- s.HostsDeletedCount = from.HostsDeletedCount
- s.HostsDeleteCount = from.HostsDeleteCount
- s.Pods = from.Pods
- s.PodIPs = from.PodIPs
- s.FQDNs = from.FQDNs
- s.Endpoint = from.Endpoint
- s.NormalizedCR = from.NormalizedCR
}
-
- if opts.Normalized {
- s.NormalizedCR = from.NormalizedCR
+ if opts.Merge.Errors {
+ s.Errors = util.MergeStringArrays(s.Errors, from.Errors)
+ sort.Sort(sort.Reverse(sort.StringSlice(s.Errors)))
}
-
- if opts.WholeStatus {
- s.CHOpVersion = from.CHOpVersion
- s.CHOpCommit = from.CHOpCommit
- s.CHOpDate = from.CHOpDate
- s.CHOpIP = from.CHOpIP
- s.ClustersCount = from.ClustersCount
- s.ShardsCount = from.ShardsCount
- s.ReplicasCount = from.ReplicasCount
- s.HostsCount = from.HostsCount
- s.Status = from.Status
- s.TaskID = from.TaskID
- s.TaskIDsStarted = from.TaskIDsStarted
- s.TaskIDsCompleted = from.TaskIDsCompleted
- s.Action = from.Action
- mergeActionsNoSync(s, from)
- s.Error = from.Error
- s.Errors = from.Errors
+ if opts.Copy.HostsUpdatedCount {
s.HostsUpdatedCount = from.HostsUpdatedCount
+ }
+ if opts.Copy.HostsAddedCount {
s.HostsAddedCount = from.HostsAddedCount
+ }
+ if opts.Copy.HostsUnchangedCount {
s.HostsUnchangedCount = from.HostsUnchangedCount
+ }
+ if opts.Copy.HostsCompletedCount {
s.HostsCompletedCount = from.HostsCompletedCount
+ }
+ if opts.Copy.HostsDeletedCount {
s.HostsDeletedCount = from.HostsDeletedCount
+ }
+ if opts.Copy.HostsDeleteCount {
s.HostsDeleteCount = from.HostsDeleteCount
+ }
+ if opts.Copy.Pods {
s.Pods = from.Pods
+ }
+ if opts.Copy.PodIPs {
s.PodIPs = from.PodIPs
+ }
+ if opts.Copy.FQDNs {
s.FQDNs = from.FQDNs
+ }
+ if opts.Copy.Endpoint {
s.Endpoint = from.Endpoint
+ }
+ if opts.Copy.NormalizedCR {
s.NormalizedCR = from.NormalizedCR
+ }
+ if opts.Copy.NormalizedCRCompleted {
s.NormalizedCRCompleted = from.NormalizedCRCompleted
}
+ if opts.Copy.HostsWithTablesCreated {
+ s.HostsWithTablesCreated = nil
+ if len(from.HostsWithTablesCreated) > 0 {
+ s.HostsWithTablesCreated = append(s.HostsWithTablesCreated, from.HostsWithTablesCreated...)
+ }
+ }
+ if opts.Copy.UsedTemplates {
+ if len(from.UsedTemplates) > len(s.UsedTemplates) {
+ s.UsedTemplates = nil
+ s.UsedTemplates = append(s.UsedTemplates, from.UsedTemplates...)
+ }
+ }
})
})
}
diff --git a/pkg/apis/clickhouse.altinity.com/v1/interface.go b/pkg/apis/clickhouse.altinity.com/v1/interface.go
index 263ac3a75..09b6ad399 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/interface.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/interface.go
@@ -23,6 +23,7 @@ type ICustomResource interface {
meta.Object
IsNonZero() bool
+ IsZero() bool
GetSpecA() any
GetSpec() ICRSpec
@@ -67,6 +68,7 @@ type ICRSpec interface {
}
type IConfiguration interface {
+ GetUsers() *Settings
GetProfiles() *Settings
GetQuotas() *Settings
GetSettings() *Settings
@@ -100,6 +102,9 @@ type IStatus interface {
}
type ICluster interface {
+ IsNonZero() bool
+ IsZero() bool
+
GetName() string
GetZookeeper() *ZookeeperConfig
GetSchemaPolicy() *SchemaPolicy
@@ -120,6 +125,7 @@ type ICluster interface {
GetRuntime() IClusterRuntime
GetServiceTemplate() (*ServiceTemplate, bool)
+ GetAncestor() ICluster
}
type IClusterRuntime interface {
@@ -143,6 +149,9 @@ type IClusterAddress interface {
}
type IShard interface {
+ IsNonZero() bool
+ IsZero() bool
+
GetName() string
GetRuntime() IShardRuntime
GetServiceTemplate() (*ServiceTemplate, bool)
@@ -163,6 +172,7 @@ type IShard interface {
FirstHost() *Host
HostsCount() int
+ GetAncestor() IShard
}
type IShardRuntime interface {
diff --git a/pkg/apis/clickhouse.altinity.com/v1/type_chi.go b/pkg/apis/clickhouse.altinity.com/v1/type_chi.go
index 71727284d..f152842aa 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/type_chi.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/type_chi.go
@@ -26,10 +26,6 @@ import (
"github.com/altinity/clickhouse-operator/pkg/util"
)
-func (cr *ClickHouseInstallation) IsNonZero() bool {
- return cr != nil
-}
-
func (cr *ClickHouseInstallation) GetSpec() ICRSpec {
return &cr.Spec
}
@@ -226,7 +222,9 @@ func (cr *ClickHouseInstallation) MergeFrom(from *ClickHouseInstallation, _type
cr.ensureRuntime().attributes = from.ensureRuntime().attributes
cr.EnsureStatus().CopyFrom(from.Status, types.CopyStatusOptions{
- InheritableFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupInheritable: true,
+ },
})
}
@@ -681,3 +679,11 @@ func (cr *ClickHouseInstallation) WalkTillError(
return nil
}
+
+func (cr *ClickHouseInstallation) IsZero() bool {
+ return cr == nil
+}
+
+func (cr *ClickHouseInstallation) IsNonZero() bool {
+ return cr != nil
+}
diff --git a/pkg/apis/clickhouse.altinity.com/v1/type_cluster.go b/pkg/apis/clickhouse.altinity.com/v1/type_cluster.go
index f9f10a90f..f38686234 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/type_cluster.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/type_cluster.go
@@ -224,6 +224,10 @@ func (cluster *Cluster) GetCHI() *ClickHouseInstallation {
return cluster.Runtime.CHI
}
+func (cluster *Cluster) GetAncestor() ICluster {
+ return cluster.GetCHI().GetAncestor().FindCluster(cluster.GetName())
+}
+
// GetShard gets shard with specified index
func (cluster *Cluster) GetShard(shard int) *ChiShard {
return cluster.Layout.Shards[shard]
@@ -365,6 +369,14 @@ func (cluster *Cluster) HostsCount() int {
return count
}
+func (cluster *Cluster) IsZero() bool {
+ return cluster == nil
+}
+
+func (cluster *Cluster) IsNonZero() bool {
+ return cluster != nil
+}
+
// ChiClusterLayout defines layout section of .spec.configuration.clusters
type ChiClusterLayout struct {
ShardsCount int `json:"shardsCount,omitempty" yaml:"shardsCount,omitempty"`
diff --git a/pkg/apis/clickhouse.altinity.com/v1/type_configuration_chi.go b/pkg/apis/clickhouse.altinity.com/v1/type_configuration_chi.go
index 245c27c42..006b961d7 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/type_configuration_chi.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/type_configuration_chi.go
@@ -50,8 +50,7 @@ type Configuration struct {
Quotas *Settings `json:"quotas,omitempty" yaml:"quotas,omitempty"`
Settings *Settings `json:"settings,omitempty" yaml:"settings,omitempty"`
Files *Settings `json:"files,omitempty" yaml:"files,omitempty"`
- // TODO refactor into map[string]ChiCluster
- Clusters []*Cluster `json:"clusters,omitempty" yaml:"clusters,omitempty"`
+ Clusters []*Cluster `json:"clusters,omitempty" yaml:"clusters,omitempty"`
}
// NewConfiguration creates new Configuration objects
@@ -59,19 +58,38 @@ func NewConfiguration() *Configuration {
return new(Configuration)
}
+func (c *Configuration) GetUsers() *Settings {
+ if c == nil {
+ return nil
+ }
+ return c.Users
+}
+
func (c *Configuration) GetProfiles() *Settings {
+ if c == nil {
+ return nil
+ }
return c.Profiles
}
func (c *Configuration) GetQuotas() *Settings {
+ if c == nil {
+ return nil
+ }
return c.Quotas
}
func (c *Configuration) GetSettings() *Settings {
+ if c == nil {
+ return nil
+ }
return c.Settings
}
func (c *Configuration) GetFiles() *Settings {
+ if c == nil {
+ return nil
+ }
return c.Files
}
diff --git a/pkg/apis/clickhouse.altinity.com/v1/type_configuration_chop.go b/pkg/apis/clickhouse.altinity.com/v1/type_configuration_chop.go
index a4f631e09..302c5fb86 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/type_configuration_chop.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/type_configuration_chop.go
@@ -210,6 +210,24 @@ type OperatorConfigFileRuntime struct {
UsersConfigFiles map[string]string `json:"-" yaml:"-"`
}
+type IOperatorConfigFilesPathsGetter interface {
+ GetCommonConfigFiles() map[string]string
+ GetHostConfigFiles() map[string]string
+ GetUsersConfigFiles() map[string]string
+}
+
+func (r OperatorConfigFileRuntime) GetCommonConfigFiles() map[string]string {
+ return r.CommonConfigFiles
+}
+
+func (r OperatorConfigFileRuntime) GetHostConfigFiles() map[string]string {
+ return r.HostConfigFiles
+}
+
+func (r OperatorConfigFileRuntime) GetUsersConfigFiles() map[string]string {
+ return r.UsersConfigFiles
+}
+
// OperatorConfigUser specifies User section
type OperatorConfigUser struct {
Default OperatorConfigDefault `json:"default" yaml:"default"`
@@ -396,6 +414,21 @@ type OperatorConfigLabel struct {
} `json:"runtime" yaml:"runtime"`
}
+type OperatorConfigMetrics struct {
+ Labels struct {
+ Exclude []string `json:"exclude" yaml:"exclude"`
+ } `json:"labels" yaml:"labels"`
+}
+
+type OperatorConfigStatus struct {
+ Fields struct {
+ Action *types.StringBool `json:"action,omitempty" yaml:"action,omitempty"`
+ Actions *types.StringBool `json:"actions,omitempty" yaml:"actions,omitempty"`
+ Error *types.StringBool `json:"error,omitempty" yaml:"error,omitempty"`
+ Errors *types.StringBool `json:"errors,omitempty" yaml:"errors,omitempty"`
+ } `json:"fields" yaml:"fields"`
+}
+
type ConfigCRSource struct {
Namespace string
Name string
@@ -411,6 +444,8 @@ type OperatorConfig struct {
Reconcile OperatorConfigReconcile `json:"reconcile" yaml:"reconcile"`
Annotation OperatorConfigAnnotation `json:"annotation" yaml:"annotation"`
Label OperatorConfigLabel `json:"label" yaml:"label"`
+ Metrics OperatorConfigMetrics `json:"metrics" yaml:"metrics"`
+ Status OperatorConfigStatus `json:"status" yaml:"status"`
StatefulSet struct {
// Revision history limit
RevisionHistoryLimit int `json:"revisionHistoryLimit" yaml:"revisionHistoryLimit"`
diff --git a/pkg/apis/clickhouse.altinity.com/v1/type_defaults.go b/pkg/apis/clickhouse.altinity.com/v1/type_defaults.go
index 8da292d7f..96053df13 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/type_defaults.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/type_defaults.go
@@ -29,6 +29,13 @@ func NewDefaults() *Defaults {
return new(Defaults)
}
+func (d *Defaults) GetDistributedDDL() *DistributedDDL {
+ if d == nil {
+ return nil
+ }
+ return d.DistributedDDL
+}
+
// MergeFrom merges from specified object
func (defaults *Defaults) MergeFrom(from *Defaults, _type MergeType) *Defaults {
if from == nil {
diff --git a/pkg/apis/clickhouse.altinity.com/v1/type_host.go b/pkg/apis/clickhouse.altinity.com/v1/type_host.go
index 2af2add9e..2bb97a28e 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/type_host.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/type_host.go
@@ -74,21 +74,47 @@ type HostRuntime struct {
}
func (r *HostRuntime) GetAddress() IHostAddress {
+ if r == nil {
+ return (*HostAddress)(nil)
+ }
return &r.Address
}
func (r *HostRuntime) SetCR(cr ICustomResource) {
+ if r == nil {
+ return
+ }
r.cr = cr
}
func (r *HostRuntime) GetCR() ICustomResource {
- return r.cr.(ICustomResource)
+ if r == nil {
+ return nil
+ }
+ return r.cr
}
func (host *Host) GetRuntime() IHostRuntime {
+ if host == nil {
+ return (*HostRuntime)(nil)
+ }
return &host.Runtime
}
+func (host *Host) GetTemplates() *TemplatesList {
+ if host == nil {
+ return nil
+ }
+ return host.Templates
+}
+
+func (host *Host) SetTemplates(tl *TemplatesList) {
+ if host == nil {
+ return
+ }
+ host.Templates = tl
+}
+
// GetReconcileAttributes is an ensurer getter
func (host *Host) GetReconcileAttributes() *HostReconcileAttributes {
if host == nil {
@@ -102,6 +128,9 @@ func (host *Host) GetReconcileAttributes() *HostReconcileAttributes {
// InheritSettingsFrom inherits settings from specified shard and replica
func (host *Host) InheritSettingsFrom(shard IShard, replica IReplica) {
+ if host == nil {
+ return
+ }
if (shard != nil) && shard.HasSettings() {
host.Settings = host.Settings.MergeFrom(shard.GetSettings())
}
@@ -113,6 +142,9 @@ func (host *Host) InheritSettingsFrom(shard IShard, replica IReplica) {
// InheritFilesFrom inherits files from specified shard and replica
func (host *Host) InheritFilesFrom(shard IShard, replica IReplica) {
+ if host == nil {
+ return
+ }
if (shard != nil) && shard.HasFiles() {
host.Files = host.Files.MergeFrom(shard.GetFiles())
}
@@ -124,27 +156,30 @@ func (host *Host) InheritFilesFrom(shard IShard, replica IReplica) {
// InheritTemplatesFrom inherits templates from specified shard, replica or template
func (host *Host) InheritTemplatesFrom(sources ...any) {
+ if host == nil {
+ return
+ }
for _, source := range sources {
switch typed := source.(type) {
case IShard:
shard := typed
if shard.HasTemplates() {
- host.Templates = host.Templates.MergeFrom(shard.GetTemplates(), MergeTypeFillEmptyValues)
+ host.SetTemplates(host.GetTemplates().MergeFrom(shard.GetTemplates(), MergeTypeFillEmptyValues))
}
case IReplica:
replica := typed
if replica.HasTemplates() {
- host.Templates = host.Templates.MergeFrom(replica.GetTemplates(), MergeTypeFillEmptyValues)
+ host.SetTemplates(host.GetTemplates().MergeFrom(replica.GetTemplates(), MergeTypeFillEmptyValues))
}
case *HostTemplate:
template := typed
if template != nil {
- host.Templates = host.Templates.MergeFrom(template.Spec.Templates, MergeTypeFillEmptyValues)
+ host.SetTemplates(host.GetTemplates().MergeFrom(template.Spec.GetTemplates(), MergeTypeFillEmptyValues))
}
}
}
- host.Templates.HandleDeprecatedFields()
+ host.GetTemplates().HandleDeprecatedFields()
}
// MergeFrom merges from specified host
@@ -178,34 +213,34 @@ func (host *Host) MergeFrom(from *Host) {
host.RaftPort.MergeFrom(from.RaftPort)
}
- host.Templates = host.Templates.MergeFrom(from.Templates, MergeTypeFillEmptyValues)
- host.Templates.HandleDeprecatedFields()
+ host.SetTemplates(host.GetTemplates().MergeFrom(from.GetTemplates(), MergeTypeFillEmptyValues))
+ host.GetTemplates().HandleDeprecatedFields()
}
// GetHostTemplate gets host template
func (host *Host) GetHostTemplate() (*HostTemplate, bool) {
- if !host.Templates.HasHostTemplate() {
+ if !host.GetTemplates().HasHostTemplate() {
return nil, false
}
- name := host.Templates.GetHostTemplate()
+ name := host.GetTemplates().GetHostTemplate()
return host.GetCR().GetHostTemplate(name)
}
// GetPodTemplate gets pod template
func (host *Host) GetPodTemplate() (*PodTemplate, bool) {
- if !host.Templates.HasPodTemplate() {
+ if !host.GetTemplates().HasPodTemplate() {
return nil, false
}
- name := host.Templates.GetPodTemplate()
+ name := host.GetTemplates().GetPodTemplate()
return host.GetCR().GetPodTemplate(name)
}
// GetServiceTemplate gets service template
func (host *Host) GetServiceTemplate() (*ServiceTemplate, bool) {
- if !host.Templates.HasReplicaServiceTemplate() {
+ if !host.GetTemplates().HasReplicaServiceTemplate() {
return nil, false
}
- name := host.Templates.GetReplicaServiceTemplate()
+ name := host.GetTemplates().GetReplicaServiceTemplate()
return host.GetCR().GetServiceTemplate(name)
}
@@ -227,6 +262,9 @@ func (host *Host) GetStatefulSetReplicasNum(shutdown bool) *int32 {
// GetSettings gets settings
func (host *Host) GetSettings() *Settings {
+ if host == nil {
+ return nil
+ }
return host.Settings
}
@@ -557,3 +595,22 @@ func (host *Host) SetHasData(hasData bool) {
}
host.Runtime.hasData = hasData
}
+
+func (host *Host) IsZero() bool {
+ return host == nil
+}
+
+func (host *Host) IsNonZero() bool {
+ return host != nil
+}
+
+func (host *Host) ShouldIncludeIntoCluster() bool {
+ switch {
+ case host.IsStopped():
+ return false
+ case host.GetCluster().HostsCount() < 2:
+ return false
+ default:
+ return true
+ }
+}
diff --git a/pkg/apis/clickhouse.altinity.com/v1/type_host_reconcile_attributes.go b/pkg/apis/clickhouse.altinity.com/v1/type_host_reconcile_attributes.go
index 012c7b6b9..2a04dfc49 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/type_host_reconcile_attributes.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/type_host_reconcile_attributes.go
@@ -310,3 +310,7 @@ func (s *HostReconcileAttributesCounters) GetExclude() int {
func (s *HostReconcileAttributesCounters) AddOnly() bool {
return s.GetAdd() > 0 && s.GetFound() == 0 && s.GetModify() == 0 && s.GetRemove() == 0
}
+
+func (s *HostReconcileAttributesCounters) String() string {
+ return fmt.Sprintf("a: %d f: %d m: %d r: %d", s.GetAdd(), s.GetFound(), s.GetModify(), s.GetRemove())
+}
diff --git a/pkg/apis/clickhouse.altinity.com/v1/type_shard.go b/pkg/apis/clickhouse.altinity.com/v1/type_shard.go
index 22c07ae79..950a5d456 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/type_shard.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/type_shard.go
@@ -174,6 +174,10 @@ func (shard *ChiShard) GetCHI() *ClickHouseInstallation {
return shard.Runtime.CHI
}
+func (shard *ChiShard) GetAncestor() IShard {
+ return shard.GetCHI().GetAncestor().FindShard(shard.GetCluster().GetName(), shard.GetName())
+}
+
// GetCluster gets cluster of the shard
func (shard *ChiShard) GetCluster() *Cluster {
return shard.Runtime.CHI.GetSpecT().Configuration.Clusters[shard.Runtime.Address.ClusterIndex]
@@ -238,6 +242,14 @@ func (shard *ChiShard) GetTemplates() *TemplatesList {
return shard.Templates
}
+func (shard *ChiShard) IsZero() bool {
+ return shard == nil
+}
+
+func (shard *ChiShard) IsNonZero() bool {
+ return shard != nil
+}
+
// ChiShardAddress defines address of a shard within ClickHouseInstallation
type ChiShardAddress struct {
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
diff --git a/pkg/apis/clickhouse.altinity.com/v1/type_spec.go b/pkg/apis/clickhouse.altinity.com/v1/type_spec.go
index 11b50e4a5..1464d5da5 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/type_spec.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/type_spec.go
@@ -35,43 +35,73 @@ type ChiSpec struct {
// HasTaskID checks whether task id is specified
func (spec *ChiSpec) HasTaskID() bool {
+ if spec == nil {
+ return false
+ }
return len(spec.TaskID.Value()) > 0
}
// GetTaskID gets task id as a string
func (spec *ChiSpec) GetTaskID() string {
+ if spec == nil {
+ return ""
+ }
return spec.TaskID.Value()
}
func (spec *ChiSpec) GetStop() *types.StringBool {
+ if spec == nil {
+ return (*types.StringBool)(nil)
+ }
return spec.Stop
}
func (spec *ChiSpec) GetRestart() *types.String {
+ if spec == nil {
+ return (*types.String)(nil)
+ }
return spec.Restart
}
func (spec *ChiSpec) GetTroubleshoot() *types.StringBool {
+ if spec == nil {
+ return (*types.StringBool)(nil)
+ }
return spec.Troubleshoot
}
func (spec *ChiSpec) GetNamespaceDomainPattern() *types.String {
+ if spec == nil {
+ return (*types.String)(nil)
+ }
return spec.NamespaceDomainPattern
}
func (spec *ChiSpec) GetTemplating() *ChiTemplating {
+ if spec == nil {
+ return (*ChiTemplating)(nil)
+ }
return spec.Templating
}
func (spec *ChiSpec) GetDefaults() *Defaults {
+ if spec == nil {
+ return (*Defaults)(nil)
+ }
return spec.Defaults
}
func (spec *ChiSpec) GetConfiguration() IConfiguration {
+ if spec == nil {
+ return (*Configuration)(nil)
+ }
return spec.Configuration
}
func (spec *ChiSpec) GetTemplates() *Templates {
+ if spec == nil {
+ return (*Templates)(nil)
+ }
return spec.Templates
}
@@ -81,6 +111,10 @@ func (spec *ChiSpec) MergeFrom(from *ChiSpec, _type MergeType) {
return
}
+ if spec == nil {
+ spec = &ChiSpec{}
+ }
+
switch _type {
case MergeTypeFillEmptyValues:
if !spec.HasTaskID() {
diff --git a/pkg/apis/clickhouse.altinity.com/v1/type_status.go b/pkg/apis/clickhouse.altinity.com/v1/type_status.go
index bb5be021d..3f6709682 100644
--- a/pkg/apis/clickhouse.altinity.com/v1/type_status.go
+++ b/pkg/apis/clickhouse.altinity.com/v1/type_status.go
@@ -134,6 +134,16 @@ func (s *Status) SetError(err string) {
})
}
+// PushError sets and pushes error into status
+func (s *Status) PushError(error string) {
+ doWithWriteLock(s, func(s *Status) {
+ s.Errors = append([]string{error}, s.Errors...)
+ if len(s.Errors) > maxErrors {
+ s.Errors = s.Errors[:maxErrors]
+ }
+ })
+}
+
// SetAndPushError sets and pushes error into status
func (s *Status) SetAndPushError(err string) {
doWithWriteLock(s, func(s *Status) {
@@ -165,11 +175,13 @@ func (s *Status) SyncHostTablesCreated() {
})
}
-// PushUsedTemplate pushes used template to the list of used templates
-func (s *Status) PushUsedTemplate(templateRef *TemplateRef) {
- doWithWriteLock(s, func(s *Status) {
- s.UsedTemplates = append(s.UsedTemplates, templateRef)
- })
+// PushUsedTemplate pushes used templates to the list of used templates
+func (s *Status) PushUsedTemplate(templateRefs ...*TemplateRef) {
+ if len(templateRefs) > 0 {
+ doWithWriteLock(s, func(s *Status) {
+ s.UsedTemplates = append(s.UsedTemplates, templateRefs...)
+ })
+ }
}
// GetUsedTemplatesCount gets used templates count
@@ -186,16 +198,6 @@ func (s *Status) SetAction(action string) {
})
}
-// HasNormalizedCRCompleted is a checker
-func (s *Status) HasNormalizedCRCompleted() bool {
- return s.GetNormalizedCRCompleted() != nil
-}
-
-// HasNormalizedCR is a checker
-func (s *Status) HasNormalizedCR() bool {
- return s.GetNormalizedCR() != nil
-}
-
// PushAction pushes action into status
func (s *Status) PushAction(action string) {
doWithWriteLock(s, func(s *Status) {
@@ -204,14 +206,14 @@ func (s *Status) PushAction(action string) {
})
}
-// PushError sets and pushes error into status
-func (s *Status) PushError(error string) {
- doWithWriteLock(s, func(s *Status) {
- s.Errors = append([]string{error}, s.Errors...)
- if len(s.Errors) > maxErrors {
- s.Errors = s.Errors[:maxErrors]
- }
- })
+// HasNormalizedCRCompleted is a checker
+func (s *Status) HasNormalizedCRCompleted() bool {
+ return s.GetNormalizedCRCompleted() != nil
+}
+
+// HasNormalizedCR is a checker
+func (s *Status) HasNormalizedCR() bool {
+ return s.GetNormalizedCR() != nil
}
// SetPodIPs sets pod IPs
@@ -321,6 +323,98 @@ func (s *Status) DeleteStart() {
})
}
+func prepareOptions(opts types.CopyStatusOptions) types.CopyStatusOptions {
+ if opts.FieldGroupInheritable {
+ opts.Copy.TaskIDsStarted = true
+ opts.Copy.TaskIDsCompleted = true
+ opts.Copy.Actions = true
+ opts.Copy.Errors = true
+ opts.Copy.HostsWithTablesCreated = true
+ opts.Copy.UsedTemplates = true
+ }
+
+ if opts.FieldGroupActions {
+ opts.Copy.Action = true
+ opts.Merge.Actions = true
+ opts.Copy.HostsWithTablesCreated = true
+ opts.Copy.UsedTemplates = true
+ }
+
+ if opts.FieldGroupErrors {
+ opts.Copy.Error = true
+ opts.Merge.Errors = true
+ }
+
+ if opts.FieldGroupMain {
+ opts.Copy.CHOpVersion = true
+ opts.Copy.CHOpCommit = true
+ opts.Copy.CHOpDate = true
+ opts.Copy.CHOpIP = true
+ opts.Copy.ClustersCount = true
+ opts.Copy.ShardsCount = true
+ opts.Copy.ReplicasCount = true
+ opts.Copy.HostsCount = true
+ opts.Copy.Status = true
+ opts.Copy.TaskID = true
+ opts.Copy.TaskIDsStarted = true
+ opts.Copy.TaskIDsCompleted = true
+ opts.Copy.Action = true
+ opts.Merge.Actions = true
+ opts.Copy.Error = true
+ opts.Copy.Errors = true
+ opts.Copy.HostsUpdatedCount = true
+ opts.Copy.HostsAddedCount = true
+ opts.Copy.HostsUnchangedCount = true
+ opts.Copy.HostsCompletedCount = true
+ opts.Copy.HostsDeletedCount = true
+ opts.Copy.HostsDeleteCount = true
+ opts.Copy.Pods = true
+ opts.Copy.PodIPs = true
+ opts.Copy.FQDNs = true
+ opts.Copy.Endpoint = true
+ opts.Copy.NormalizedCR = true
+ opts.Copy.UsedTemplates = true
+ }
+
+ if opts.FieldGroupNormalized {
+ opts.Copy.NormalizedCR = true
+ }
+
+ if opts.FieldGroupWholeStatus {
+ opts.Copy.CHOpVersion = true
+ opts.Copy.CHOpCommit = true
+ opts.Copy.CHOpDate = true
+ opts.Copy.CHOpIP = true
+ opts.Copy.ClustersCount = true
+ opts.Copy.ShardsCount = true
+ opts.Copy.ReplicasCount = true
+ opts.Copy.HostsCount = true
+ opts.Copy.Status = true
+ opts.Copy.TaskID = true
+ opts.Copy.TaskIDsStarted = true
+ opts.Copy.TaskIDsCompleted = true
+ opts.Copy.Action = true
+ opts.Merge.Actions = true
+ opts.Copy.Error = true
+ opts.Copy.Errors = true
+ opts.Copy.HostsUpdatedCount = true
+ opts.Copy.HostsAddedCount = true
+ opts.Copy.HostsUnchangedCount = true
+ opts.Copy.HostsCompletedCount = true
+ opts.Copy.HostsDeletedCount = true
+ opts.Copy.HostsDeleteCount = true
+ opts.Copy.Pods = true
+ opts.Copy.PodIPs = true
+ opts.Copy.FQDNs = true
+ opts.Copy.Endpoint = true
+ opts.Copy.NormalizedCR = true
+ opts.Copy.NormalizedCRCompleted = true
+ opts.Copy.UsedTemplates = true
+ }
+
+ return opts
+}
+
// CopyFrom copies the state of a given Status f into the receiver Status of the call.
func (s *Status) CopyFrom(f *Status, opts types.CopyStatusOptions) {
doWithWriteLock(s, func(s *Status) {
@@ -329,97 +423,109 @@ func (s *Status) CopyFrom(f *Status, opts types.CopyStatusOptions) {
return
}
- if opts.InheritableFields {
- s.TaskIDsStarted = from.TaskIDsStarted
- s.TaskIDsCompleted = from.TaskIDsCompleted
- s.Actions = from.Actions
- s.Errors = from.Errors
- s.HostsWithTablesCreated = from.HostsWithTablesCreated
- }
+ opts = prepareOptions(opts)
- if opts.Actions {
- s.Action = from.Action
- mergeActionsNoSync(s, from)
- s.HostsWithTablesCreated = nil
- if len(from.HostsWithTablesCreated) > 0 {
- s.HostsWithTablesCreated = append(s.HostsWithTablesCreated, from.HostsWithTablesCreated...)
- }
- s.UsedTemplates = nil
- if len(from.UsedTemplates) > 0 {
- s.UsedTemplates = append(s.UsedTemplates, from.UsedTemplates...)
- }
- }
-
- if opts.Errors {
- s.Error = from.Error
- s.Errors = util.MergeStringArrays(s.Errors, from.Errors)
- sort.Sort(sort.Reverse(sort.StringSlice(s.Errors)))
- }
-
- if opts.MainFields {
+ // Copy fields
+ if opts.Copy.CHOpVersion {
s.CHOpVersion = from.CHOpVersion
+ }
+ if opts.Copy.CHOpCommit {
s.CHOpCommit = from.CHOpCommit
+ }
+ if opts.Copy.CHOpDate {
s.CHOpDate = from.CHOpDate
+ }
+ if opts.Copy.CHOpIP {
s.CHOpIP = from.CHOpIP
+ }
+ if opts.Copy.ClustersCount {
s.ClustersCount = from.ClustersCount
+ }
+ if opts.Copy.ShardsCount {
s.ShardsCount = from.ShardsCount
+ }
+ if opts.Copy.ReplicasCount {
s.ReplicasCount = from.ReplicasCount
+ }
+ if opts.Copy.HostsCount {
s.HostsCount = from.HostsCount
+ }
+ if opts.Copy.Status {
s.Status = from.Status
+ }
+ if opts.Copy.TaskID {
s.TaskID = from.TaskID
+ }
+ if opts.Copy.TaskIDsStarted {
s.TaskIDsStarted = from.TaskIDsStarted
+ }
+ if opts.Copy.TaskIDsCompleted {
s.TaskIDsCompleted = from.TaskIDsCompleted
+ }
+ if opts.Copy.Action {
s.Action = from.Action
+ }
+ if opts.Merge.Actions {
mergeActionsNoSync(s, from)
+ }
+ if opts.Copy.Error {
s.Error = from.Error
+ }
+ if opts.Copy.Errors {
s.Errors = from.Errors
- s.HostsUpdatedCount = from.HostsUpdatedCount
- s.HostsAddedCount = from.HostsAddedCount
- s.HostsUnchangedCount = from.HostsUnchangedCount
- s.HostsCompletedCount = from.HostsCompletedCount
- s.HostsDeletedCount = from.HostsDeletedCount
- s.HostsDeleteCount = from.HostsDeleteCount
- s.Pods = from.Pods
- s.PodIPs = from.PodIPs
- s.FQDNs = from.FQDNs
- s.Endpoint = from.Endpoint
- s.NormalizedCR = from.NormalizedCR
}
-
- if opts.Normalized {
- s.NormalizedCR = from.NormalizedCR
+ if opts.Merge.Errors {
+ s.Errors = util.MergeStringArrays(s.Errors, from.Errors)
+ sort.Sort(sort.Reverse(sort.StringSlice(s.Errors)))
}
-
- if opts.WholeStatus {
- s.CHOpVersion = from.CHOpVersion
- s.CHOpCommit = from.CHOpCommit
- s.CHOpDate = from.CHOpDate
- s.CHOpIP = from.CHOpIP
- s.ClustersCount = from.ClustersCount
- s.ShardsCount = from.ShardsCount
- s.ReplicasCount = from.ReplicasCount
- s.HostsCount = from.HostsCount
- s.Status = from.Status
- s.TaskID = from.TaskID
- s.TaskIDsStarted = from.TaskIDsStarted
- s.TaskIDsCompleted = from.TaskIDsCompleted
- s.Action = from.Action
- mergeActionsNoSync(s, from)
- s.Error = from.Error
- s.Errors = from.Errors
+ if opts.Copy.HostsUpdatedCount {
s.HostsUpdatedCount = from.HostsUpdatedCount
+ }
+ if opts.Copy.HostsAddedCount {
s.HostsAddedCount = from.HostsAddedCount
+ }
+ if opts.Copy.HostsUnchangedCount {
s.HostsUnchangedCount = from.HostsUnchangedCount
+ }
+ if opts.Copy.HostsCompletedCount {
s.HostsCompletedCount = from.HostsCompletedCount
+ }
+ if opts.Copy.HostsDeletedCount {
s.HostsDeletedCount = from.HostsDeletedCount
+ }
+ if opts.Copy.HostsDeleteCount {
s.HostsDeleteCount = from.HostsDeleteCount
+ }
+ if opts.Copy.Pods {
s.Pods = from.Pods
+ }
+ if opts.Copy.PodIPs {
s.PodIPs = from.PodIPs
+ }
+ if opts.Copy.FQDNs {
s.FQDNs = from.FQDNs
+ }
+ if opts.Copy.Endpoint {
s.Endpoint = from.Endpoint
+ }
+ if opts.Copy.NormalizedCR {
s.NormalizedCR = from.NormalizedCR
+ }
+ if opts.Copy.NormalizedCRCompleted {
s.NormalizedCRCompleted = from.NormalizedCRCompleted
}
+ if opts.Copy.HostsWithTablesCreated {
+ s.HostsWithTablesCreated = nil
+ if len(from.HostsWithTablesCreated) > 0 {
+ s.HostsWithTablesCreated = append(s.HostsWithTablesCreated, from.HostsWithTablesCreated...)
+ }
+ }
+ if opts.Copy.UsedTemplates {
+ if len(from.UsedTemplates) > len(s.UsedTemplates) {
+ s.UsedTemplates = nil
+ s.UsedTemplates = append(s.UsedTemplates, from.UsedTemplates...)
+ }
+ }
})
})
}
diff --git a/pkg/apis/common/types/status_options.go b/pkg/apis/common/types/status_options.go
index cbab9cbbb..697a523cd 100644
--- a/pkg/apis/common/types/status_options.go
+++ b/pkg/apis/common/types/status_options.go
@@ -16,12 +16,22 @@ package types
// CopyStatusOptions specifies what parts to copy in status
type CopyStatusOptions struct {
- Actions bool
- Errors bool
- Normalized bool
- MainFields bool
- WholeStatus bool
- InheritableFields bool
+ CopyStatusFieldGroup
+ CopyStatusField
+}
+
+type CopyStatusFieldGroup struct {
+ FieldGroupActions bool
+ FieldGroupErrors bool
+ FieldGroupNormalized bool
+ FieldGroupMain bool
+ FieldGroupWholeStatus bool
+ FieldGroupInheritable bool
+}
+
+type CopyStatusField struct {
+ Copy Status
+ Merge Status
}
// UpdateStatusOptions defines how to update CHI status
@@ -29,3 +39,37 @@ type UpdateStatusOptions struct {
CopyStatusOptions
TolerateAbsence bool
}
+
+type Status struct {
+ CHOpVersion bool
+ CHOpCommit bool
+ CHOpDate bool
+ CHOpIP bool
+ ClustersCount bool
+ ShardsCount bool
+ ReplicasCount bool
+ HostsCount bool
+ Status bool
+ TaskID bool
+ TaskIDsStarted bool
+ TaskIDsCompleted bool
+ Action bool
+ Actions bool
+ Error bool
+ Errors bool
+ HostsUpdatedCount bool
+ HostsAddedCount bool
+ HostsUnchangedCount bool
+ HostsFailedCount bool
+ HostsCompletedCount bool
+ HostsDeletedCount bool
+ HostsDeleteCount bool
+ Pods bool
+ PodIPs bool
+ FQDNs bool
+ Endpoint bool
+ NormalizedCR bool
+ NormalizedCRCompleted bool
+ HostsWithTablesCreated bool
+ UsedTemplates bool
+}
diff --git a/pkg/apis/metrics/watched_chi.go b/pkg/apis/metrics/watched_resource.go
similarity index 64%
rename from pkg/apis/metrics/watched_chi.go
rename to pkg/apis/metrics/watched_resource.go
index 40ab02fbd..22110450c 100644
--- a/pkg/apis/metrics/watched_chi.go
+++ b/pkg/apis/metrics/watched_resource.go
@@ -20,8 +20,8 @@ import (
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
)
-// WatchedCHI specifies watched ClickHouseInstallation
-type WatchedCHI struct {
+// WatchedCR specifies watched ClickHouseInstallation
+type WatchedCR struct {
Namespace string `json:"namespace"`
Name string `json:"name"`
Labels map[string]string `json:"labels"`
@@ -45,87 +45,87 @@ type WatchedHost struct {
HTTPSPort int32 `json:"httpsPort,omitempty" yaml:"httpsPort,omitempty"`
}
-// NewWatchedCHI creates new watched CHI
-func NewWatchedCHI(cr api.ICustomResource) *WatchedCHI {
- chi := &WatchedCHI{}
- chi.readFrom(cr)
- return chi
+// NewWatchedCR creates new watched CR
+func NewWatchedCR(src api.ICustomResource) *WatchedCR {
+ cr := &WatchedCR{}
+ cr.readFrom(src)
+ return cr
}
-func (chi *WatchedCHI) readFrom(cr api.ICustomResource) {
- if chi == nil {
+func (cr *WatchedCR) readFrom(src api.ICustomResource) {
+ if cr == nil {
return
}
- chi.Namespace = cr.GetNamespace()
- chi.Name = cr.GetName()
- chi.Labels = cr.GetLabels()
- chi.Annotations = cr.GetAnnotations()
+ cr.Namespace = src.GetNamespace()
+ cr.Name = src.GetName()
+ cr.Labels = src.GetLabels()
+ cr.Annotations = src.GetAnnotations()
- cr.WalkClusters(func(cl api.ICluster) error {
+ src.WalkClusters(func(cl api.ICluster) error {
cluster := &WatchedCluster{}
cluster.readFrom(cl)
- chi.Clusters = append(chi.Clusters, cluster)
+ cr.Clusters = append(cr.Clusters, cluster)
return nil
})
}
-func (chi *WatchedCHI) IsValid() bool {
- return !chi.empty()
+func (cr *WatchedCR) IsValid() bool {
+ return !cr.empty()
}
-func (chi *WatchedCHI) empty() bool {
- return (len(chi.Namespace) == 0) && (len(chi.Name) == 0) && (len(chi.Clusters) == 0)
+func (cr *WatchedCR) empty() bool {
+ return (len(cr.Namespace) == 0) && (len(cr.Name) == 0) && (len(cr.Clusters) == 0)
}
-func (chi *WatchedCHI) IndexKey() string {
- return chi.Namespace + ":" + chi.Name
+func (cr *WatchedCR) IndexKey() string {
+ return cr.Namespace + ":" + cr.Name
}
-func (chi *WatchedCHI) WalkHosts(f func(*WatchedCHI, *WatchedCluster, *WatchedHost)) {
- if chi == nil {
+func (cr *WatchedCR) WalkHosts(f func(*WatchedCR, *WatchedCluster, *WatchedHost)) {
+ if cr == nil {
return
}
- for _, cluster := range chi.Clusters {
+ for _, cluster := range cr.Clusters {
for _, host := range cluster.Hosts {
- f(chi, cluster, host)
+ f(cr, cluster, host)
}
}
}
-func (chi *WatchedCHI) GetName() string {
- if chi == nil {
+func (cr *WatchedCR) GetName() string {
+ if cr == nil {
return ""
}
- return chi.Name
+ return cr.Name
}
-func (chi *WatchedCHI) GetNamespace() string {
- if chi == nil {
+func (cr *WatchedCR) GetNamespace() string {
+ if cr == nil {
return ""
}
- return chi.Namespace
+ return cr.Namespace
}
-func (chi *WatchedCHI) GetLabels() map[string]string {
- if chi == nil {
+func (cr *WatchedCR) GetLabels() map[string]string {
+ if cr == nil {
return nil
}
- return chi.Labels
+ return cr.Labels
}
-func (chi *WatchedCHI) GetAnnotations() map[string]string {
- if chi == nil {
+func (cr *WatchedCR) GetAnnotations() map[string]string {
+ if cr == nil {
return nil
}
- return chi.Annotations
+ return cr.Annotations
}
// String is a stringifier
-func (chi *WatchedCHI) String() string {
- if chi == nil {
+func (cr *WatchedCR) String() string {
+ if cr == nil {
return "nil"
}
- bytes, _ := json.Marshal(chi)
+ bytes, _ := json.Marshal(cr)
return string(bytes)
}
diff --git a/pkg/controller/chi/cmd_queue/type_cmd_queue.go b/pkg/controller/chi/cmd_queue/type_cmd_queue.go
index 69d66836b..135247ead 100644
--- a/pkg/controller/chi/cmd_queue/type_cmd_queue.go
+++ b/pkg/controller/chi/cmd_queue/type_cmd_queue.go
@@ -15,10 +15,8 @@
package cmd_queue
import (
- core "k8s.io/api/core/v1"
- meta "k8s.io/apimachinery/pkg/apis/meta/v1"
-
"github.com/altinity/queue"
+ core "k8s.io/api/core/v1"
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
)
@@ -44,7 +42,6 @@ const (
priorityReconcileCHIT int = 5
priorityReconcileChopConfig int = 3
priorityReconcileEndpoints int = 15
- priorityDropDNS int = 7
)
// ReconcileCHI specifies reconcile request queue item
@@ -197,32 +194,6 @@ func NewReconcileEndpoints(cmd string, old, new *core.Endpoints) *ReconcileEndpo
}
}
-// DropDns specifies drop dns queue item
-type DropDns struct {
- PriorityQueueItem
- Initiator meta.Object
-}
-
-var _ queue.PriorityQueueItem = &DropDns{}
-
-// Handle returns handle of the queue item
-func (r DropDns) Handle() queue.T {
- if r.Initiator != nil {
- return "DropDNS" + ":" + r.Initiator.GetNamespace() + "/" + r.Initiator.GetName()
- }
- return ""
-}
-
-// NewDropDns creates new drop dns queue item
-func NewDropDns(initiator meta.Object) *DropDns {
- return &DropDns{
- PriorityQueueItem: PriorityQueueItem{
- priority: priorityDropDNS,
- },
- Initiator: initiator,
- }
-}
-
// ReconcilePod specifies pod reconcile
type ReconcilePod struct {
PriorityQueueItem
diff --git a/pkg/controller/chi/controller.go b/pkg/controller/chi/controller.go
index a433a14c3..1bfaf0cef 100644
--- a/pkg/controller/chi/controller.go
+++ b/pkg/controller/chi/controller.go
@@ -358,7 +358,6 @@ func (c *Controller) addEventHandlersEndpoint(
log.V(3).M(newEndpoints).Info("endpointsInformer.UpdateFunc")
if updated(oldEndpoints, newEndpoints) {
c.enqueueObject(cmd_queue.NewReconcileEndpoints(cmd_queue.ReconcileUpdate, oldEndpoints, newEndpoints))
- c.enqueueObject(cmd_queue.NewDropDns(&newEndpoints.ObjectMeta))
}
},
DeleteFunc: func(obj interface{}) {
@@ -603,8 +602,7 @@ func (c *Controller) enqueueObject(obj queue.PriorityQueueItem) {
*cmd_queue.ReconcileCHIT,
*cmd_queue.ReconcileChopConfig,
*cmd_queue.ReconcileEndpoints,
- *cmd_queue.ReconcilePod,
- *cmd_queue.DropDns:
+ *cmd_queue.ReconcilePod:
variants := api.DefaultReconcileSystemThreadsNumber
index = util.HashIntoIntTopped(handle, variants)
enqueue = true
@@ -617,12 +615,12 @@ func (c *Controller) enqueueObject(obj queue.PriorityQueueItem) {
// updateWatch
func (c *Controller) updateWatch(chi *api.ClickHouseInstallation) {
- watched := metrics.NewWatchedCHI(chi)
+ watched := metrics.NewWatchedCR(chi)
go c.updateWatchAsync(watched)
}
// updateWatchAsync
-func (c *Controller) updateWatchAsync(chi *metrics.WatchedCHI) {
+func (c *Controller) updateWatchAsync(chi *metrics.WatchedCR) {
if err := clickhouse.InformMetricsExporterAboutWatchedCHI(chi); err != nil {
log.V(1).F().Info("FAIL update watch (%s/%s): %q", chi.Namespace, chi.Name, err)
} else {
@@ -632,12 +630,12 @@ func (c *Controller) updateWatchAsync(chi *metrics.WatchedCHI) {
// deleteWatch
func (c *Controller) deleteWatch(chi *api.ClickHouseInstallation) {
- watched := metrics.NewWatchedCHI(chi)
+ watched := metrics.NewWatchedCR(chi)
go c.deleteWatchAsync(watched)
}
// deleteWatchAsync
-func (c *Controller) deleteWatchAsync(chi *metrics.WatchedCHI) {
+func (c *Controller) deleteWatchAsync(chi *metrics.WatchedCR) {
if err := clickhouse.InformMetricsExporterToDeleteWatchedCHI(chi); err != nil {
log.V(1).F().Info("FAIL delete watch (%s/%s): %q", chi.Namespace, chi.Name, err)
} else {
diff --git a/pkg/controller/chi/metrics/interface.go b/pkg/controller/chi/metrics/interface.go
new file mode 100644
index 000000000..1fb2d5182
--- /dev/null
+++ b/pkg/controller/chi/metrics/interface.go
@@ -0,0 +1,22 @@
+// Copyright 2019 Altinity Ltd and/or its affiliates. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package metrics
+
+type labelsSource interface {
+ GetName() string
+ GetNamespace() string
+ GetLabels() map[string]string
+ GetAnnotations() map[string]string
+}
diff --git a/pkg/controller/chi/metrics/labels.go b/pkg/controller/chi/metrics/labels.go
new file mode 100644
index 000000000..aed84f963
--- /dev/null
+++ b/pkg/controller/chi/metrics/labels.go
@@ -0,0 +1,53 @@
+// Copyright 2019 Altinity Ltd and/or its affiliates. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package metrics
+
+import (
+ "go.opentelemetry.io/otel/attribute"
+ "go.opentelemetry.io/otel/metric"
+
+ "github.com/altinity/clickhouse-operator/pkg/chop"
+ "github.com/altinity/clickhouse-operator/pkg/metrics/operator"
+ "github.com/altinity/clickhouse-operator/pkg/util"
+)
+
+func labels(src labelsSource) metric.MeasurementOption {
+ return metric.WithAttributes(prepareLabels(src)...)
+}
+
+func prepareLabels(cr labelsSource) []attribute.KeyValue {
+ // Prepare base set of labels
+ labels := getBaseLabels(cr)
+ // Append particular metric labels
+ // not yet...
+ // Filter out metrics to be skipped
+ labels = util.CopyMapFilter(
+ labels,
+ nil,
+ chop.Config().Metrics.Labels.Exclude,
+ )
+ return convert(labels)
+}
+
+func getBaseLabels(cr labelsSource) map[string]string {
+ return operator.GetLabelsFromSource(cr)
+}
+
+func convert(labels map[string]string) (attributes []attribute.KeyValue) {
+ for name, value := range labels {
+ attributes = append(attributes, attribute.String(name, value))
+ }
+ return attributes
+}
diff --git a/pkg/controller/chi/metrics/metrics.go b/pkg/controller/chi/metrics/metrics.go
index 671f3ce6c..c3e221128 100644
--- a/pkg/controller/chi/metrics/metrics.go
+++ b/pkg/controller/chi/metrics/metrics.go
@@ -17,7 +17,6 @@ package metrics
import (
"context"
- "go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/metric"
"github.com/altinity/clickhouse-operator/pkg/metrics/operator"
@@ -31,7 +30,7 @@ type Metrics struct {
// In ideal world number of completed reconciles should be equal to CHIReconcilesStarted
CHIReconcilesCompleted metric.Int64Counter
// CHIReconcilesAborted is a number (counter) of explicitly aborted CHI reconciles.
- // This counter does not includes reconciles that we not completed due to external rasons, such as operator restart
+ // This counter does not includes reconciles that we not completed due to external reasons, such as operator restart
CHIReconcilesAborted metric.Int64Counter
// CHIReconcilesTimings is a histogram of durations of successfully completed CHI reconciles
CHIReconcilesTimings metric.Float64Histogram
@@ -53,8 +52,6 @@ type Metrics struct {
PodDeleteEvents metric.Int64Counter
}
-var m *Metrics
-
func createMetrics() *Metrics {
// The unit u should be defined using the appropriate [UCUM](https://ucum.org) case-sensitive code.
CHIReconcilesStarted, _ := operator.Meter().Int64Counter(
@@ -138,6 +135,8 @@ func createMetrics() *Metrics {
}
}
+var m *Metrics
+
func ensureMetrics() *Metrics {
if m == nil {
m = createMetrics()
@@ -145,66 +144,48 @@ func ensureMetrics() *Metrics {
return m
}
-type BaseInfoGetter interface {
- GetName() string
- GetNamespace() string
- GetLabels() map[string]string
- GetAnnotations() map[string]string
-}
-
-func prepareLabels(cr BaseInfoGetter) (attributes []attribute.KeyValue) {
- labels, values := operator.GetMandatoryLabelsAndValues(cr)
- for i := range labels {
- label := labels[i]
- value := values[i]
- attributes = append(attributes, attribute.String(label, value))
- }
-
- return attributes
-}
-
-// metricsCHIInitZeroValues initializes all metrics for CHI to zero values if not already present with appropriate labels
+// CHIInitZeroValues initializes all metrics for CHI to zero values if not already present with appropriate labels
//
// This is due to `rate` prometheus function limitation where it expects the metric to be 0-initialized with all possible labels
// and doesn't default to 0 if the metric is not present.
-func CHIInitZeroValues(ctx context.Context, chi BaseInfoGetter) {
- ensureMetrics().CHIReconcilesStarted.Add(ctx, 0, metric.WithAttributes(prepareLabels(chi)...))
- ensureMetrics().CHIReconcilesCompleted.Add(ctx, 0, metric.WithAttributes(prepareLabels(chi)...))
- ensureMetrics().CHIReconcilesAborted.Add(ctx, 0, metric.WithAttributes(prepareLabels(chi)...))
+func CHIInitZeroValues(ctx context.Context, src labelsSource) {
+ ensureMetrics().CHIReconcilesStarted.Add(ctx, 0, labels(src))
+ ensureMetrics().CHIReconcilesCompleted.Add(ctx, 0, labels(src))
+ ensureMetrics().CHIReconcilesAborted.Add(ctx, 0, labels(src))
- ensureMetrics().HostReconcilesStarted.Add(ctx, 0, metric.WithAttributes(prepareLabels(chi)...))
- ensureMetrics().HostReconcilesCompleted.Add(ctx, 0, metric.WithAttributes(prepareLabels(chi)...))
- ensureMetrics().HostReconcilesRestarts.Add(ctx, 0, metric.WithAttributes(prepareLabels(chi)...))
- ensureMetrics().HostReconcilesErrors.Add(ctx, 0, metric.WithAttributes(prepareLabels(chi)...))
+ ensureMetrics().HostReconcilesStarted.Add(ctx, 0, labels(src))
+ ensureMetrics().HostReconcilesCompleted.Add(ctx, 0, labels(src))
+ ensureMetrics().HostReconcilesRestarts.Add(ctx, 0, labels(src))
+ ensureMetrics().HostReconcilesErrors.Add(ctx, 0, labels(src))
}
-func CHIReconcilesStarted(ctx context.Context, chi BaseInfoGetter) {
- ensureMetrics().CHIReconcilesStarted.Add(ctx, 1, metric.WithAttributes(prepareLabels(chi)...))
+func CHIReconcilesStarted(ctx context.Context, src labelsSource) {
+ ensureMetrics().CHIReconcilesStarted.Add(ctx, 1, labels(src))
}
-func CHIReconcilesCompleted(ctx context.Context, chi BaseInfoGetter) {
- ensureMetrics().CHIReconcilesCompleted.Add(ctx, 1, metric.WithAttributes(prepareLabels(chi)...))
+func CHIReconcilesCompleted(ctx context.Context, src labelsSource) {
+ ensureMetrics().CHIReconcilesCompleted.Add(ctx, 1, labels(src))
}
-func CHIReconcilesAborted(ctx context.Context, chi BaseInfoGetter) {
- ensureMetrics().CHIReconcilesAborted.Add(ctx, 1, metric.WithAttributes(prepareLabels(chi)...))
+func CHIReconcilesAborted(ctx context.Context, src labelsSource) {
+ ensureMetrics().CHIReconcilesAborted.Add(ctx, 1, labels(src))
}
-func CHIReconcilesTimings(ctx context.Context, chi BaseInfoGetter, seconds float64) {
- ensureMetrics().CHIReconcilesTimings.Record(ctx, seconds, metric.WithAttributes(prepareLabels(chi)...))
+func CHIReconcilesTimings(ctx context.Context, src labelsSource, seconds float64) {
+ ensureMetrics().CHIReconcilesTimings.Record(ctx, seconds, labels(src))
}
-func HostReconcilesStarted(ctx context.Context, chi BaseInfoGetter) {
- ensureMetrics().HostReconcilesStarted.Add(ctx, 1, metric.WithAttributes(prepareLabels(chi)...))
+func HostReconcilesStarted(ctx context.Context, src labelsSource) {
+ ensureMetrics().HostReconcilesStarted.Add(ctx, 1, labels(src))
}
-func HostReconcilesCompleted(ctx context.Context, chi BaseInfoGetter) {
- ensureMetrics().HostReconcilesCompleted.Add(ctx, 1, metric.WithAttributes(prepareLabels(chi)...))
+func HostReconcilesCompleted(ctx context.Context, src labelsSource) {
+ ensureMetrics().HostReconcilesCompleted.Add(ctx, 1, labels(src))
}
-func HostReconcilesRestart(ctx context.Context, chi BaseInfoGetter) {
- ensureMetrics().HostReconcilesRestarts.Add(ctx, 1, metric.WithAttributes(prepareLabels(chi)...))
+func HostReconcilesRestart(ctx context.Context, src labelsSource) {
+ ensureMetrics().HostReconcilesRestarts.Add(ctx, 1, labels(src))
}
-func HostReconcilesErrors(ctx context.Context, chi BaseInfoGetter) {
- ensureMetrics().HostReconcilesErrors.Add(ctx, 1, metric.WithAttributes(prepareLabels(chi)...))
+func HostReconcilesErrors(ctx context.Context, src labelsSource) {
+ ensureMetrics().HostReconcilesErrors.Add(ctx, 1, labels(src))
}
-func HostReconcilesTimings(ctx context.Context, chi BaseInfoGetter, seconds float64) {
- ensureMetrics().HostReconcilesTimings.Record(ctx, seconds, metric.WithAttributes(prepareLabels(chi)...))
+func HostReconcilesTimings(ctx context.Context, src labelsSource, seconds float64) {
+ ensureMetrics().HostReconcilesTimings.Record(ctx, seconds, labels(src))
}
func PodAdd(ctx context.Context) {
diff --git a/pkg/controller/chi/worker-boilerplate.go b/pkg/controller/chi/worker-boilerplate.go
index 929a46479..44ff11f57 100644
--- a/pkg/controller/chi/worker-boilerplate.go
+++ b/pkg/controller/chi/worker-boilerplate.go
@@ -23,7 +23,6 @@ import (
log "github.com/altinity/clickhouse-operator/pkg/announcer"
"github.com/altinity/clickhouse-operator/pkg/controller/chi/cmd_queue"
"github.com/altinity/clickhouse-operator/pkg/controller/chi/metrics"
- normalizerCommon "github.com/altinity/clickhouse-operator/pkg/model/common/normalizer"
"github.com/altinity/clickhouse-operator/pkg/util"
)
@@ -150,16 +149,6 @@ func (w *worker) processReconcilePod(ctx context.Context, cmd *cmd_queue.Reconci
return nil
}
-func (w *worker) processDropDns(ctx context.Context, cmd *cmd_queue.DropDns) error {
- if chi, err := w.createCRFromObjectMeta(cmd.Initiator, false, normalizerCommon.NewOptions()); err == nil {
- w.a.V(2).M(cmd.Initiator).Info("flushing DNS for CHI %s", chi.Name)
- _ = w.ensureClusterSchemer(chi.FirstHost()).CHIDropDnsCache(ctx, chi)
- } else {
- w.a.M(cmd.Initiator).F().Error("unable to find CHI by %v err: %v", cmd.Initiator.GetLabels(), err)
- }
- return nil
-}
-
// processItem processes one work item according to its type
func (w *worker) processItem(ctx context.Context, item interface{}) error {
if util.IsContextDone(ctx) {
@@ -181,8 +170,6 @@ func (w *worker) processItem(ctx context.Context, item interface{}) error {
return w.processReconcileEndpoints(ctx, cmd)
case *cmd_queue.ReconcilePod:
return w.processReconcilePod(ctx, cmd)
- case *cmd_queue.DropDns:
- return w.processDropDns(ctx, cmd)
}
// Unknown item type, don't know what to do with it
diff --git a/pkg/controller/chi/worker-chi-reconciler.go b/pkg/controller/chi/worker-chi-reconciler.go
index bb9850518..fea240869 100644
--- a/pkg/controller/chi/worker-chi-reconciler.go
+++ b/pkg/controller/chi/worker-chi-reconciler.go
@@ -27,6 +27,7 @@ import (
"github.com/altinity/clickhouse-operator/pkg/chop"
"github.com/altinity/clickhouse-operator/pkg/controller/chi/metrics"
"github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/controller/common/statefulset"
"github.com/altinity/clickhouse-operator/pkg/controller/common/storage"
"github.com/altinity/clickhouse-operator/pkg/interfaces"
@@ -96,15 +97,15 @@ func (w *worker) reconcileCR(ctx context.Context, old, new *api.ClickHouseInstal
return nil
}
- w.newTask(new)
+ w.newTask(new, old)
w.markReconcileStart(ctx, new, actionPlan)
w.excludeStoppedCHIFromMonitoring(new)
w.walkHosts(ctx, new, actionPlan)
if err := w.reconcile(ctx, new); err != nil {
// Something went wrong
- w.a.WithEvent(new, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusError(new).
+ w.a.WithEvent(new, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithError(new).
M(new).F().
Error("FAILED to reconcile CR %s, err: %v", util.NamespaceNameString(new), err)
w.markReconcileCompletedUnsuccessfully(ctx, new, err)
@@ -148,10 +149,12 @@ func (w *worker) reconcile(ctx context.Context, cr *api.ClickHouseInstallation)
})
if counters.AddOnly() {
- w.a.V(1).M(cr).Info("Enabling full fan-out mode. CHI: %s", util.NamespaceNameString(cr))
+ w.a.V(1).M(cr).Info("Enabling full fan-out mode. CR: %s", util.NamespaceNameString(cr))
ctx = context.WithValue(ctx, common.ReconcileShardsAndHostsOptionsCtxKey, &common.ReconcileShardsAndHostsOptions{
FullFanOut: true,
})
+ } else {
+ w.a.V(1).M(cr).Info("Unable to use full fan-out mode. Counters: %s. CR: %s", counters, util.NamespaceNameString(cr))
}
return cr.WalkTillError(
@@ -206,7 +209,8 @@ func (w *worker) reconcileCRServiceFinal(ctx context.Context, cr api.ICustomReso
// Create entry point for the whole CHI
if service := w.task.Creator().CreateService(interfaces.ServiceCR); service != nil {
- if err := w.reconcileService(ctx, cr, service); err != nil {
+ prevService := w.task.CreatorPrev().CreateService(interfaces.ServiceCR)
+ if err := w.reconcileService(ctx, cr, service, prevService); err != nil {
// Service not reconciled
w.task.RegistryFailed().RegisterService(service.GetObjectMeta())
return err
@@ -229,8 +233,17 @@ func (w *worker) reconcileCRAuxObjectsFinal(ctx context.Context, cr *api.ClickHo
// CR ConfigMaps with update
cr.GetRuntime().LockCommonConfig()
- err = w.reconcileConfigMapCommon(ctx, cr, nil)
+ err = w.reconcileConfigMapCommon(ctx, cr)
cr.GetRuntime().UnlockCommonConfig()
+
+ // Wait for all hosts to be included into cluster
+ cr.WalkHosts(func(host *api.Host) error {
+ if host.ShouldIncludeIntoCluster() {
+ _ = w.waitHostInCluster(ctx, host)
+ }
+ return nil
+ })
+
return err
}
@@ -238,17 +251,22 @@ func (w *worker) reconcileCRAuxObjectsFinal(ctx context.Context, cr *api.ClickHo
func (w *worker) reconcileConfigMapCommon(
ctx context.Context,
cr api.ICustomResource,
- options *config.FilesGeneratorOptions,
+ options ...*config.FilesGeneratorOptions,
) error {
if util.IsContextDone(ctx) {
log.V(2).Info("task is done")
return nil
}
- // ConfigMap common for all resources in CHI
+ var opts *config.FilesGeneratorOptions
+ if len(options) > 0 {
+ opts = options[0]
+ }
+
+ // ConfigMap common for all resources in CR
// contains several sections, mapped as separated chopConfig files,
// such as remote servers, zookeeper setup, etc
- configMapCommon := w.task.Creator().CreateConfigMap(interfaces.ConfigMapCommon, options)
+ configMapCommon := w.task.Creator().CreateConfigMap(interfaces.ConfigMapCommon, opts)
err := w.reconcileConfigMap(ctx, cr, configMapCommon)
if err == nil {
w.task.RegistryReconciled().RegisterConfigMap(configMapCommon.GetObjectMeta())
@@ -336,9 +354,9 @@ func (w *worker) reconcileHostStatefulSet(ctx context.Context, host *api.Host, o
}
host.GetCR().IEnsureStatus().HostFailed()
- w.a.WithEvent(host.GetCR(), common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusAction(host.GetCR()).
- WithStatusError(host.GetCR()).
+ w.a.WithEvent(host.GetCR(), a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithAction(host.GetCR()).
+ WithError(host.GetCR()).
M(host).F().
Error("FAILED to reconcile StatefulSet for host: %s", host.GetName())
}
@@ -369,7 +387,8 @@ func (w *worker) reconcileHostService(ctx context.Context, host *api.Host) error
// This is not a problem, service may be omitted
return nil
}
- err := w.reconcileService(ctx, host.GetCR(), service)
+ prevService := w.task.CreatorPrev().CreateService(interfaces.ServiceHost, host.GetAncestor())
+ err := w.reconcileService(ctx, host.GetCR(), service, prevService)
if err == nil {
w.a.V(1).M(host).F().Info("DONE Reconcile service of the host: %s", host.GetName())
w.task.RegistryReconciled().RegisterService(service.GetObjectMeta())
@@ -392,7 +411,8 @@ func (w *worker) reconcileCluster(ctx context.Context, cluster *api.Cluster) err
// Add Cluster Service
if service := w.task.Creator().CreateService(interfaces.ServiceCluster, cluster); service != nil {
- if err := w.reconcileService(ctx, cluster.GetRuntime().GetCR(), service); err == nil {
+ prevService := w.task.CreatorPrev().CreateService(interfaces.ServiceCluster, cluster.GetAncestor())
+ if err := w.reconcileService(ctx, cluster.GetRuntime().GetCR(), service, prevService); err == nil {
w.task.RegistryReconciled().RegisterService(service.GetObjectMeta())
} else {
w.task.RegistryFailed().RegisterService(service.GetObjectMeta())
@@ -479,20 +499,77 @@ func (w *worker) reconcileShardsAndHosts(ctx context.Context, shards []*api.ChiS
return err
}
- // Since shard with 0 index is already done, we'll proceed with the 1-st
+ // Since shard with 0 index is already done, we'll proceed concurrently starting with the 1-st
startShard = 1
}
// Process shards using specified concurrency level while maintaining specified max concurrency percentage.
// Loop over shards.
workersNum := w.getReconcileShardsWorkersNum(shards, opts)
- w.a.V(1).Info("Starting rest of shards on workers: %d", workersNum)
- for startShardIndex := startShard; startShardIndex < len(shards); startShardIndex += workersNum {
- endShardIndex := startShardIndex + workersNum
- if endShardIndex > len(shards) {
- endShardIndex = len(shards)
+ w.a.V(1).Info("Starting rest of shards on workers. Workers num: %d", workersNum)
+ if err := w.runConcurrently(ctx, workersNum, startShard, shards[startShard:]); err != nil {
+ w.a.V(1).Info("Finished with ERROR rest of shards on workers: %d, err: %v", workersNum, err)
+ return err
+ }
+ w.a.V(1).Info("Finished successfully rest of shards on workers: %d", workersNum)
+ return nil
+}
+
+func (w *worker) runConcurrently(ctx context.Context, workersNum int, startShardIndex int, shards []*api.ChiShard) error {
+ if len(shards) == 0 {
+ return nil
+ }
+
+ type shardReconcile struct {
+ shard *api.ChiShard
+ index int
+ }
+
+ ch := make(chan *shardReconcile)
+ wg := sync.WaitGroup{}
+
+ // Launch tasks feeder
+ wg.Add(1)
+ go func() {
+ defer wg.Done()
+ defer close(ch)
+ for i, shard := range shards {
+ ch <- &shardReconcile{
+ shard,
+ startShardIndex + i,
+ }
}
+ }()
+
+ // Launch workers
+ var err error
+ var errLock sync.Mutex
+ for i := 0; i < workersNum; i++ {
+ wg.Add(1)
+ go func() {
+ defer wg.Done()
+ for rq := range ch {
+ w.a.V(1).Info("Starting shard index: %d on worker", rq.index)
+ if e := w.reconcileShardWithHosts(ctx, rq.shard); e != nil {
+ errLock.Lock()
+ err = e
+ errLock.Unlock()
+ }
+ }
+ }()
+ }
+
+ w.a.V(1).Info("Starting to wait shards from index: %d on workers.", startShardIndex)
+ wg.Wait()
+ w.a.V(1).Info("Finished to wait shards from index: %d on workers.", startShardIndex)
+ return err
+}
+
+func (w *worker) runConcurrentlyInBatches(ctx context.Context, workersNum int, start int, shards []*api.ChiShard) error {
+ for startShardIndex := 0; startShardIndex < len(shards); startShardIndex += workersNum {
+ endShardIndex := util.IncTopped(startShardIndex, workersNum, len(shards))
concurrentlyProcessedShards := shards[startShardIndex:endShardIndex]
+ w.a.V(1).Info("Starting shards from index: %d on workers. Shards indexes [%d:%d)", start+startShardIndex, start+startShardIndex, start+endShardIndex)
// Processing error protected with mutex
var err error
@@ -503,17 +580,21 @@ func (w *worker) reconcileShardsAndHosts(ctx context.Context, shards []*api.ChiS
// Launch shard concurrent processing
for j := range concurrentlyProcessedShards {
shard := concurrentlyProcessedShards[j]
+ w.a.V(1).Info("Starting shard on worker. Shard index: %d", start+startShardIndex+j)
go func() {
defer wg.Done()
+ w.a.V(1).Info("Starting shard on goroutine. Shard index: %d", start+startShardIndex+j)
if e := w.reconcileShardWithHosts(ctx, shard); e != nil {
errLock.Lock()
err = e
errLock.Unlock()
- return
}
+ w.a.V(1).Info("Finished shard on goroutine. Shard index: %d", start+startShardIndex+j)
}()
}
+ w.a.V(1).Info("Starting to wait shards from index: %d on workers. Shards indexes [%d:%d)", start+startShardIndex, start+startShardIndex, start+endShardIndex)
wg.Wait()
+ w.a.V(1).Info("Finished to wait shards from index: %d on workers. Shards indexes [%d:%d)", start+startShardIndex, start+startShardIndex, start+endShardIndex)
if err != nil {
w.a.V(1).Warning("Skipping rest of shards due to an error: %v", err)
return err
@@ -553,7 +634,8 @@ func (w *worker) reconcileShardService(ctx context.Context, shard api.IShard) er
// This is not a problem, ServiceShard may be omitted
return nil
}
- err := w.reconcileService(ctx, shard.GetRuntime().GetCR(), service)
+ prevService := w.task.CreatorPrev().CreateService(interfaces.ServiceShard, shard.GetAncestor())
+ err := w.reconcileService(ctx, shard.GetRuntime().GetCR(), service, prevService)
if err == nil {
w.task.RegistryReconciled().RegisterService(service.GetObjectMeta())
} else {
@@ -572,6 +654,17 @@ func (w *worker) reconcileHost(ctx context.Context, host *api.Host) error {
w.a.V(2).M(host).S().P()
defer w.a.V(2).M(host).E().P()
+ //si := host.GetRuntime().GetAddress().GetShardIndex()
+ //ri := host.GetRuntime().GetAddress().GetReplicaIndex()
+ ////sleep := util.DecBottomed(si, 1, 0)*(si % 3)*20
+ //sleep := (2 - si)*90
+ //if ri > 0 {
+ // sleep = 0
+ //}
+ //w.a.V(1).Info("Host [%d/%d]. Going to sleep %d sec", si, ri, sleep)
+ //time.Sleep((time.Duration)(sleep)*time.Second)
+ //w.a.V(1).Info("Host [%d/%d]. Done to sleep %d sec", si, ri)
+
metrics.HostReconcilesStarted(ctx, host.GetCR())
startTime := time.Now()
@@ -604,14 +697,16 @@ func (w *worker) reconcileHost(ctx context.Context, host *api.Host) error {
hostsCount = host.GetCR().GetStatus().GetHostsCount()
}
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionProgress, common.EventReasonProgressHostsCompleted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionProgress, a.EventReasonProgressHostsCompleted).
+ WithAction(host.GetCR()).
M(host).F().
- Info("[now: %s] %s: %d of %d", now, common.EventReasonProgressHostsCompleted, hostsCompleted, hostsCount)
+ Info("[now: %s] %s: %d of %d", now, a.EventReasonProgressHostsCompleted, hostsCompleted, hostsCount)
_ = w.c.updateCRObjectStatus(ctx, host.GetCR(), types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
})
@@ -626,14 +721,14 @@ func (w *worker) reconcileHostPrepare(ctx context.Context, host *api.Host) error
// Check whether ClickHouse is running and accessible and what version is available
if version, err := w.getHostClickHouseVersion(ctx, host, versionOptions{skipNew: true, skipStoppedAncestor: true}); err == nil {
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionReconcile, common.EventReasonReconcileStarted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionReconcile, a.EventReasonReconcileStarted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Reconcile Host start. Host: %s ClickHouse version running: %s", host.GetName(), version)
} else {
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionReconcile, common.EventReasonReconcileStarted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionReconcile, a.EventReasonReconcileStarted).
+ WithAction(host.GetCR()).
M(host).F().
Warning("Reconcile Host start. Host: %s Failed to get ClickHouse version: %s", host.GetName(), version)
}
@@ -735,14 +830,14 @@ func (w *worker) reconcileHostBootstrap(ctx context.Context, host *api.Host) err
// Sometimes service needs some time to start after creation|modification before being accessible for usage
if version, err := w.pollHostForClickHouseVersion(ctx, host); err == nil {
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionReconcile, common.EventReasonReconcileCompleted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionReconcile, a.EventReasonReconcileCompleted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Reconcile Host completed. Host: %s ClickHouse version running: %s", host.GetName(), version)
} else {
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionReconcile, common.EventReasonReconcileCompleted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionReconcile, a.EventReasonReconcileCompleted).
+ WithAction(host.GetCR()).
M(host).F().
Warning("Reconcile Host completed. Host: %s Failed to get ClickHouse version: %s", host.GetName(), version)
}
diff --git a/pkg/controller/chi/worker-config-map.go b/pkg/controller/chi/worker-config-map.go
index 1817a7ec2..d91b134b1 100644
--- a/pkg/controller/chi/worker-config-map.go
+++ b/pkg/controller/chi/worker-config-map.go
@@ -23,7 +23,7 @@ import (
log "github.com/altinity/clickhouse-operator/pkg/announcer"
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
- "github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/util"
)
@@ -55,9 +55,9 @@ func (w *worker) reconcileConfigMap(
}
if err != nil {
- w.a.WithEvent(cr, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("FAILED to reconcile ConfigMap: %s CHI: %s ", configMap.GetName(), cr.GetName())
}
@@ -75,17 +75,17 @@ func (w *worker) updateConfigMap(ctx context.Context, cr api.ICustomResource, co
updatedConfigMap, err := w.c.updateConfigMap(ctx, configMap)
if err == nil {
w.a.V(1).
- WithEvent(cr, common.EventActionUpdate, common.EventReasonUpdateCompleted).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionUpdate, a.EventReasonUpdateCompleted).
+ WithAction(cr).
M(cr).F().
Info("Update ConfigMap %s/%s", configMap.Namespace, configMap.Name)
if updatedConfigMap.ResourceVersion != configMap.ResourceVersion {
w.task.SetCmUpdate(time.Now())
}
} else {
- w.a.WithEvent(cr, common.EventActionUpdate, common.EventReasonUpdateFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionUpdate, a.EventReasonUpdateFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("Update ConfigMap %s/%s failed with error %v", configMap.Namespace, configMap.Name, err)
}
@@ -103,14 +103,14 @@ func (w *worker) createConfigMap(ctx context.Context, cr api.ICustomResource, co
err := w.c.createConfigMap(ctx, configMap)
if err == nil {
w.a.V(1).
- WithEvent(cr, common.EventActionCreate, common.EventReasonCreateCompleted).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionCreate, a.EventReasonCreateCompleted).
+ WithAction(cr).
M(cr).F().
Info("Create ConfigMap %s", util.NamespaceNameString(configMap))
} else {
- w.a.WithEvent(cr, common.EventActionCreate, common.EventReasonCreateFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionCreate, a.EventReasonCreateFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("Create ConfigMap %s failed with error %v", util.NamespaceNameString(configMap), err)
}
diff --git a/pkg/controller/chi/worker-deleter.go b/pkg/controller/chi/worker-deleter.go
index 003c3104e..4555a9b29 100644
--- a/pkg/controller/chi/worker-deleter.go
+++ b/pkg/controller/chi/worker-deleter.go
@@ -25,8 +25,7 @@ import (
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
"github.com/altinity/clickhouse-operator/pkg/apis/common/types"
"github.com/altinity/clickhouse-operator/pkg/controller"
- "github.com/altinity/clickhouse-operator/pkg/controller/chi/cmd_queue"
- "github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/controller/common/storage"
"github.com/altinity/clickhouse-operator/pkg/model"
chiLabeler "github.com/altinity/clickhouse-operator/pkg/model/chi/tags/labeler"
@@ -42,8 +41,8 @@ func (w *worker) clean(ctx context.Context, cr api.ICustomResource) {
}
w.a.V(1).
- WithEvent(cr, common.EventActionReconcile, common.EventReasonReconcileInProgress).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionReconcile, a.EventReasonReconcileInProgress).
+ WithAction(cr).
M(cr).F().
Info("remove items scheduled for deletion")
@@ -56,7 +55,6 @@ func (w *worker) clean(ctx context.Context, cr api.ICustomResource) {
objs.Subtract(need)
w.a.V(1).M(cr).F().Info("Non-reconciled objects:\n%s", objs)
if w.purge(ctx, cr, objs, w.task.RegistryFailed()) > 0 {
- w.c.enqueueObject(cmd_queue.NewDropDns(cr))
util.WaitContextDoneOrTimeout(ctx, 1*time.Minute)
}
@@ -274,8 +272,8 @@ func (w *worker) deleteCHIProtocol(ctx context.Context, chi *api.ClickHouseInsta
var err error
chi, err = w.normalizer.CreateTemplated(chi, normalizer.NewOptions())
if err != nil {
- w.a.WithEvent(chi, common.EventActionDelete, common.EventReasonDeleteFailed).
- WithStatusError(chi).
+ w.a.WithEvent(chi, a.EventActionDelete, a.EventReasonDeleteFailed).
+ WithError(chi).
M(chi).F().
Error("Delete CHI failed - unable to normalize: %q", err)
return err
@@ -283,8 +281,8 @@ func (w *worker) deleteCHIProtocol(ctx context.Context, chi *api.ClickHouseInsta
// Announce delete procedure
w.a.V(1).
- WithEvent(chi, common.EventActionDelete, common.EventReasonDeleteStarted).
- WithStatusAction(chi).
+ WithEvent(chi, a.EventActionDelete, a.EventReasonDeleteStarted).
+ WithAction(chi).
M(chi).F().
Info("Delete CHI started")
@@ -292,7 +290,9 @@ func (w *worker) deleteCHIProtocol(ctx context.Context, chi *api.ClickHouseInsta
if err := w.c.updateCRObjectStatus(ctx, chi, types.UpdateStatusOptions{
TolerateAbsence: true,
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
}); err != nil {
w.a.V(1).M(chi).F().Error("UNABLE to write normalized CHI. err: %q", err)
@@ -326,8 +326,8 @@ func (w *worker) deleteCHIProtocol(ctx context.Context, chi *api.ClickHouseInsta
_ = w.c.deleteConfigMapsCHI(ctx, chi)
w.a.V(1).
- WithEvent(chi, common.EventActionDelete, common.EventReasonDeleteCompleted).
- WithStatusAction(chi).
+ WithEvent(chi, a.EventActionDelete, a.EventReasonDeleteCompleted).
+ WithAction(chi).
M(chi).F().
Info("Delete CHI completed")
@@ -413,13 +413,13 @@ func (w *worker) dropReplica(ctx context.Context, hostToDrop *api.Host, opts ...
if err == nil {
w.a.V(1).
- WithEvent(hostToRunOn.GetCR(), common.EventActionDelete, common.EventReasonDeleteCompleted).
- WithStatusAction(hostToRunOn.GetCR()).
+ WithEvent(hostToRunOn.GetCR(), a.EventActionDelete, a.EventReasonDeleteCompleted).
+ WithAction(hostToRunOn.GetCR()).
M(hostToRunOn).F().
Info("Drop replica host: %s in cluster: %s", hostToDrop.GetName(), hostToDrop.Runtime.Address.ClusterName)
} else {
- w.a.WithEvent(hostToRunOn.GetCR(), common.EventActionDelete, common.EventReasonDeleteFailed).
- WithStatusError(hostToRunOn.GetCR()).
+ w.a.WithEvent(hostToRunOn.GetCR(), a.EventActionDelete, a.EventReasonDeleteFailed).
+ WithError(hostToRunOn.GetCR()).
M(hostToRunOn).F().
Error("FAILED to drop replica on host: %s with error: %v", hostToDrop.GetName(), err)
}
@@ -441,14 +441,14 @@ func (w *worker) deleteTables(ctx context.Context, host *api.Host) error {
if err == nil {
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionDelete, common.EventReasonDeleteCompleted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionDelete, a.EventReasonDeleteCompleted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Deleted tables on host: %s replica: %d to shard: %d in cluster: %s",
host.GetName(), host.Runtime.Address.ReplicaIndex, host.Runtime.Address.ShardIndex, host.Runtime.Address.ClusterName)
} else {
- w.a.WithEvent(host.GetCR(), common.EventActionDelete, common.EventReasonDeleteFailed).
- WithStatusError(host.GetCR()).
+ w.a.WithEvent(host.GetCR(), a.EventActionDelete, a.EventReasonDeleteFailed).
+ WithError(host.GetCR()).
M(host).F().
Error("FAILED to delete tables on host: %s with error: %v", host.GetName(), err)
}
@@ -468,15 +468,15 @@ func (w *worker) deleteHost(ctx context.Context, chi *api.ClickHouseInstallation
defer w.a.V(2).M(host).E().Info(host.Runtime.Address.HostName)
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionDelete, common.EventReasonDeleteStarted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionDelete, a.EventReasonDeleteStarted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Delete host: %s/%s - started", host.Runtime.Address.ClusterName, host.GetName())
var err error
if host.Runtime.CurStatefulSet, err = w.c.kube.STS().Get(ctx, host); err != nil {
- w.a.WithEvent(host.GetCR(), common.EventActionDelete, common.EventReasonDeleteCompleted).
- WithStatusAction(host.GetCR()).
+ w.a.WithEvent(host.GetCR(), a.EventActionDelete, a.EventReasonDeleteCompleted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Delete host: %s/%s - completed StatefulSet not found - already deleted? err: %v",
host.Runtime.Address.ClusterName, host.GetName(), err)
@@ -498,19 +498,21 @@ func (w *worker) deleteHost(ctx context.Context, chi *api.ClickHouseInstallation
_ = w.c.updateCRObjectStatus(ctx, chi, types.UpdateStatusOptions{
TolerateAbsence: true,
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
})
if err == nil {
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionDelete, common.EventReasonDeleteCompleted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionDelete, a.EventReasonDeleteCompleted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Delete host: %s/%s - completed", host.Runtime.Address.ClusterName, host.GetName())
} else {
- w.a.WithEvent(host.GetCR(), common.EventActionDelete, common.EventReasonDeleteFailed).
- WithStatusError(host.GetCR()).
+ w.a.WithEvent(host.GetCR(), a.EventActionDelete, a.EventReasonDeleteFailed).
+ WithError(host.GetCR()).
M(host).F().
Error("FAILED Delete host: %s/%s - completed", host.Runtime.Address.ClusterName, host.GetName())
}
@@ -530,8 +532,8 @@ func (w *worker) deleteShard(ctx context.Context, chi *api.ClickHouseInstallatio
defer w.a.V(2).M(shard).E().P()
w.a.V(1).
- WithEvent(shard.Runtime.CHI, common.EventActionDelete, common.EventReasonDeleteStarted).
- WithStatusAction(shard.Runtime.CHI).
+ WithEvent(shard.Runtime.CHI, a.EventActionDelete, a.EventReasonDeleteStarted).
+ WithAction(shard.Runtime.CHI).
M(shard).F().
Info("Delete shard: %s/%s - started", shard.Runtime.Address.Namespace, shard.Name)
@@ -544,8 +546,8 @@ func (w *worker) deleteShard(ctx context.Context, chi *api.ClickHouseInstallatio
})
w.a.V(1).
- WithEvent(shard.Runtime.CHI, common.EventActionDelete, common.EventReasonDeleteCompleted).
- WithStatusAction(shard.Runtime.CHI).
+ WithEvent(shard.Runtime.CHI, a.EventActionDelete, a.EventReasonDeleteCompleted).
+ WithAction(shard.Runtime.CHI).
M(shard).F().
Info("Delete shard: %s/%s - completed", shard.Runtime.Address.Namespace, shard.Name)
@@ -564,8 +566,8 @@ func (w *worker) deleteCluster(ctx context.Context, chi *api.ClickHouseInstallat
defer w.a.V(2).M(cluster).E().P()
w.a.V(1).
- WithEvent(cluster.Runtime.CHI, common.EventActionDelete, common.EventReasonDeleteStarted).
- WithStatusAction(cluster.Runtime.CHI).
+ WithEvent(cluster.Runtime.CHI, a.EventActionDelete, a.EventReasonDeleteStarted).
+ WithAction(cluster.Runtime.CHI).
M(cluster).F().
Info("Delete cluster: %s/%s - started", cluster.Runtime.Address.Namespace, cluster.Name)
@@ -584,8 +586,8 @@ func (w *worker) deleteCluster(ctx context.Context, chi *api.ClickHouseInstallat
})
w.a.V(1).
- WithEvent(cluster.Runtime.CHI, common.EventActionDelete, common.EventReasonDeleteCompleted).
- WithStatusAction(cluster.Runtime.CHI).
+ WithEvent(cluster.Runtime.CHI, a.EventActionDelete, a.EventReasonDeleteCompleted).
+ WithAction(cluster.Runtime.CHI).
M(cluster).F().
Info("Delete cluster: %s/%s - completed", cluster.Runtime.Address.Namespace, cluster.Name)
diff --git a/pkg/controller/chi/worker-migrator.go b/pkg/controller/chi/worker-migrator.go
index f563b324d..4d3a5c014 100644
--- a/pkg/controller/chi/worker-migrator.go
+++ b/pkg/controller/chi/worker-migrator.go
@@ -20,7 +20,7 @@ import (
log "github.com/altinity/clickhouse-operator/pkg/announcer"
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
"github.com/altinity/clickhouse-operator/pkg/chop"
- "github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/interfaces"
"github.com/altinity/clickhouse-operator/pkg/model/chi/schemer"
"github.com/altinity/clickhouse-operator/pkg/model/clickhouse"
@@ -89,8 +89,8 @@ func (w *worker) migrateTables(ctx context.Context, host *api.Host, opts ...*mig
}
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionCreate, common.EventReasonCreateStarted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionCreate, a.EventReasonCreateStarted).
+ WithAction(host.GetCR()).
M(host).F().
Info(
"Adding tables on shard/host:%d/%d cluster:%s",
@@ -99,16 +99,16 @@ func (w *worker) migrateTables(ctx context.Context, host *api.Host, opts ...*mig
err := w.ensureClusterSchemer(host).HostCreateTables(ctx, host)
if err == nil {
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionCreate, common.EventReasonCreateCompleted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionCreate, a.EventReasonCreateCompleted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Tables added successfully on shard/host:%d/%d cluster:%s",
host.Runtime.Address.ShardIndex, host.Runtime.Address.ReplicaIndex, host.Runtime.Address.ClusterName)
host.GetCR().IEnsureStatus().PushHostTablesCreated(w.c.namer.Name(interfaces.NameFQDN, host))
} else {
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionCreate, common.EventReasonCreateFailed).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionCreate, a.EventReasonCreateFailed).
+ WithAction(host.GetCR()).
M(host).F().
Error("ERROR add tables added successfully on shard/host:%d/%d cluster:%s err:%v",
host.Runtime.Address.ShardIndex, host.Runtime.Address.ReplicaIndex, host.Runtime.Address.ClusterName, err)
diff --git a/pkg/controller/chi/worker-secret.go b/pkg/controller/chi/worker-secret.go
index 0ba50de27..f38f1aaa9 100644
--- a/pkg/controller/chi/worker-secret.go
+++ b/pkg/controller/chi/worker-secret.go
@@ -21,7 +21,7 @@ import (
log "github.com/altinity/clickhouse-operator/pkg/announcer"
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
- "github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/util"
)
@@ -45,9 +45,9 @@ func (w *worker) reconcileSecret(ctx context.Context, cr api.ICustomResource, se
_ = w.c.deleteSecretIfExists(ctx, secret.Namespace, secret.Name)
err := w.createSecret(ctx, cr, secret)
if err != nil {
- w.a.WithEvent(cr, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("FAILED to reconcile Secret: %s CHI: %s ", secret.Name, cr.GetName())
}
@@ -65,14 +65,14 @@ func (w *worker) createSecret(ctx context.Context, cr api.ICustomResource, secre
err := w.c.createSecret(ctx, secret)
if err == nil {
w.a.V(1).
- WithEvent(cr, common.EventActionCreate, common.EventReasonCreateCompleted).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionCreate, a.EventReasonCreateCompleted).
+ WithAction(cr).
M(cr).F().
Info("Create Secret %s/%s", secret.Namespace, secret.Name)
} else {
- w.a.WithEvent(cr, common.EventActionCreate, common.EventReasonCreateFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionCreate, a.EventReasonCreateFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("Create Secret %s/%s failed with error %v", secret.Namespace, secret.Name, err)
}
diff --git a/pkg/controller/chi/worker-service.go b/pkg/controller/chi/worker-service.go
index 89655ec92..3c269c5a6 100644
--- a/pkg/controller/chi/worker-service.go
+++ b/pkg/controller/chi/worker-service.go
@@ -22,13 +22,13 @@ import (
apiErrors "k8s.io/apimachinery/pkg/api/errors"
log "github.com/altinity/clickhouse-operator/pkg/announcer"
- api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
- "github.com/altinity/clickhouse-operator/pkg/controller/common"
+ chi "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/util"
)
// reconcileService reconciles core.Service
-func (w *worker) reconcileService(ctx context.Context, cr api.ICustomResource, service *core.Service) error {
+func (w *worker) reconcileService(ctx context.Context, cr chi.ICustomResource, service, prevService *core.Service) error {
if util.IsContextDone(ctx) {
log.V(2).Info("task is done")
return nil
@@ -43,7 +43,7 @@ func (w *worker) reconcileService(ctx context.Context, cr api.ICustomResource, s
if curService != nil {
// We have the Service - try to update it
w.a.V(1).M(cr).F().Info("Service found: %s. Will try to update", util.NamespaceNameString(service))
- err = w.updateService(ctx, cr, curService, service)
+ err = w.updateService(ctx, cr, curService, service, prevService)
}
if err != nil {
@@ -52,9 +52,9 @@ func (w *worker) reconcileService(ctx context.Context, cr api.ICustomResource, s
w.a.V(1).M(cr).F().Info("Service: %s not found. err: %v", util.NamespaceNameString(service), err)
} else {
// The Service is either not found or not updated. Try to recreate it
- w.a.WithEvent(cr, common.EventActionUpdate, common.EventReasonUpdateFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionUpdate, a.EventReasonUpdateFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("Update Service: %s failed with error: %v", util.NamespaceNameString(service), err)
}
@@ -66,9 +66,9 @@ func (w *worker) reconcileService(ctx context.Context, cr api.ICustomResource, s
if err == nil {
w.a.V(1).M(cr).F().Info("Service reconcile successful: %s", util.NamespaceNameString(service))
} else {
- w.a.WithEvent(cr, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("FAILED to reconcile Service: %s CHI: %s ", util.NamespaceNameString(service), cr.GetName())
}
@@ -79,9 +79,10 @@ func (w *worker) reconcileService(ctx context.Context, cr api.ICustomResource, s
// updateService
func (w *worker) updateService(
ctx context.Context,
- cr api.ICustomResource,
+ cr chi.ICustomResource,
curService *core.Service,
targetService *core.Service,
+ prevService *core.Service,
) error {
if util.IsContextDone(ctx) {
log.V(2).Info("task is done")
@@ -166,9 +167,9 @@ func (w *worker) updateService(
//
// Migrate labels, annotations and finalizers to the new service
//
- newService.GetObjectMeta().SetLabels(util.MergeStringMapsPreserve(newService.GetObjectMeta().GetLabels(), curService.GetObjectMeta().GetLabels()))
- newService.GetObjectMeta().SetAnnotations(util.MergeStringMapsPreserve(newService.GetObjectMeta().GetAnnotations(), curService.GetObjectMeta().GetAnnotations()))
- newService.GetObjectMeta().SetFinalizers(util.MergeStringArrays(newService.GetObjectMeta().GetFinalizers(), curService.GetObjectMeta().GetFinalizers()))
+ newService.SetLabels(w.prepareLabels(curService, newService, ensureService(prevService)))
+ newService.SetAnnotations(w.prepareAnnotations(curService, newService, ensureService(prevService)))
+ newService.SetFinalizers(w.prepareFinalizers(curService, newService, ensureService(prevService)))
//
// And only now we are ready to actually update the service with new version of the service
@@ -177,8 +178,8 @@ func (w *worker) updateService(
err := w.c.updateService(ctx, newService)
if err == nil {
w.a.V(1).
- WithEvent(cr, common.EventActionUpdate, common.EventReasonUpdateCompleted).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionUpdate, a.EventReasonUpdateCompleted).
+ WithAction(cr).
M(cr).F().
Info("Update Service success: %s", util.NamespaceNameString(newService))
} else {
@@ -188,8 +189,27 @@ func (w *worker) updateService(
return err
}
+func ensureService(svc *core.Service) *core.Service {
+ if svc == nil {
+ return &core.Service{}
+ }
+ return svc
+}
+
+func (w *worker) prepareLabels(curService, newService, oldService *core.Service) map[string]string {
+ return util.MapMigrate(curService.GetLabels(), newService.GetLabels(), oldService.GetLabels())
+}
+
+func (w *worker) prepareAnnotations(curService, newService, oldService *core.Service) map[string]string {
+ return util.MapMigrate(curService.GetAnnotations(), newService.GetAnnotations(), oldService.GetAnnotations())
+}
+
+func (w *worker) prepareFinalizers(curService, newService, oldService *core.Service) []string {
+ return util.MergeStringArrays(newService.GetFinalizers(), curService.GetFinalizers())
+}
+
// createService
-func (w *worker) createService(ctx context.Context, cr api.ICustomResource, service *core.Service) error {
+func (w *worker) createService(ctx context.Context, cr chi.ICustomResource, service *core.Service) error {
if util.IsContextDone(ctx) {
log.V(2).Info("task is done")
return nil
@@ -198,14 +218,14 @@ func (w *worker) createService(ctx context.Context, cr api.ICustomResource, serv
err := w.c.createService(ctx, service)
if err == nil {
w.a.V(1).
- WithEvent(cr, common.EventActionCreate, common.EventReasonCreateCompleted).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionCreate, a.EventReasonCreateCompleted).
+ WithAction(cr).
M(cr).F().
Info("OK Create Service: %s", util.NamespaceNameString(service))
} else {
- w.a.WithEvent(cr, common.EventActionCreate, common.EventReasonCreateFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionCreate, a.EventReasonCreateFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("FAILED Create Service: %s err: %v", util.NamespaceNameString(service), err)
}
diff --git a/pkg/controller/chi/worker.go b/pkg/controller/chi/worker.go
index 91b15a7c1..438daa81b 100644
--- a/pkg/controller/chi/worker.go
+++ b/pkg/controller/chi/worker.go
@@ -28,6 +28,7 @@ import (
"github.com/altinity/clickhouse-operator/pkg/apis/deployment"
"github.com/altinity/clickhouse-operator/pkg/chop"
"github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/controller/common/poller/domain"
"github.com/altinity/clickhouse-operator/pkg/controller/common/statefulset"
"github.com/altinity/clickhouse-operator/pkg/controller/common/storage"
@@ -55,7 +56,7 @@ const FinalizerName = "finalizer.clickhouseinstallation.altinity.com"
// worker represents worker thread which runs reconcile tasks
type worker struct {
c *Controller
- a common.Announcer
+ a a.Announcer
//queue workqueue.RateLimitingInterface
queue queue.PriorityQueue
@@ -78,8 +79,8 @@ func (c *Controller) newWorker(q queue.PriorityQueue, sys bool) *worker {
generateName := "chop-chi-"
component := componentName
- announcer := common.NewAnnouncer(
- common.NewEventEmitter(c.kube.Event(), kind, generateName, component),
+ announcer := a.NewAnnouncer(
+ a.NewEventEmitter(c.kube.Event(), kind, generateName, component),
c.kube.CR(),
)
@@ -105,40 +106,44 @@ func (c *Controller) newWorker(q queue.PriorityQueue, sys bool) *worker {
func configGeneratorOptions(cr *api.ClickHouseInstallation) *config.GeneratorOptions {
return &config.GeneratorOptions{
- Users: cr.GetSpecT().Configuration.Users,
- Profiles: cr.GetSpecT().Configuration.Profiles,
- Quotas: cr.GetSpecT().Configuration.Quotas,
- Settings: cr.GetSpecT().Configuration.Settings,
- Files: cr.GetSpecT().Configuration.Files,
- DistributedDDL: cr.GetSpecT().Defaults.DistributedDDL,
+ Users: cr.GetSpecT().GetConfiguration().GetUsers(),
+ Profiles: cr.GetSpecT().GetConfiguration().GetProfiles(),
+ Quotas: cr.GetSpecT().GetConfiguration().GetQuotas(),
+ Settings: cr.GetSpecT().GetConfiguration().GetSettings(),
+ Files: cr.GetSpecT().GetConfiguration().GetFiles(),
+ DistributedDDL: cr.GetSpecT().GetDefaults().GetDistributedDDL(),
}
}
-func (w *worker) newTask(cr *api.ClickHouseInstallation) {
- w.task = common.NewTask(
- commonCreator.NewCreator(
- cr,
- managers.NewConfigFilesGenerator(managers.FilesGeneratorTypeClickHouse, cr, configGeneratorOptions(cr)),
- managers.NewContainerManager(managers.ContainerManagerTypeClickHouse),
- managers.NewTagManager(managers.TagManagerTypeClickHouse, cr),
- managers.NewProbeManager(managers.ProbeManagerTypeClickHouse),
- managers.NewServiceManager(managers.ServiceManagerTypeClickHouse),
- managers.NewVolumeManager(managers.VolumeManagerTypeClickHouse),
- managers.NewConfigMapManager(managers.ConfigMapManagerTypeClickHouse),
- managers.NewNameManager(managers.NameManagerTypeClickHouse),
- managers.NewOwnerReferencesManager(managers.OwnerReferencesManagerTypeClickHouse),
- namer.New(),
- commonMacro.New(macro.List),
- labeler.New(cr),
- ),
+func (w *worker) buildCreator(cr *api.ClickHouseInstallation) *commonCreator.Creator {
+ if cr == nil {
+ cr = &api.ClickHouseInstallation{}
+ }
+ return commonCreator.NewCreator(
+ cr,
+ managers.NewConfigFilesGenerator(managers.FilesGeneratorTypeClickHouse, cr, configGeneratorOptions(cr)),
+ managers.NewContainerManager(managers.ContainerManagerTypeClickHouse),
+ managers.NewTagManager(managers.TagManagerTypeClickHouse, cr),
+ managers.NewProbeManager(managers.ProbeManagerTypeClickHouse),
+ managers.NewServiceManager(managers.ServiceManagerTypeClickHouse),
+ managers.NewVolumeManager(managers.VolumeManagerTypeClickHouse),
+ managers.NewConfigMapManager(managers.ConfigMapManagerTypeClickHouse),
+ managers.NewNameManager(managers.NameManagerTypeClickHouse),
+ managers.NewOwnerReferencesManager(managers.OwnerReferencesManagerTypeClickHouse),
+ namer.New(),
+ commonMacro.New(macro.List),
+ labeler.New(cr),
)
+}
+func (w *worker) newTask(new, old *api.ClickHouseInstallation) {
+ w.task = common.NewTask(w.buildCreator(new), w.buildCreator(old))
w.stsReconciler = statefulset.NewReconciler(
w.a,
w.task,
domain.NewHostStatefulSetPoller(domain.NewStatefulSetPoller(w.c.kube), w.c.kube, w.c.ctrlLabeler),
w.c.namer,
- labeler.New(cr),
+ labeler.New(new),
storage.NewStorageReconciler(w.task, w.c.namer, w.c.kube.Storage()),
w.c.kube,
w.c,
@@ -178,24 +183,26 @@ func (w *worker) shouldForceRestartHost(host *api.Host) bool {
return true
}
- podIsCrushed := false
+ if host.Runtime.Version.IsUnknown() && w.isPodCrushed(host) {
+ w.a.V(1).M(host).F().Info("Host with unknown version and in CrashLoopBackOff should be restarted. It most likely is unable to start due to bad config. Host: %s", host.GetName())
+ return true
+ }
+
+ w.a.V(1).M(host).F().Info("Host restart is not required. Host: %s", host.GetName())
+ return false
+}
+
+func (w *worker) isPodCrushed(host *api.Host) bool {
// pod.Status.ContainerStatuses[0].State.Waiting.Reason
if pod, err := w.c.kube.Pod().Get(host); err == nil {
if len(pod.Status.ContainerStatuses) > 0 {
if pod.Status.ContainerStatuses[0].State.Waiting != nil {
if pod.Status.ContainerStatuses[0].State.Waiting.Reason == "CrashLoopBackOff" {
- podIsCrushed = true
+ return true
}
}
}
}
-
- if host.Runtime.Version.IsUnknown() && podIsCrushed {
- w.a.V(1).M(host).F().Info("Host with unknown version and in CrashLoopBackOff should be restarted. It most likely is unable to start due to bad config. Host: %s", host.GetName())
- return true
- }
-
- w.a.V(1).M(host).F().Info("Host restart is not required. Host: %s", host.GetName())
return false
}
@@ -203,8 +210,8 @@ func (w *worker) shouldForceRestartHost(host *api.Host) bool {
func (w *worker) normalize(c *api.ClickHouseInstallation) *api.ClickHouseInstallation {
chi, err := w.normalizer.CreateTemplated(c, commonNormalizer.NewOptions())
if err != nil {
- w.a.WithEvent(chi, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusError(chi).
+ w.a.WithEvent(chi, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithError(chi).
M(chi).F().
Error("FAILED to normalize CR 1: %v", err)
}
@@ -216,8 +223,8 @@ func (w *worker) normalize(c *api.ClickHouseInstallation) *api.ClickHouseInstall
chi, err = w.normalizer.CreateTemplated(c, opts)
if err != nil {
- w.a.WithEvent(chi, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusError(chi).
+ w.a.WithEvent(chi, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithError(chi).
M(chi).F().
Error("FAILED to normalize CHI 2: %v", err)
}
@@ -267,12 +274,14 @@ func (w *worker) updateEndpoints(ctx context.Context, old, new *core.Endpoints)
w.a.V(1).M(chi).Info("Update users IPS-1")
// TODO unify with finalize reconcile
- w.newTask(chi)
+ w.newTask(chi, chi.GetAncestorT())
w.reconcileConfigMapCommonUsers(ctx, chi)
w.c.updateCRObjectStatus(ctx, chi, types.UpdateStatusOptions{
TolerateAbsence: true,
CopyStatusOptions: types.CopyStatusOptions{
- Normalized: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupNormalized: true,
+ },
},
})
} else {
@@ -441,8 +450,8 @@ func (w *worker) excludeStoppedCHIFromMonitoring(chi *api.ClickHouseInstallation
}
w.a.V(1).
- WithEvent(chi, common.EventActionReconcile, common.EventReasonReconcileInProgress).
- WithStatusAction(chi).
+ WithEvent(chi, a.EventActionReconcile, a.EventReasonReconcileInProgress).
+ WithAction(chi).
M(chi).F().
Info("exclude CHI from monitoring")
w.c.deleteWatch(chi)
@@ -456,8 +465,8 @@ func (w *worker) addCHIToMonitoring(chi *api.ClickHouseInstallation) {
}
w.a.V(1).
- WithEvent(chi, common.EventActionReconcile, common.EventReasonReconcileInProgress).
- WithStatusAction(chi).
+ WithEvent(chi, a.EventActionReconcile, a.EventReasonReconcileInProgress).
+ WithAction(chi).
M(chi).F().
Info("add CHI to monitoring")
w.c.updateWatch(chi)
@@ -473,14 +482,16 @@ func (w *worker) markReconcileStart(ctx context.Context, cr *api.ClickHouseInsta
cr.EnsureStatus().ReconcileStart(ap.GetRemovedHostsNum())
_ = w.c.updateCRObjectStatus(ctx, cr, types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
})
w.a.V(1).
- WithEvent(cr, common.EventActionReconcile, common.EventReasonReconcileStarted).
- WithStatusAction(cr).
- WithStatusActions(cr).
+ WithEvent(cr, a.EventActionReconcile, a.EventReasonReconcileStarted).
+ WithAction(cr).
+ WithActions(cr).
M(cr).F().
Info("reconcile started, task id: %s", cr.GetSpecT().GetTaskID())
w.a.V(2).M(cr).F().Info("action plan\n%s\n", ap.String())
@@ -507,11 +518,13 @@ func (w *worker) finalizeReconcileAndMarkCompleted(ctx context.Context, _chi *ap
chi.SetTarget(nil)
chi.EnsureStatus().ReconcileComplete()
// TODO unify with update endpoints
- w.newTask(chi)
+ w.newTask(chi, chi.GetAncestorT())
w.reconcileConfigMapCommonUsers(ctx, chi)
w.c.updateCRObjectStatus(ctx, chi, types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- WholeStatus: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupWholeStatus: true,
+ },
},
})
} else {
@@ -522,9 +535,9 @@ func (w *worker) finalizeReconcileAndMarkCompleted(ctx context.Context, _chi *ap
}
w.a.V(1).
- WithEvent(_chi, common.EventActionReconcile, common.EventReasonReconcileCompleted).
- WithStatusAction(_chi).
- WithStatusActions(_chi).
+ WithEvent(_chi, a.EventActionReconcile, a.EventReasonReconcileCompleted).
+ WithAction(_chi).
+ WithActions(_chi).
M(_chi).F().
Info("reconcile completed successfully, task id: %s", _chi.GetSpecT().GetTaskID())
}
@@ -543,14 +556,16 @@ func (w *worker) markReconcileCompletedUnsuccessfully(ctx context.Context, chi *
}
w.c.updateCRObjectStatus(ctx, chi, types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
})
w.a.V(1).
- WithEvent(chi, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusAction(chi).
- WithStatusActions(chi).
+ WithEvent(chi, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithAction(chi).
+ WithActions(chi).
M(chi).F().
Warning("reconcile completed UNSUCCESSFULLY, task id: %s", chi.GetSpecT().GetTaskID())
}
@@ -631,19 +646,27 @@ func (w *worker) walkHosts(ctx context.Context, chi *api.ClickHouseInstallation,
chi.WalkHosts(func(host *api.Host) error {
w.a.V(3).M(chi).Info("Walking over CR hosts. Host: %s", host.GetName())
+ _, err := w.c.kube.STS().Get(ctx, host)
switch {
case host.GetReconcileAttributes().IsAdd():
- w.a.V(3).M(chi).Info("Walking over CR hosts. Host: is already added Host: %s", host.GetName())
+ w.a.V(3).M(chi).Info("Walking over CR hosts. Host: is already listed as ADD. Host: %s", host.GetName())
return nil
case host.GetReconcileAttributes().IsModify():
- w.a.V(3).M(chi).Info("Walking over CR hosts. Host: is already modified Host: %s", host.GetName())
+ w.a.V(3).M(chi).Info("Walking over CR hosts. Host: is already listed as MODIFIED. Host: %s", host.GetName())
return nil
- default:
- w.a.V(3).M(chi).Info("Walking over CR hosts. Host: is not clear yet (not detected as added or modified) Host: %s", host.GetName())
- w.a.V(1).M(chi).Info("Add host as FOUND via host. Host: %s", host.GetName())
+ case host.HasAncestor():
+ w.a.V(1).M(chi).Info("Add host as FOUND via host because host has ancestor. Host: %s", host.GetName())
+ host.GetReconcileAttributes().SetFound()
+ return nil
+ case err == nil:
+ w.a.V(1).M(chi).Info("Add host as FOUND via host because has found sts. Host: %s", host.GetName())
host.GetReconcileAttributes().SetFound()
+ return nil
+ default:
+ w.a.V(1).M(chi).Info("Add host as ADD via host. Host: %s", host.GetName())
+ host.GetReconcileAttributes().SetAdd()
+ return nil
}
- return nil
})
// Log hosts statuses
diff --git a/pkg/controller/chk/worker-chk-reconciler.go b/pkg/controller/chk/worker-chk-reconciler.go
index eea2aecf7..f438471d8 100644
--- a/pkg/controller/chk/worker-chk-reconciler.go
+++ b/pkg/controller/chk/worker-chk-reconciler.go
@@ -27,6 +27,7 @@ import (
"github.com/altinity/clickhouse-operator/pkg/controller/chi/metrics"
"github.com/altinity/clickhouse-operator/pkg/controller/chk/kube"
"github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/controller/common/statefulset"
"github.com/altinity/clickhouse-operator/pkg/controller/common/storage"
"github.com/altinity/clickhouse-operator/pkg/interfaces"
@@ -86,14 +87,14 @@ func (w *worker) reconcileCR(ctx context.Context, old, new *apiChk.ClickHouseKee
return nil
}
- w.newTask(new)
+ w.newTask(new, old)
w.markReconcileStart(ctx, new, actionPlan)
w.walkHosts(ctx, new, actionPlan)
if err := w.reconcile(ctx, new); err != nil {
// Something went wrong
- w.a.WithEvent(new, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusError(new).
+ w.a.WithEvent(new, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithError(new).
M(new).F().
Error("FAILED to reconcile CR %s, err: %v", util.NamespaceNameString(new), err)
w.markReconcileCompletedUnsuccessfully(ctx, new, err)
@@ -131,7 +132,7 @@ func (w *worker) reconcile(ctx context.Context, cr *apiChk.ClickHouseKeeperInsta
})
if counters.AddOnly() {
- w.a.V(1).M(cr).Info("Enabling full fan-out mode. CHI: %s", util.NamespaceNameString(cr))
+ w.a.V(1).M(cr).Info("Enabling full fan-out mode. CR: %s", util.NamespaceNameString(cr))
ctx = context.WithValue(ctx, common.ReconcileShardsAndHostsOptionsCtxKey, &common.ReconcileShardsAndHostsOptions{
FullFanOut: true,
})
@@ -168,6 +169,21 @@ func (w *worker) reconcileCRAuxObjectsPreliminary(ctx context.Context, cr *apiCh
w.a.F().Error("failed to reconcile config map users. err: %v", err)
}
+ return w.reconcileCRAuxObjectsPreliminaryDomain(ctx, cr)
+}
+
+func (w *worker) reconcileCRAuxObjectsPreliminaryDomain(ctx context.Context, cr *apiChk.ClickHouseKeeperInstallation) error {
+ switch {
+ case cr.HostsCount() < cr.GetAncestor().HostsCount():
+ // Downscale
+ time.Sleep(120 * time.Second)
+ case cr.HostsCount() > cr.GetAncestor().HostsCount():
+ // Upscale
+ time.Sleep(30 * time.Second)
+ default:
+ // Same size
+ time.Sleep(10 * time.Second)
+ }
return nil
}
@@ -189,7 +205,8 @@ func (w *worker) reconcileCRServiceFinal(ctx context.Context, cr api.ICustomReso
// Create entry point for the whole CHI
if service := w.task.Creator().CreateService(interfaces.ServiceCR); service != nil {
- if err := w.reconcileService(ctx, cr, service); err != nil {
+ prevService := w.task.CreatorPrev().CreateService(interfaces.ServiceCR)
+ if err := w.reconcileService(ctx, cr, service, prevService); err != nil {
// Service not reconciled
w.task.RegistryFailed().RegisterService(service.GetObjectMeta())
return err
@@ -212,7 +229,7 @@ func (w *worker) reconcileCRAuxObjectsFinal(ctx context.Context, cr *apiChk.Clic
// CR ConfigMaps with update
cr.GetRuntime().LockCommonConfig()
- err = w.reconcileConfigMapCommon(ctx, cr, nil)
+ err = w.reconcileConfigMapCommon(ctx, cr)
cr.GetRuntime().UnlockCommonConfig()
return err
}
@@ -221,17 +238,22 @@ func (w *worker) reconcileCRAuxObjectsFinal(ctx context.Context, cr *apiChk.Clic
func (w *worker) reconcileConfigMapCommon(
ctx context.Context,
cr api.ICustomResource,
- options *config.FilesGeneratorOptions,
+ options ...*config.FilesGeneratorOptions,
) error {
if util.IsContextDone(ctx) {
log.V(2).Info("task is done")
return nil
}
- // ConfigMap common for all resources in CHI
+ var opts *config.FilesGeneratorOptions
+ if len(options) > 0 {
+ opts = options[0]
+ }
+
+ // ConfigMap common for all resources in CR
// contains several sections, mapped as separated chopConfig files,
// such as remote servers, zookeeper setup, etc
- configMapCommon := w.task.Creator().CreateConfigMap(interfaces.ConfigMapCommon, options)
+ configMapCommon := w.task.Creator().CreateConfigMap(interfaces.ConfigMapCommon, opts)
err := w.reconcileConfigMap(ctx, cr, configMapCommon)
if err == nil {
w.task.RegistryReconciled().RegisterConfigMap(configMapCommon.GetObjectMeta())
@@ -319,9 +341,9 @@ func (w *worker) reconcileHostStatefulSet(ctx context.Context, host *api.Host, o
}
host.GetCR().IEnsureStatus().HostFailed()
- w.a.WithEvent(host.GetCR(), common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusAction(host.GetCR()).
- WithStatusError(host.GetCR()).
+ w.a.WithEvent(host.GetCR(), a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithAction(host.GetCR()).
+ WithError(host.GetCR()).
M(host).F().
Error("FAILED to reconcile StatefulSet for host: %s", host.GetName())
}
@@ -344,7 +366,8 @@ func (w *worker) reconcileHostService(ctx context.Context, host *api.Host) error
// This is not a problem, service may be omitted
return nil
}
- err := w.reconcileService(ctx, host.GetCR(), service)
+ prevService := w.task.CreatorPrev().CreateService(interfaces.ServiceHost, host.GetAncestor())
+ err := w.reconcileService(ctx, host.GetCR(), service, prevService)
if err == nil {
w.a.V(1).M(host).F().Info("DONE Reconcile service of the host: %s", host.GetName())
w.task.RegistryReconciled().RegisterService(service.GetObjectMeta())
@@ -367,7 +390,8 @@ func (w *worker) reconcileCluster(ctx context.Context, cluster *apiChk.Cluster)
// Add Cluster Service
if service := w.task.Creator().CreateService(interfaces.ServiceCluster, cluster); service != nil {
- if err := w.reconcileService(ctx, cluster.GetRuntime().GetCR(), service); err == nil {
+ prevService := w.task.CreatorPrev().CreateService(interfaces.ServiceCluster, cluster.GetAncestor())
+ if err := w.reconcileService(ctx, cluster.GetRuntime().GetCR(), service, prevService); err == nil {
w.task.RegistryReconciled().RegisterService(service.GetObjectMeta())
} else {
w.task.RegistryFailed().RegisterService(service.GetObjectMeta())
@@ -539,14 +563,16 @@ func (w *worker) reconcileHost(ctx context.Context, host *api.Host) error {
hostsCount = host.GetCR().GetStatus().GetHostsCount()
}
w.a.V(1).
- WithEvent(host.GetCR(), common.EventActionProgress, common.EventReasonProgressHostsCompleted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionProgress, a.EventReasonProgressHostsCompleted).
+ WithAction(host.GetCR()).
M(host).F().
- Info("[now: %s] %s: %d of %d", now, common.EventReasonProgressHostsCompleted, hostsCompleted, hostsCount)
+ Info("[now: %s] %s: %d of %d", now, a.EventReasonProgressHostsCompleted, hostsCompleted, hostsCount)
_ = w.c.updateCRObjectStatus(ctx, host.GetCR(), types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
})
return nil
@@ -569,9 +595,9 @@ func (w *worker) reconcileHostMain(ctx context.Context, host *api.Host) error {
reconcileStatefulSetOpts *statefulset.ReconcileOptions
)
- if host.IsFirst() || host.IsLast() {
- reconcileStatefulSetOpts = reconcileStatefulSetOpts.SetDoNotWait()
- }
+ //if !host.IsLast() {
+ // reconcileStatefulSetOpts = reconcileStatefulSetOpts.SetDoNotWait()
+ //}
if err := w.reconcileConfigMapHost(ctx, host); err != nil {
w.a.V(1).
@@ -599,6 +625,8 @@ func (w *worker) reconcileHostMain(ctx context.Context, host *api.Host) error {
Info("Data loss detected for host: %s. Will do force migrate", host.GetName())
}
+ _ = w.reconcileHostService(ctx, host)
+
if err := w.reconcileHostStatefulSet(ctx, host, reconcileStatefulSetOpts); err != nil {
w.a.V(1).
M(host).F().
@@ -612,8 +640,23 @@ func (w *worker) reconcileHostMain(ctx context.Context, host *api.Host) error {
storage.NewStoragePVC(kube.NewPVC(w.c.Client)),
).ReconcilePVCs(ctx, host, api.DesiredStatefulSet)
- _ = w.reconcileHostService(ctx, host)
+ // _ = w.reconcileHostService(ctx, host)
+
+ return w.reconcileHostMainDomain(ctx, host)
+}
+func (w *worker) reconcileHostMainDomain(ctx context.Context, host *api.Host) error {
+ // Should we wait for host to startup
+ wait := false
+
+ if host.GetReconcileAttributes().IsAdd() {
+ wait = true
+ }
+
+ // Wait for host to startup
+ if wait {
+ time.Sleep(7 * time.Second)
+ }
return nil
}
diff --git a/pkg/controller/chk/worker-config-map.go b/pkg/controller/chk/worker-config-map.go
index 5a3970296..515d8f313 100644
--- a/pkg/controller/chk/worker-config-map.go
+++ b/pkg/controller/chk/worker-config-map.go
@@ -23,7 +23,7 @@ import (
log "github.com/altinity/clickhouse-operator/pkg/announcer"
apiChi "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
- "github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/util"
)
@@ -55,9 +55,9 @@ func (w *worker) reconcileConfigMap(
}
if err != nil {
- w.a.WithEvent(cr, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("FAILED to reconcile ConfigMap: %s CHI: %s ", configMap.GetName(), cr.GetName())
}
@@ -75,17 +75,17 @@ func (w *worker) updateConfigMap(ctx context.Context, cr apiChi.ICustomResource,
updatedConfigMap, err := w.c.updateConfigMap(ctx, configMap)
if err == nil {
w.a.V(1).
- WithEvent(cr, common.EventActionUpdate, common.EventReasonUpdateCompleted).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionUpdate, a.EventReasonUpdateCompleted).
+ WithAction(cr).
M(cr).F().
Info("Update ConfigMap %s/%s", configMap.Namespace, configMap.Name)
if updatedConfigMap.ResourceVersion != configMap.ResourceVersion {
w.task.SetCmUpdate(time.Now())
}
} else {
- w.a.WithEvent(cr, common.EventActionUpdate, common.EventReasonUpdateFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionUpdate, a.EventReasonUpdateFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("Update ConfigMap %s/%s failed with error %v", configMap.Namespace, configMap.Name, err)
}
@@ -103,14 +103,14 @@ func (w *worker) createConfigMap(ctx context.Context, cr apiChi.ICustomResource,
err := w.c.createConfigMap(ctx, configMap)
if err == nil {
w.a.V(1).
- WithEvent(cr, common.EventActionCreate, common.EventReasonCreateCompleted).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionCreate, a.EventReasonCreateCompleted).
+ WithAction(cr).
M(cr).F().
Info("Create ConfigMap %s", util.NamespaceNameString(configMap))
} else {
- w.a.WithEvent(cr, common.EventActionCreate, common.EventReasonCreateFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionCreate, a.EventReasonCreateFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("Create ConfigMap %s failed with error %v", util.NamespaceNameString(configMap), err)
}
diff --git a/pkg/controller/chk/worker-deleter.go b/pkg/controller/chk/worker-deleter.go
index db6810b9e..19e77c1b5 100644
--- a/pkg/controller/chk/worker-deleter.go
+++ b/pkg/controller/chk/worker-deleter.go
@@ -22,7 +22,7 @@ import (
log "github.com/altinity/clickhouse-operator/pkg/announcer"
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
- "github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/model"
chkLabeler "github.com/altinity/clickhouse-operator/pkg/model/chk/tags/labeler"
"github.com/altinity/clickhouse-operator/pkg/util"
@@ -35,8 +35,8 @@ func (w *worker) clean(ctx context.Context, cr api.ICustomResource) {
}
w.a.V(1).
- WithEvent(cr, common.EventActionReconcile, common.EventReasonReconcileInProgress).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionReconcile, a.EventReasonReconcileInProgress).
+ WithAction(cr).
M(cr).F().
Info("remove items scheduled for deletion")
@@ -49,7 +49,6 @@ func (w *worker) clean(ctx context.Context, cr api.ICustomResource) {
objs.Subtract(need)
w.a.V(1).M(cr).F().Info("Non-reconciled objects:\n%s", objs)
if w.purge(ctx, cr, objs, w.task.RegistryFailed()) > 0 {
- //w.c.enqueueObject(cmd_queue.NewDropDns(chk))
util.WaitContextDoneOrTimeout(ctx, 1*time.Minute)
}
diff --git a/pkg/controller/chk/worker-service.go b/pkg/controller/chk/worker-service.go
index 7b6c7ab9b..6647499d4 100644
--- a/pkg/controller/chk/worker-service.go
+++ b/pkg/controller/chk/worker-service.go
@@ -20,54 +20,15 @@ import (
core "k8s.io/api/core/v1"
apiErrors "k8s.io/apimachinery/pkg/api/errors"
- "sigs.k8s.io/controller-runtime/pkg/client"
log "github.com/altinity/clickhouse-operator/pkg/announcer"
- apiChk "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse-keeper.altinity.com/v1"
- apiChi "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
- "github.com/altinity/clickhouse-operator/pkg/controller/common"
- "github.com/altinity/clickhouse-operator/pkg/interfaces"
+ chi "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/util"
)
-func (w *worker) reconcileClientService(chk *apiChk.ClickHouseKeeperInstallation) error {
- return w.c.reconcile(
- chk,
- &core.Service{},
- w.task.Creator().CreateService(interfaces.ServiceCR, chk),
- "Client Service",
- reconcileUpdaterService,
- )
-}
-
-func (w *worker) reconcileHeadlessService(chk *apiChk.ClickHouseKeeperInstallation) error {
- return w.c.reconcile(
- chk,
- &core.Service{},
- w.task.Creator().CreateService(interfaces.ServiceHost, chk),
- "Headless Service",
- reconcileUpdaterService,
- )
-}
-
-func reconcileUpdaterService(_cur, _new client.Object) error {
- cur, ok1 := _cur.(*core.Service)
- new, ok2 := _new.(*core.Service)
- if !ok1 || !ok2 {
- return fmt.Errorf("unable to cast")
- }
- return updateService(cur, new)
-}
-
-func updateService(cur, new *core.Service) error {
- cur.Spec.Ports = new.Spec.Ports
- cur.Spec.Type = new.Spec.Type
- cur.SetAnnotations(new.GetAnnotations())
- return nil
-}
-
// reconcileService reconciles core.Service
-func (w *worker) reconcileService(ctx context.Context, cr apiChi.ICustomResource, service *core.Service) error {
+func (w *worker) reconcileService(ctx context.Context, cr chi.ICustomResource, service, prevService *core.Service) error {
if util.IsContextDone(ctx) {
log.V(2).Info("task is done")
return nil
@@ -82,7 +43,7 @@ func (w *worker) reconcileService(ctx context.Context, cr apiChi.ICustomResource
if curService != nil {
// We have the Service - try to update it
w.a.V(1).M(cr).F().Info("Service found: %s. Will try to update", util.NamespaceNameString(service))
- err = w.updateService(ctx, cr, curService, service)
+ err = w.updateService(ctx, cr, curService, service, prevService)
}
if err != nil {
@@ -91,9 +52,9 @@ func (w *worker) reconcileService(ctx context.Context, cr apiChi.ICustomResource
w.a.V(1).M(cr).F().Info("Service: %s not found. err: %v", util.NamespaceNameString(service), err)
} else {
// The Service is either not found or not updated. Try to recreate it
- w.a.WithEvent(cr, common.EventActionUpdate, common.EventReasonUpdateFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionUpdate, a.EventReasonUpdateFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("Update Service: %s failed with error: %v", util.NamespaceNameString(service), err)
}
@@ -105,9 +66,9 @@ func (w *worker) reconcileService(ctx context.Context, cr apiChi.ICustomResource
if err == nil {
w.a.V(1).M(cr).F().Info("Service reconcile successful: %s", util.NamespaceNameString(service))
} else {
- w.a.WithEvent(cr, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("FAILED to reconcile Service: %s CHI: %s ", util.NamespaceNameString(service), cr.GetName())
}
@@ -118,9 +79,10 @@ func (w *worker) reconcileService(ctx context.Context, cr apiChi.ICustomResource
// updateService
func (w *worker) updateService(
ctx context.Context,
- cr apiChi.ICustomResource,
+ cr chi.ICustomResource,
curService *core.Service,
targetService *core.Service,
+ prevService *core.Service,
) error {
if util.IsContextDone(ctx) {
log.V(2).Info("task is done")
@@ -205,9 +167,9 @@ func (w *worker) updateService(
//
// Migrate labels, annotations and finalizers to the new service
//
- newService.GetObjectMeta().SetLabels(util.MergeStringMapsPreserve(newService.GetObjectMeta().GetLabels(), curService.GetObjectMeta().GetLabels()))
- newService.GetObjectMeta().SetAnnotations(util.MergeStringMapsPreserve(newService.GetObjectMeta().GetAnnotations(), curService.GetObjectMeta().GetAnnotations()))
- newService.GetObjectMeta().SetFinalizers(util.MergeStringArrays(newService.GetObjectMeta().GetFinalizers(), curService.GetObjectMeta().GetFinalizers()))
+ newService.SetLabels(w.prepareLabels(curService, newService, ensureService(prevService)))
+ newService.SetAnnotations(w.prepareAnnotations(curService, newService, ensureService(prevService)))
+ newService.SetFinalizers(w.prepareFinalizers(curService, newService, ensureService(prevService)))
//
// And only now we are ready to actually update the service with new version of the service
@@ -216,8 +178,8 @@ func (w *worker) updateService(
err := w.c.updateService(ctx, newService)
if err == nil {
w.a.V(1).
- WithEvent(cr, common.EventActionUpdate, common.EventReasonUpdateCompleted).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionUpdate, a.EventReasonUpdateCompleted).
+ WithAction(cr).
M(cr).F().
Info("Update Service success: %s", util.NamespaceNameString(newService))
} else {
@@ -227,8 +189,27 @@ func (w *worker) updateService(
return err
}
+func ensureService(svc *core.Service) *core.Service {
+ if svc == nil {
+ return &core.Service{}
+ }
+ return svc
+}
+
+func (w *worker) prepareLabels(curService, newService, oldService *core.Service) map[string]string {
+ return util.MapMigrate(curService.GetLabels(), newService.GetLabels(), oldService.GetLabels())
+}
+
+func (w *worker) prepareAnnotations(curService, newService, oldService *core.Service) map[string]string {
+ return util.MapMigrate(curService.GetAnnotations(), newService.GetAnnotations(), oldService.GetAnnotations())
+}
+
+func (w *worker) prepareFinalizers(curService, newService, oldService *core.Service) []string {
+ return util.MergeStringArrays(newService.GetFinalizers(), curService.GetFinalizers())
+}
+
// createService
-func (w *worker) createService(ctx context.Context, cr apiChi.ICustomResource, service *core.Service) error {
+func (w *worker) createService(ctx context.Context, cr chi.ICustomResource, service *core.Service) error {
if util.IsContextDone(ctx) {
log.V(2).Info("task is done")
return nil
@@ -237,14 +218,14 @@ func (w *worker) createService(ctx context.Context, cr apiChi.ICustomResource, s
err := w.c.createService(ctx, service)
if err == nil {
w.a.V(1).
- WithEvent(cr, common.EventActionCreate, common.EventReasonCreateCompleted).
- WithStatusAction(cr).
+ WithEvent(cr, a.EventActionCreate, a.EventReasonCreateCompleted).
+ WithAction(cr).
M(cr).F().
Info("OK Create Service: %s", util.NamespaceNameString(service))
} else {
- w.a.WithEvent(cr, common.EventActionCreate, common.EventReasonCreateFailed).
- WithStatusAction(cr).
- WithStatusError(cr).
+ w.a.WithEvent(cr, a.EventActionCreate, a.EventReasonCreateFailed).
+ WithAction(cr).
+ WithError(cr).
M(cr).F().
Error("FAILED Create Service: %s err: %v", util.NamespaceNameString(service), err)
}
diff --git a/pkg/controller/chk/worker.go b/pkg/controller/chk/worker.go
index 869ce7ffa..2e8c7e032 100644
--- a/pkg/controller/chk/worker.go
+++ b/pkg/controller/chk/worker.go
@@ -26,6 +26,7 @@ import (
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
"github.com/altinity/clickhouse-operator/pkg/apis/common/types"
"github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/controller/common/poller/domain"
"github.com/altinity/clickhouse-operator/pkg/controller/common/statefulset"
"github.com/altinity/clickhouse-operator/pkg/controller/common/storage"
@@ -48,7 +49,7 @@ import (
// worker represents worker thread which runs reconcile tasks
type worker struct {
c *Controller
- a common.Announcer
+ a a.Announcer
normalizer *normalizer.Normalizer
task *common.Task
@@ -64,7 +65,7 @@ func (c *Controller) newWorker() *worker {
//generateName := "chop-chk-"
//component := componentName
- announcer := common.NewAnnouncer(
+ announcer := a.NewAnnouncer(
//common.NewEventEmitter(c.kube.Event(), kind, generateName, component),
nil,
c.kube.CR(),
@@ -82,37 +83,41 @@ func (c *Controller) newWorker() *worker {
func configGeneratorOptions(cr *apiChk.ClickHouseKeeperInstallation) *config.GeneratorOptions {
return &config.GeneratorOptions{
- Settings: cr.GetSpecT().Configuration.Settings,
- Files: cr.GetSpecT().Configuration.Files,
+ Settings: cr.GetSpecT().GetConfiguration().GetSettings(),
+ Files: cr.GetSpecT().GetConfiguration().GetFiles(),
}
}
-func (w *worker) newTask(cr *apiChk.ClickHouseKeeperInstallation) {
- w.task = common.NewTask(
- commonCreator.NewCreator(
- cr,
- managers.NewConfigFilesGenerator(managers.FilesGeneratorTypeKeeper, cr, configGeneratorOptions(cr)),
- managers.NewContainerManager(managers.ContainerManagerTypeKeeper),
- managers.NewTagManager(managers.TagManagerTypeKeeper, cr),
- managers.NewProbeManager(managers.ProbeManagerTypeKeeper),
- managers.NewServiceManager(managers.ServiceManagerTypeKeeper),
- managers.NewVolumeManager(managers.VolumeManagerTypeKeeper),
- managers.NewConfigMapManager(managers.ConfigMapManagerTypeKeeper),
- managers.NewNameManager(managers.NameManagerTypeKeeper),
- managers.NewOwnerReferencesManager(managers.OwnerReferencesManagerTypeKeeper),
- namer.New(),
- commonMacro.New(macro.List),
- labeler.New(cr),
- ),
+func (w *worker) buildCreator(cr *apiChk.ClickHouseKeeperInstallation) *commonCreator.Creator {
+ if cr == nil {
+ cr = &apiChk.ClickHouseKeeperInstallation{}
+ }
+ return commonCreator.NewCreator(
+ cr,
+ managers.NewConfigFilesGenerator(managers.FilesGeneratorTypeKeeper, cr, configGeneratorOptions(cr)),
+ managers.NewContainerManager(managers.ContainerManagerTypeKeeper),
+ managers.NewTagManager(managers.TagManagerTypeKeeper, cr),
+ managers.NewProbeManager(managers.ProbeManagerTypeKeeper),
+ managers.NewServiceManager(managers.ServiceManagerTypeKeeper),
+ managers.NewVolumeManager(managers.VolumeManagerTypeKeeper),
+ managers.NewConfigMapManager(managers.ConfigMapManagerTypeKeeper),
+ managers.NewNameManager(managers.NameManagerTypeKeeper),
+ managers.NewOwnerReferencesManager(managers.OwnerReferencesManagerTypeKeeper),
+ namer.New(),
+ commonMacro.New(macro.List),
+ labeler.New(cr),
)
+}
+func (w *worker) newTask(new, old *apiChk.ClickHouseKeeperInstallation) {
+ w.task = common.NewTask(w.buildCreator(new), w.buildCreator(old))
w.stsReconciler = statefulset.NewReconciler(
w.a,
w.task,
//poller.NewHostStatefulSetPoller(poller.NewStatefulSetPoller(w.c.kube), w.c.kube, w.c.labeler),
domain.NewHostStatefulSetPoller(domain.NewStatefulSetPoller(w.c.kube), w.c.kube, nil),
w.c.namer,
- labeler.New(cr),
+ labeler.New(new),
storage.NewStorageReconciler(w.task, w.c.namer, w.c.kube.Storage()),
w.c.kube,
statefulset.NewDefaultFallback(),
@@ -169,8 +174,8 @@ func (w *worker) shouldForceRestartHost(host *api.Host) bool {
func (w *worker) normalize(c *apiChk.ClickHouseKeeperInstallation) *apiChk.ClickHouseKeeperInstallation {
chk, err := normalizer.New().CreateTemplated(c, commonNormalizer.NewOptions())
if err != nil {
- w.a.WithEvent(chk, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusError(chk).
+ w.a.WithEvent(chk, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithError(chk).
M(chk).F().
Error("FAILED to normalize CR 1: %v", err)
}
@@ -207,14 +212,16 @@ func (w *worker) markReconcileStart(ctx context.Context, cr *apiChk.ClickHouseKe
cr.EnsureStatus().ReconcileStart(ap.GetRemovedHostsNum())
_ = w.c.updateCRObjectStatus(ctx, cr, types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
})
w.a.V(1).
- WithEvent(cr, common.EventActionReconcile, common.EventReasonReconcileStarted).
- WithStatusAction(cr).
- WithStatusActions(cr).
+ WithEvent(cr, a.EventActionReconcile, a.EventReasonReconcileStarted).
+ WithAction(cr).
+ WithActions(cr).
M(cr).F().
Info("reconcile started, task id: %s", cr.GetSpecT().GetTaskID())
w.a.V(2).M(cr).F().Info("action plan\n%s\n", ap.String())
@@ -241,11 +248,13 @@ func (w *worker) finalizeReconcileAndMarkCompleted(ctx context.Context, _chk *ap
chi.SetTarget(nil)
chi.EnsureStatus().ReconcileComplete()
// TODO unify with update endpoints
- w.newTask(chi)
+ w.newTask(chi, chi.GetAncestorT())
//w.reconcileConfigMapCommonUsers(ctx, chi)
w.c.updateCRObjectStatus(ctx, chi, types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- WholeStatus: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupWholeStatus: true,
+ },
},
})
} else {
@@ -256,9 +265,9 @@ func (w *worker) finalizeReconcileAndMarkCompleted(ctx context.Context, _chk *ap
}
w.a.V(1).
- WithEvent(_chk, common.EventActionReconcile, common.EventReasonReconcileCompleted).
- WithStatusAction(_chk).
- WithStatusActions(_chk).
+ WithEvent(_chk, a.EventActionReconcile, a.EventReasonReconcileCompleted).
+ WithAction(_chk).
+ WithActions(_chk).
M(_chk).F().
Info("reconcile completed successfully, task id: %s", _chk.GetSpecT().GetTaskID())
}
@@ -277,14 +286,16 @@ func (w *worker) markReconcileCompletedUnsuccessfully(ctx context.Context, chk *
}
w.c.updateCRObjectStatus(ctx, chk, types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
})
w.a.V(1).
- WithEvent(chk, common.EventActionReconcile, common.EventReasonReconcileFailed).
- WithStatusAction(chk).
- WithStatusActions(chk).
+ WithEvent(chk, a.EventActionReconcile, a.EventReasonReconcileFailed).
+ WithAction(chk).
+ WithActions(chk).
M(chk).F().
Warning("reconcile completed UNSUCCESSFULLY, task id: %s", chk.GetSpecT().GetTaskID())
}
diff --git a/pkg/controller/common/announcer.go b/pkg/controller/common/announcer/announcer.go
similarity index 62%
rename from pkg/controller/common/announcer.go
rename to pkg/controller/common/announcer/announcer.go
index 714e47bfc..e18861400 100644
--- a/pkg/controller/common/announcer.go
+++ b/pkg/controller/common/announcer/announcer.go
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package common
+package announcer
import (
"context"
@@ -24,6 +24,7 @@ import (
a "github.com/altinity/clickhouse-operator/pkg/announcer"
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
"github.com/altinity/clickhouse-operator/pkg/apis/common/types"
+ "github.com/altinity/clickhouse-operator/pkg/chop"
"github.com/altinity/clickhouse-operator/pkg/interfaces"
)
@@ -44,15 +45,15 @@ type Announcer struct {
// event reason specifies k8s event reason
eventReason string
- // writeStatusAction specifies whether to produce action into `ClickHouseInstallation.Status.Action` of chi,
+ // writeAction specifies whether to produce action into `ClickHouseInstallation.Status.Action` of chi,
// therefore requires chi to be specified
- writeStatusAction bool
- // writeStatusAction specifies whether to produce action into `ClickHouseInstallation.Status.Actions` of chi,
+ writeAction bool
+ // writeActions specifies whether to produce action into `ClickHouseInstallation.Status.Actions` of chi,
// therefore requires chi to be specified
- writeStatusActions bool
- // writeStatusAction specifies whether to produce action into `ClickHouseInstallation.Status.Error` of chi,
+ writeActions bool
+ // writeError specifies whether to produce action into `ClickHouseInstallation.Status.Error` of chi,
// therefore requires chi to be specified
- writeStatusError bool
+ writeError bool
}
// NewAnnouncer creates new announcer
@@ -138,13 +139,7 @@ func (a Announcer) Info(format string, args ...interface{}) {
a.Announcer.Info(format, args...)
// Produce k8s event
- if a.writeEvent && a.capable() {
- if len(args) > 0 {
- a.eventEmitter.EventInfo(a.cr, a.eventAction, a.eventReason, fmt.Sprintf(format, args...))
- } else {
- a.eventEmitter.EventInfo(a.cr, a.eventAction, a.eventReason, fmt.Sprint(format))
- }
- }
+ a.emitEvent("info", format, args...)
// Produce chi status record
a.writeStatus(format, args...)
@@ -156,13 +151,7 @@ func (a Announcer) Warning(format string, args ...interface{}) {
a.Announcer.Warning(format, args...)
// Produce k8s event
- if a.writeEvent && a.capable() {
- if len(args) > 0 {
- a.eventEmitter.EventWarning(a.cr, a.eventAction, a.eventReason, fmt.Sprintf(format, args...))
- } else {
- a.eventEmitter.EventWarning(a.cr, a.eventAction, a.eventReason, fmt.Sprint(format))
- }
- }
+ a.emitEvent("warning", format, args...)
// Produce chi status record
a.writeStatus(format, args...)
@@ -174,13 +163,7 @@ func (a Announcer) Error(format string, args ...interface{}) {
a.Announcer.Error(format, args...)
// Produce k8s event
- if a.writeEvent && a.capable() {
- if len(args) > 0 {
- a.eventEmitter.EventError(a.cr, a.eventAction, a.eventReason, fmt.Sprintf(format, args...))
- } else {
- a.eventEmitter.EventError(a.cr, a.eventAction, a.eventReason, fmt.Sprint(format))
- }
- }
+ a.emitEvent("error", format, args...)
// Produce chi status record
a.writeStatus(format, args...)
@@ -189,13 +172,7 @@ func (a Announcer) Error(format string, args ...interface{}) {
// Fatal is inspired by log.Fatalf()
func (a Announcer) Fatal(format string, args ...interface{}) {
// Produce k8s event
- if a.writeEvent && a.capable() {
- if len(args) > 0 {
- a.eventEmitter.EventError(a.cr, a.eventAction, a.eventReason, fmt.Sprintf(format, args...))
- } else {
- a.eventEmitter.EventError(a.cr, a.eventAction, a.eventReason, fmt.Sprint(format))
- }
- }
+ a.emitEvent("error", format, args...)
// Produce chi status record
a.writeStatus(format, args...)
@@ -221,41 +198,41 @@ func (a Announcer) WithEvent(cr api.ICustomResource, action string, reason strin
return b
}
-// WithStatusAction is used in chained calls in order to produce action into `ClickHouseInstallation.Status.Action`
-func (a Announcer) WithStatusAction(cr api.ICustomResource) Announcer {
+// WithAction is used in chained calls in order to produce action into `ClickHouseInstallation.Status.Action`
+func (a Announcer) WithAction(cr api.ICustomResource) Announcer {
b := a
if cr == nil {
b.cr = nil
- b.writeStatusAction = false
+ b.writeAction = false
} else {
b.cr = cr
- b.writeStatusAction = true
+ b.writeAction = true
}
return b
}
-// WithStatusActions is used in chained calls in order to produce action in ClickHouseInstallation.Status.Actions
-func (a Announcer) WithStatusActions(cr api.ICustomResource) Announcer {
+// WithActions is used in chained calls in order to produce action in ClickHouseInstallation.Status.Actions
+func (a Announcer) WithActions(cr api.ICustomResource) Announcer {
b := a
if cr == nil {
b.cr = nil
- b.writeStatusActions = false
+ b.writeActions = false
} else {
b.cr = cr
- b.writeStatusActions = true
+ b.writeActions = true
}
return b
}
-// WithStatusError is used in chained calls in order to produce error in ClickHouseInstallation.Status.Error
-func (a Announcer) WithStatusError(cr api.ICustomResource) Announcer {
+// WithError is used in chained calls in order to produce error in ClickHouseInstallation.Status.Error
+func (a Announcer) WithError(cr api.ICustomResource) Announcer {
b := a
if cr == nil {
b.cr = nil
- b.writeStatusError = false
+ b.writeError = false
} else {
b.cr = cr
- b.writeStatusError = true
+ b.writeError = true
}
return b
}
@@ -265,6 +242,20 @@ func (a Announcer) capable() bool {
return (a.eventEmitter != nil) && (a.cr != nil)
}
+func (a Announcer) emitEvent(level string, format string, args ...interface{}) {
+ if !a.capable() {
+ return
+ }
+ if !a.writeEvent {
+ return
+ }
+ if len(args) > 0 {
+ a.eventEmitter.Event(level, a.cr, a.eventAction, a.eventReason, fmt.Sprintf(format, args...))
+ } else {
+ a.eventEmitter.Event(level, a.cr, a.eventAction, a.eventReason, fmt.Sprint(format))
+ }
+}
+
// writeStatus is internal function which writes ClickHouseInstallation.Status
func (a Announcer) writeStatus(format string, args ...interface{}) {
if !a.capable() {
@@ -275,42 +266,68 @@ func (a Announcer) writeStatus(format string, args ...interface{}) {
prefix := now.Format(time.RFC3339Nano) + " "
shouldUpdateStatus := false
- if a.writeStatusAction {
- shouldUpdateStatus = true
- if len(args) > 0 {
- a.cr.IEnsureStatus().SetAction(fmt.Sprintf(format, args...))
- } else {
- a.cr.IEnsureStatus().SetAction(fmt.Sprint(format))
- }
- }
- if a.writeStatusActions {
- shouldUpdateStatus = true
- if len(args) > 0 {
- a.cr.IEnsureStatus().PushAction(prefix + fmt.Sprintf(format, args...))
- } else {
- a.cr.IEnsureStatus().PushAction(prefix + fmt.Sprint(format))
- }
- }
- if a.writeStatusError {
- shouldUpdateStatus = true
- if len(args) > 0 {
- // PR review question: should we prefix the string in the SetError call? If so, we can SetAndPushError.
- a.cr.IEnsureStatus().SetError(fmt.Sprintf(format, args...))
- a.cr.IEnsureStatus().PushError(prefix + fmt.Sprintf(format, args...))
- } else {
- a.cr.IEnsureStatus().SetError(fmt.Sprint(format))
- a.cr.IEnsureStatus().PushError(prefix + fmt.Sprint(format))
- }
- }
+ shouldUpdateStatus = shouldUpdateStatus || a._writeActions(prefix, format, args...)
+ shouldUpdateStatus = shouldUpdateStatus || a._writeErrors(prefix, format, args...)
// Propagate status updates into object
if shouldUpdateStatus {
_ = a.statusUpdater.StatusUpdate(context.Background(), a.cr, types.UpdateStatusOptions{
TolerateAbsence: true,
CopyStatusOptions: types.CopyStatusOptions{
- Actions: true,
- Errors: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupActions: true,
+ FieldGroupErrors: true,
+ },
},
})
}
}
+
+func (a Announcer) _writeActions(prefix, format string, args ...interface{}) (shouldUpdateStatus bool) {
+ if a.writeAction {
+ if chop.Config().Status.Fields.Action.IsTrue() {
+ shouldUpdateStatus = true
+ if len(args) > 0 {
+ a.cr.IEnsureStatus().SetAction(fmt.Sprintf(format, args...))
+ } else {
+ a.cr.IEnsureStatus().SetAction(fmt.Sprint(format))
+ }
+ }
+ }
+ if a.writeActions {
+ if chop.Config().Status.Fields.Actions.IsTrue() {
+ shouldUpdateStatus = true
+ if len(args) > 0 {
+ a.cr.IEnsureStatus().PushAction(prefix + fmt.Sprintf(format, args...))
+ } else {
+ a.cr.IEnsureStatus().PushAction(prefix + fmt.Sprint(format))
+ }
+ }
+ }
+ return
+}
+
+func (a Announcer) _writeErrors(prefix, format string, args ...interface{}) (shouldUpdateStatus bool) {
+ if a.writeError {
+ if chop.Config().Status.Fields.Error.IsTrue() {
+ shouldUpdateStatus = true
+ if len(args) > 0 {
+ // PR review question: should we prefix the string in the SetError call? If so, we can SetAndPushError.
+ a.cr.IEnsureStatus().SetError(fmt.Sprintf(format, args...))
+ } else {
+ a.cr.IEnsureStatus().SetError(fmt.Sprint(format))
+ }
+ }
+ }
+ if a.writeError {
+ if chop.Config().Status.Fields.Errors.IsTrue() {
+ shouldUpdateStatus = true
+ if len(args) > 0 {
+ a.cr.IEnsureStatus().PushError(prefix + fmt.Sprintf(format, args...))
+ } else {
+ a.cr.IEnsureStatus().PushError(prefix + fmt.Sprint(format))
+ }
+ }
+ }
+ return
+}
diff --git a/pkg/controller/common/event-emitter.go b/pkg/controller/common/announcer/event-emitter.go
similarity index 93%
rename from pkg/controller/common/event-emitter.go
rename to pkg/controller/common/announcer/event-emitter.go
index e44b7b841..c96e3e8f8 100644
--- a/pkg/controller/common/event-emitter.go
+++ b/pkg/controller/common/announcer/event-emitter.go
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-package common
+package announcer
import (
"time"
@@ -83,6 +83,17 @@ func NewEventEmitter(
}
}
+func (c *EventEmitter) Event(level string, obj meta.Object, action string, reason string, message string) {
+ switch level {
+ case "info":
+ c.EventInfo(obj, action, reason, message)
+ case "warning":
+ c.EventWarning(obj, action, reason, message)
+ case "error":
+ c.EventError(obj, action, reason, message)
+ }
+}
+
// EventInfo emits event Info
func (c *EventEmitter) EventInfo(obj meta.Object, action string, reason string, message string) {
c.emitEvent(obj, eventTypeInfo, action, reason, message)
diff --git a/pkg/controller/common/statefulset/statefulset-reconciler.go b/pkg/controller/common/statefulset/statefulset-reconciler.go
index 9eed289bb..67234b998 100644
--- a/pkg/controller/common/statefulset/statefulset-reconciler.go
+++ b/pkg/controller/common/statefulset/statefulset-reconciler.go
@@ -25,6 +25,7 @@ import (
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
"github.com/altinity/clickhouse-operator/pkg/apis/common/types"
"github.com/altinity/clickhouse-operator/pkg/controller/common"
+ a "github.com/altinity/clickhouse-operator/pkg/controller/common/announcer"
"github.com/altinity/clickhouse-operator/pkg/controller/common/storage"
"github.com/altinity/clickhouse-operator/pkg/interfaces"
"github.com/altinity/clickhouse-operator/pkg/model/k8s"
@@ -32,7 +33,7 @@ import (
)
type Reconciler struct {
- a common.Announcer
+ a a.Announcer
task *common.Task
hostSTSPoller IHostStatefulSetPoller
@@ -47,7 +48,7 @@ type Reconciler struct {
}
func NewReconciler(
- a common.Announcer,
+ a a.Announcer,
task *common.Task,
hostSTSPoller IHostStatefulSetPoller,
namer interfaces.INameManager,
@@ -100,25 +101,25 @@ func (r *Reconciler) getStatefulSetStatus(host *api.Host) api.ObjectStatus {
host.GetCR().IEnsureStatus().GetHostsAddedCount(),
)
- curStatefulSet, err := r.sts.Get(context.TODO(), new)
+ cur, err := r.sts.Get(context.TODO(), new)
switch {
- case curStatefulSet != nil:
+ case cur != nil:
r.a.V(1).M(new).Info("Have StatefulSet available, try to perform label-based comparison for sts: %s", util.NamespaceNameString(new))
- return common.GetObjectStatusFromMetas(r.labeler, curStatefulSet, new)
+ return common.GetObjectStatusFromMetas(r.labeler, cur, new)
case apiErrors.IsNotFound(err):
// StatefulSet is not found at the moment.
// However, it may be just deleted
r.a.V(1).M(new).Info("No cur StatefulSet available and the reason is - not found. Either new one or a deleted sts: %s", util.NamespaceNameString(new))
if host.HasAncestor() {
- r.a.V(1).M(new).Warning("No cur StatefulSet available but host has an ancestor. Found deleted StatefulSet. for: %s", util.NamespaceNameString(new))
+ r.a.V(1).M(new).Warning("No cur StatefulSet available but host has an ancestor. Found deleted sts. for: %s", util.NamespaceNameString(new))
return api.ObjectStatusModified
}
- r.a.V(1).M(new).Info("No cur StatefulSet available and it is not found and is a new one. New one for: %s", util.NamespaceNameString(new))
+ r.a.V(1).M(new).Info("No cur StatefulSet available and it is not found and is a new one. New sts: %s", util.NamespaceNameString(new))
return api.ObjectStatusNew
default:
- r.a.V(1).M(new).Warning("Have no StatefulSet available, nor it is not found for: %s err: %v", util.NamespaceNameString(new), err)
+ r.a.V(1).M(new).Warning("Have no StatefulSet available, nor it is not found. sts: %s err: %v", util.NamespaceNameString(new), err)
return api.ObjectStatusUnknown
}
}
@@ -146,7 +147,9 @@ func (r *Reconciler) ReconcileStatefulSet(
host.GetCR().IEnsureStatus().HostUnchanged()
_ = r.cr.StatusUpdate(ctx, host.GetCR(), types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
})
}
@@ -215,8 +218,8 @@ func (r *Reconciler) updateStatefulSet(ctx context.Context, host *api.Host, regi
name := newStatefulSet.Name
r.a.V(1).
- WithEvent(host.GetCR(), common.EventActionCreate, common.EventReasonCreateStarted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionCreate, a.EventReasonCreateStarted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Update StatefulSet(%s) - started", util.NamespaceNameString(newStatefulSet))
@@ -236,13 +239,15 @@ func (r *Reconciler) updateStatefulSet(ctx context.Context, host *api.Host, regi
host.GetCR().IEnsureStatus().HostUpdated()
_ = r.cr.StatusUpdate(ctx, host.GetCR(), types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
})
}
r.a.V(1).
- WithEvent(host.GetCR(), common.EventActionUpdate, common.EventReasonUpdateCompleted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionUpdate, a.EventReasonUpdateCompleted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Update StatefulSet(%s/%s) - completed", namespace, name)
return nil
@@ -253,8 +258,8 @@ func (r *Reconciler) updateStatefulSet(ctx context.Context, host *api.Host, regi
r.a.V(1).M(host).Info("Update StatefulSet(%s/%s) - got ignore. Ignore", namespace, name)
return nil
case common.ErrCRUDRecreate:
- r.a.WithEvent(host.GetCR(), common.EventActionUpdate, common.EventReasonUpdateInProgress).
- WithStatusAction(host.GetCR()).
+ r.a.WithEvent(host.GetCR(), a.EventActionUpdate, a.EventReasonUpdateInProgress).
+ WithAction(host.GetCR()).
M(host).F().
Info("Update StatefulSet(%s/%s) switch from Update to Recreate", namespace, name)
common.DumpStatefulSetDiff(host, curStatefulSet, newStatefulSet)
@@ -281,8 +286,8 @@ func (r *Reconciler) createStatefulSet(ctx context.Context, host *api.Host, regi
defer r.a.V(2).M(host).E().Info(util.NamespaceNameString(statefulSet.GetObjectMeta()))
r.a.V(1).
- WithEvent(host.GetCR(), common.EventActionCreate, common.EventReasonCreateStarted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionCreate, a.EventReasonCreateStarted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Create StatefulSet %s - started", util.NamespaceNameString(statefulSet))
@@ -292,7 +297,9 @@ func (r *Reconciler) createStatefulSet(ctx context.Context, host *api.Host, regi
host.GetCR().IEnsureStatus().HostAdded()
_ = r.cr.StatusUpdate(ctx, host.GetCR(), types.UpdateStatusOptions{
CopyStatusOptions: types.CopyStatusOptions{
- MainFields: true,
+ CopyStatusFieldGroup: types.CopyStatusFieldGroup{
+ FieldGroupMain: true,
+ },
},
})
}
@@ -300,21 +307,21 @@ func (r *Reconciler) createStatefulSet(ctx context.Context, host *api.Host, regi
switch action {
case nil:
r.a.V(1).
- WithEvent(host.GetCR(), common.EventActionCreate, common.EventReasonCreateCompleted).
- WithStatusAction(host.GetCR()).
+ WithEvent(host.GetCR(), a.EventActionCreate, a.EventReasonCreateCompleted).
+ WithAction(host.GetCR()).
M(host).F().
Info("Create StatefulSet: %s - completed", util.NamespaceNameString(statefulSet))
return nil
case common.ErrCRUDAbort:
- r.a.WithEvent(host.GetCR(), common.EventActionCreate, common.EventReasonCreateFailed).
- WithStatusAction(host.GetCR()).
- WithStatusError(host.GetCR()).
+ r.a.WithEvent(host.GetCR(), a.EventActionCreate, a.EventReasonCreateFailed).
+ WithAction(host.GetCR()).
+ WithError(host.GetCR()).
M(host).F().
Error("Create StatefulSet: %s - failed with error: %v", util.NamespaceNameString(statefulSet), action)
return action
case common.ErrCRUDIgnore:
- r.a.WithEvent(host.GetCR(), common.EventActionCreate, common.EventReasonCreateFailed).
- WithStatusAction(host.GetCR()).
+ r.a.WithEvent(host.GetCR(), a.EventActionCreate, a.EventReasonCreateFailed).
+ WithAction(host.GetCR()).
M(host).F().
Warning("Create StatefulSet: %s - error ignored", util.NamespaceNameString(statefulSet))
return nil
@@ -334,7 +341,7 @@ func (r *Reconciler) createStatefulSet(ctx context.Context, host *api.Host, regi
func (r *Reconciler) waitForConfigMapPropagation(ctx context.Context, host *api.Host) bool {
// No need to wait for ConfigMap propagation on stopped host
if host.IsStopped() {
- r.a.V(1).M(host).F().Info("No need to wait for ConfigMap propagation - on stopped host")
+ r.a.V(1).M(host).F().Info("No need to wait for ConfigMap propagation - host is stopped")
return false
}
@@ -347,7 +354,7 @@ func (r *Reconciler) waitForConfigMapPropagation(ctx context.Context, host *api.
// What timeout is expected to be enough for ConfigMap propagation?
// In case timeout is not specified, no need to wait
if !host.GetCR().GetReconciling().HasConfigMapPropagationTimeout() {
- r.a.V(1).M(host).F().Info("No need to wait for ConfigMap propagation - not applicable")
+ r.a.V(1).M(host).F().Info("No need to wait for ConfigMap propagation - not applicable due to missing timeout value")
return false
}
@@ -357,18 +364,19 @@ func (r *Reconciler) waitForConfigMapPropagation(ctx context.Context, host *api.
// May be there is no need to wait already
elapsed := time.Now().Sub(r.task.CmUpdate())
if elapsed >= timeout {
- r.a.V(1).M(host).F().Info("No need to wait for ConfigMap propagation - already elapsed. %s/%s", elapsed, timeout)
+ r.a.V(1).M(host).F().Info("No need to wait for ConfigMap propagation - already elapsed. [elapsed/timeout: %s/%s]", elapsed, timeout)
return false
}
// Looks like we need to wait for Configmap propagation, after all
wait := timeout - elapsed
- r.a.V(1).M(host).F().Info("Wait for ConfigMap propagation for %s %s/%s", wait, elapsed, timeout)
+ r.a.V(1).M(host).F().Info("Going to wait for ConfigMap propagation for: %s [elapsed/timeout: %s/%s]", wait, elapsed, timeout)
if util.WaitContextDoneOrTimeout(ctx, wait) {
log.V(2).Info("task is done")
return true
}
+ r.a.V(1).M(host).F().Info("Wait completed for: %s of timeout: %s]", wait, timeout)
return false
}
diff --git a/pkg/controller/common/storage/storage-pvc.go b/pkg/controller/common/storage/storage-pvc.go
index e7a59d19f..acdbb8d3b 100644
--- a/pkg/controller/common/storage/storage-pvc.go
+++ b/pkg/controller/common/storage/storage-pvc.go
@@ -49,7 +49,7 @@ func (c *PVC) UpdateOrCreate(ctx context.Context, pvc *core.PersistentVolumeClai
return nil, fmt.Errorf("task is done")
}
- _, err := c.Get(ctx, pvc.Namespace, pvc.Name)
+ oldPvc, err := c.Get(ctx, pvc.Namespace, pvc.Name)
if err != nil {
if apiErrors.IsNotFound(err) {
log.V(1).M(pvc).F().Error("PVC not found, need to create %s", util.NamespacedName(pvc))
@@ -62,6 +62,14 @@ func (c *PVC) UpdateOrCreate(ctx context.Context, pvc *core.PersistentVolumeClai
// In case of any non-NotFound API error - unable to proceed
log.V(1).M(pvc).F().Error("ERROR unable to get PVC(%s) err: %v", util.NamespacedName(pvc), err)
return nil, err
+ }
+
+ oldStorageRequest := oldPvc.Spec.Resources.Requests[core.ResourceStorage]
+ newStorageRequest := pvc.Spec.Resources.Requests[core.ResourceStorage]
+
+ if oldStorageRequest.Cmp(newStorageRequest) == 1 {
+ log.V(1).M(pvc).F().Info("PVC storage was increased externally to greater value and value cannot be decreased, using greater value")
+ pvc.Spec.Resources.Requests[core.ResourceStorage] = oldStorageRequest
}
pvcUpdated, err := c.Update(ctx, pvc)
diff --git a/pkg/controller/common/task.go b/pkg/controller/common/task.go
index f8ab9f1e2..8d37ffaa9 100644
--- a/pkg/controller/common/task.go
+++ b/pkg/controller/common/task.go
@@ -23,7 +23,8 @@ import (
// task represents context of a worker. This also can be called "a reconcile task"
type Task struct {
- creator interfaces.ICreator
+ creatorNew interfaces.ICreator
+ creatorOld interfaces.ICreator
registryReconciled *model.Registry
registryFailed *model.Registry
cmUpdate time.Time
@@ -31,9 +32,10 @@ type Task struct {
}
// NewTask creates new context
-func NewTask(creator interfaces.ICreator) *Task {
+func NewTask(creatorNew, creatorOld interfaces.ICreator) *Task {
return &Task{
- creator: creator,
+ creatorNew: creatorNew,
+ creatorOld: creatorOld,
registryReconciled: model.NewRegistry(),
registryFailed: model.NewRegistry(),
cmUpdate: time.Time{},
@@ -42,7 +44,11 @@ func NewTask(creator interfaces.ICreator) *Task {
}
func (t *Task) Creator() interfaces.ICreator {
- return t.creator
+ return t.creatorNew
+}
+
+func (t *Task) CreatorPrev() interfaces.ICreator {
+ return t.creatorOld
}
func (t *Task) RegistryReconciled() *model.Registry {
diff --git a/pkg/interfaces/interfaces-main.go b/pkg/interfaces/interfaces-main.go
index 13edc5ead..77592b2ee 100644
--- a/pkg/interfaces/interfaces-main.go
+++ b/pkg/interfaces/interfaces-main.go
@@ -106,6 +106,7 @@ type ICreator interface {
}
type IEventEmitter interface {
+ Event(level string, obj meta.Object, action string, reason string, message string)
EventInfo(obj meta.Object, action string, reason string, message string)
EventWarning(obj meta.Object, action string, reason string, message string)
EventError(obj meta.Object, action string, reason string, message string)
diff --git a/pkg/metrics/clickhouse/chi_index.go b/pkg/metrics/clickhouse/chi_index.go
index f70209b3f..29904d6db 100644
--- a/pkg/metrics/clickhouse/chi_index.go
+++ b/pkg/metrics/clickhouse/chi_index.go
@@ -16,17 +16,17 @@ package clickhouse
import "github.com/altinity/clickhouse-operator/pkg/apis/metrics"
-type chInstallationsIndex map[string]*metrics.WatchedCHI
+type chInstallationsIndex map[string]*metrics.WatchedCR
-func (i chInstallationsIndex) slice() []*metrics.WatchedCHI {
- res := make([]*metrics.WatchedCHI, 0)
+func (i chInstallationsIndex) slice() []*metrics.WatchedCR {
+ res := make([]*metrics.WatchedCR, 0)
for _, chi := range i {
res = append(res, chi)
}
return res
}
-func (i chInstallationsIndex) get(key string) (*metrics.WatchedCHI, bool) {
+func (i chInstallationsIndex) get(key string) (*metrics.WatchedCR, bool) {
if i == nil {
return nil, false
}
@@ -36,7 +36,7 @@ func (i chInstallationsIndex) get(key string) (*metrics.WatchedCHI, bool) {
return nil, false
}
-func (i chInstallationsIndex) set(key string, value *metrics.WatchedCHI) {
+func (i chInstallationsIndex) set(key string, value *metrics.WatchedCR) {
if i == nil {
return
}
@@ -52,7 +52,7 @@ func (i chInstallationsIndex) remove(key string) {
}
}
-func (i chInstallationsIndex) walk(f func(*metrics.WatchedCHI, *metrics.WatchedCluster, *metrics.WatchedHost)) {
+func (i chInstallationsIndex) walk(f func(*metrics.WatchedCR, *metrics.WatchedCluster, *metrics.WatchedHost)) {
// Loop over ClickHouseInstallations
for _, chi := range i {
chi.WalkHosts(f)
diff --git a/pkg/metrics/clickhouse/clickhouse_metrics_fetcher.go b/pkg/metrics/clickhouse/clickhouse_metrics_fetcher.go
index cbad28ebc..c3c0ab373 100644
--- a/pkg/metrics/clickhouse/clickhouse_metrics_fetcher.go
+++ b/pkg/metrics/clickhouse/clickhouse_metrics_fetcher.go
@@ -248,21 +248,11 @@ func (f *ClickHouseMetricsFetcher) getClickHouseQueryDetachedParts(ctx context.C
)
}
-// ScanFunction defines function to scan rows
-type ScanFunction func(rows *sql.Rows, data *Table) error
-
-// Table defines tables of strings
-type Table [][]string
-
-func newTable() Table {
- return make(Table, 0)
-}
-
// clickHouseQueryScanRows scan all rows by external scan function
func (f *ClickHouseMetricsFetcher) clickHouseQueryScanRows(
ctx context.Context,
sql string,
- scan ScanFunction,
+ scanner ScanFunction,
) (Table, error) {
if util.IsContextDone(ctx) {
return nil, ctx.Err()
@@ -277,7 +267,7 @@ func (f *ClickHouseMetricsFetcher) clickHouseQueryScanRows(
if util.IsContextDone(ctx) {
return nil, ctx.Err()
}
- _ = scan(query.Rows, &data)
+ _ = scanner(query.Rows, &data)
}
return data, nil
}
diff --git a/pkg/metrics/clickhouse/exporter.go b/pkg/metrics/clickhouse/exporter.go
index 6a07d36ca..891e3f1d2 100644
--- a/pkg/metrics/clickhouse/exporter.go
+++ b/pkg/metrics/clickhouse/exporter.go
@@ -56,13 +56,13 @@ var _ prometheus.Collector = &Exporter{}
// NewExporter returns a new instance of Exporter type
func NewExporter(collectorTimeout time.Duration) *Exporter {
return &Exporter{
- chInstallations: make(map[string]*metrics.WatchedCHI),
+ chInstallations: make(map[string]*metrics.WatchedCR),
collectorTimeout: collectorTimeout,
}
}
// getWatchedCHIs
-func (e *Exporter) getWatchedCHIs() []*metrics.WatchedCHI {
+func (e *Exporter) getWatchedCHIs() []*metrics.WatchedCR {
return e.chInstallations.slice()
}
@@ -94,9 +94,9 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
log.V(1).Infof("Launching host collectors [%s]", time.Now().Sub(start))
var wg = sync.WaitGroup{}
- e.chInstallations.walk(func(chi *metrics.WatchedCHI, _ *metrics.WatchedCluster, host *metrics.WatchedHost) {
+ e.chInstallations.walk(func(chi *metrics.WatchedCR, _ *metrics.WatchedCluster, host *metrics.WatchedHost) {
wg.Add(1)
- go func(ctx context.Context, chi *metrics.WatchedCHI, host *metrics.WatchedHost, ch chan<- prometheus.Metric) {
+ go func(ctx context.Context, chi *metrics.WatchedCR, host *metrics.WatchedHost, ch chan<- prometheus.Metric) {
defer wg.Done()
e.collectHostMetrics(ctx, chi, host, ch)
}(ctx, chi, host, ch)
@@ -110,7 +110,7 @@ func (e *Exporter) Describe(ch chan<- *prometheus.Desc) {
}
// enqueueToRemoveFromWatched
-func (e *Exporter) enqueueToRemoveFromWatched(chi *metrics.WatchedCHI) {
+func (e *Exporter) enqueueToRemoveFromWatched(chi *metrics.WatchedCR) {
e.toRemoveFromWatched.Store(chi, struct{}{})
}
@@ -120,10 +120,10 @@ func (e *Exporter) cleanup() {
log.V(2).Info("Starting cleanup")
e.toRemoveFromWatched.Range(func(key, value interface{}) bool {
switch key.(type) {
- case *metrics.WatchedCHI:
+ case *metrics.WatchedCR:
e.toRemoveFromWatched.Delete(key)
- e.removeFromWatched(key.(*metrics.WatchedCHI))
- log.V(1).Infof("Removed ClickHouseInstallation (%s/%s) from Exporter", key.(*metrics.WatchedCHI).Name, key.(*metrics.WatchedCHI).Namespace)
+ e.removeFromWatched(key.(*metrics.WatchedCR))
+ log.V(1).Infof("Removed ClickHouseInstallation (%s/%s) from Exporter", key.(*metrics.WatchedCR).Name, key.(*metrics.WatchedCR).Namespace)
}
return true
})
@@ -131,7 +131,7 @@ func (e *Exporter) cleanup() {
}
// removeFromWatched deletes record from Exporter.chInstallation map identified by chiName key
-func (e *Exporter) removeFromWatched(chi *metrics.WatchedCHI) {
+func (e *Exporter) removeFromWatched(chi *metrics.WatchedCR) {
e.mutex.Lock()
defer e.mutex.Unlock()
log.V(1).Infof("Remove ClickHouseInstallation (%s/%s)", chi.Namespace, chi.Name)
@@ -139,7 +139,7 @@ func (e *Exporter) removeFromWatched(chi *metrics.WatchedCHI) {
}
// updateWatched updates Exporter.chInstallation map with values from chInstances slice
-func (e *Exporter) updateWatched(chi *metrics.WatchedCHI) {
+func (e *Exporter) updateWatched(chi *metrics.WatchedCR) {
e.mutex.Lock()
defer e.mutex.Unlock()
log.V(1).Infof("Update ClickHouseInstallation (%s/%s): %s", chi.Namespace, chi.Name, chi)
@@ -171,7 +171,7 @@ func (e *Exporter) newHostFetcher(host *metrics.WatchedHost) *ClickHouseMetricsF
}
// collectHostMetrics collects metrics from one host and writes them into chan
-func (e *Exporter) collectHostMetrics(ctx context.Context, chi *metrics.WatchedCHI, host *metrics.WatchedHost, c chan<- prometheus.Metric) {
+func (e *Exporter) collectHostMetrics(ctx context.Context, chi *metrics.WatchedCR, host *metrics.WatchedHost, c chan<- prometheus.Metric) {
fetcher := e.newHostFetcher(host)
writer := NewCHIPrometheusWriter(c, chi, host)
@@ -340,8 +340,8 @@ func (e *Exporter) getWatchedCHI(w http.ResponseWriter, r *http.Request) {
}
// fetchCHI decodes chi from the request
-func (e *Exporter) fetchCHI(r *http.Request) (*metrics.WatchedCHI, error) {
- chi := &metrics.WatchedCHI{}
+func (e *Exporter) fetchCHI(r *http.Request) (*metrics.WatchedCR, error) {
+ chi := &metrics.WatchedCR{}
if err := json.NewDecoder(r.Body).Decode(chi); err == nil {
if chi.IsValid() {
return chi, nil
@@ -405,7 +405,7 @@ func (e *Exporter) DiscoveryWatchedCHIs(kubeClient kube.Interface, chopClient *c
})
normalized, _ := normalizer.CreateTemplated(chi, normalizerCommon.NewOptions())
- watchedCHI := metrics.NewWatchedCHI(normalized)
+ watchedCHI := metrics.NewWatchedCR(normalized)
e.updateWatched(watchedCHI)
}
}
diff --git a/pkg/metrics/clickhouse/prometheus_writer.go b/pkg/metrics/clickhouse/prometheus_writer.go
index 723d37049..cc7cad5ed 100644
--- a/pkg/metrics/clickhouse/prometheus_writer.go
+++ b/pkg/metrics/clickhouse/prometheus_writer.go
@@ -16,8 +16,6 @@ package clickhouse
import (
"fmt"
- "github.com/altinity/clickhouse-operator/pkg/apis/metrics"
- "github.com/altinity/clickhouse-operator/pkg/metrics/operator"
"strconv"
"time"
@@ -25,6 +23,9 @@ import (
// log "k8s.io/klog"
"github.com/prometheus/client_golang/prometheus"
+ "github.com/altinity/clickhouse-operator/pkg/apis/metrics"
+ "github.com/altinity/clickhouse-operator/pkg/chop"
+ "github.com/altinity/clickhouse-operator/pkg/metrics/operator"
"github.com/altinity/clickhouse-operator/pkg/util"
)
@@ -41,14 +42,14 @@ const (
// CHIPrometheusWriter specifies writer to prometheus
type CHIPrometheusWriter struct {
out chan<- prometheus.Metric
- chi *metrics.WatchedCHI
+ chi *metrics.WatchedCR
host *metrics.WatchedHost
}
// NewCHIPrometheusWriter creates new CHI prometheus writer
func NewCHIPrometheusWriter(
out chan<- prometheus.Metric,
- chi *metrics.WatchedCHI,
+ chi *metrics.WatchedCR,
host *metrics.WatchedHost,
) *CHIPrometheusWriter {
return &CHIPrometheusWriter{
@@ -77,10 +78,7 @@ func (w *CHIPrometheusWriter) WriteMetrics(data [][]string) {
} else {
metricType = prometheus.GaugeValue
}
- w.writeSingleMetricToPrometheus(
- name, desc,
- metricType, value,
- nil, nil)
+ w.writeSingleMetricToPrometheus(name, desc, metricType, value, nil)
}
}
@@ -92,28 +90,31 @@ func (w *CHIPrometheusWriter) WriteTableSizes(data [][]string) {
if len(metric) < 2 {
continue
}
- labelNames := []string{"database", "table", "active"}
- labelValues := []string{metric[0], metric[1], metric[2]}
+ labels := map[string]string{
+ "database": metric[0],
+ "table": metric[1],
+ "active": metric[2],
+ }
w.writeSingleMetricToPrometheus(
"table_partitions", "Number of partitions of the table",
prometheus.GaugeValue, metric[3],
- labelNames, labelValues)
+ labels)
w.writeSingleMetricToPrometheus(
"table_parts", "Number of parts of the table",
prometheus.GaugeValue, metric[4],
- labelNames, labelValues)
+ labels)
w.writeSingleMetricToPrometheus(
"table_parts_bytes", "Table size in bytes",
prometheus.GaugeValue, metric[5],
- labelNames, labelValues)
+ labels)
w.writeSingleMetricToPrometheus(
"table_parts_bytes_uncompressed", "Table size in bytes uncompressed",
prometheus.GaugeValue, metric[6],
- labelNames, labelValues)
+ labels)
w.writeSingleMetricToPrometheus(
"table_parts_rows", "Number of rows in the table",
prometheus.GaugeValue, metric[7],
- labelNames, labelValues)
+ labels)
}
}
@@ -149,90 +150,103 @@ func (w *CHIPrometheusWriter) WriteSystemParts(data [][]string) {
// WriteSystemReplicas writes system replicas
func (w *CHIPrometheusWriter) WriteSystemReplicas(data [][]string) {
for _, metric := range data {
- labelNames := []string{"database", "table"}
- labelValues := []string{metric[0], metric[1]}
+ labels := map[string]string{
+ "database": metric[0],
+ "table": metric[1],
+ }
w.writeSingleMetricToPrometheus(
"system_replicas_is_session_expired", "Number of expired Zookeeper sessions of the table",
prometheus.GaugeValue, metric[2],
- labelNames, labelValues)
+ labels)
}
}
// WriteMutations writes mutations
func (w *CHIPrometheusWriter) WriteMutations(data [][]string) {
for _, metric := range data {
- labelNames := []string{"database", "table"}
- labelValues := []string{metric[0], metric[1]}
+ labels := map[string]string{
+ "database": metric[0],
+ "table": metric[1],
+ }
w.writeSingleMetricToPrometheus(
"table_mutations", "Number of active mutations for the table",
prometheus.GaugeValue, metric[2],
- labelNames, labelValues)
+ labels)
w.writeSingleMetricToPrometheus(
"table_mutations_parts_to_do", "Number of data parts that need to be mutated for the mutation to finish",
prometheus.GaugeValue, metric[3],
- labelNames, labelValues)
+ labels)
}
}
// WriteSystemDisks writes system disks
func (w *CHIPrometheusWriter) WriteSystemDisks(data [][]string) {
for _, metric := range data {
- labelNames := []string{"disk"}
- labelValues := []string{metric[0]}
+ labels := map[string]string{
+ "disk": metric[0],
+ }
w.writeSingleMetricToPrometheus(
"metric_DiskFreeBytes", "Free disk space available from system.disks",
prometheus.GaugeValue, metric[1],
- labelNames, labelValues)
+ labels)
w.writeSingleMetricToPrometheus(
"metric_DiskTotalBytes", "Total disk space available from system.disks",
prometheus.GaugeValue, metric[2],
- labelNames, labelValues)
+ labels)
}
}
// WriteDetachedParts writes detached parts
func (w *CHIPrometheusWriter) WriteDetachedParts(data [][]string) {
for _, metric := range data {
- labelNames := []string{"database", "table", "disk", "reason"}
- labelValues := []string{metric[1], metric[2], metric[3], metric[4]}
+ labels := map[string]string{
+ "database": metric[1],
+ "table": metric[2],
+ "disk": metric[3],
+ "reason": metric[4],
+ }
w.writeSingleMetricToPrometheus(
"metric_DetachedParts", "Count of currently detached parts from system.detached_parts",
prometheus.GaugeValue, metric[0],
- labelNames, labelValues)
+ labels)
}
}
// WriteErrorFetch writes error fetch
func (w *CHIPrometheusWriter) WriteErrorFetch(fetchType string) {
- labelNames := []string{"fetch_type"}
- labelValues := []string{fetchType}
+ labels := map[string]string{
+ "fetch_type": fetchType,
+ }
w.writeSingleMetricToPrometheus(
"metric_fetch_errors", "status of fetching metrics from ClickHouse 1 - unsuccessful, 0 - successful",
prometheus.GaugeValue, "1",
- labelNames, labelValues)
+ labels)
}
// WriteOKFetch writes successful fetch
func (w *CHIPrometheusWriter) WriteOKFetch(fetchType string) {
- labelNames := []string{"fetch_type"}
- labelValues := []string{fetchType}
+ labels := map[string]string{
+ "fetch_type": fetchType,
+ }
w.writeSingleMetricToPrometheus(
"metric_fetch_errors", "status of fetching metrics from ClickHouse 1 - unsuccessful, 0 - successful",
prometheus.GaugeValue, "0",
- labelNames, labelValues)
+ labels)
}
-func (w *CHIPrometheusWriter) appendHostLabel(labels, values []string) ([]string, []string) {
- return append(labels, "hostname"), append(values, w.host.Hostname)
+func (w *CHIPrometheusWriter) appendHostLabel(labels map[string]string) map[string]string {
+ return util.MergeStringMapsOverwrite(labels, map[string]string{
+ "hostname": w.host.Hostname,
+ })
}
-func (w *CHIPrometheusWriter) getMandatoryLabelsAndValues() (labelNames []string, labelValues []string) {
- // Prepare mandatory set of labels
- labelNames, labelValues = operator.GetMandatoryLabelsAndValues(w.chi)
+func (w *CHIPrometheusWriter) getBaseSetLabelsAndValues() map[string]string {
+ // Prepare set of labels from watched CR
+ labels := operator.GetLabelsFromSource(w.chi)
// Append current host label
- labelNames, labelValues = w.appendHostLabel(labelNames, labelValues)
+ labels = w.appendHostLabel(labels)
- return labelNames, labelValues
+ return labels
}
func (w *CHIPrometheusWriter) writeSingleMetricToPrometheus(
@@ -240,16 +254,13 @@ func (w *CHIPrometheusWriter) writeSingleMetricToPrometheus(
desc string,
metricType prometheus.ValueType,
value string,
- optionalLabels []string,
- optionalLabelValues []string,
+ metricLabels map[string]string,
) {
- // Prepare mandatory set of labels
- labelNames, labelValues := w.getMandatoryLabelsAndValues()
- // Append optional labels
- labelNames = append(labelNames, optionalLabels...)
- labelValues = append(labelValues, optionalLabelValues...)
-
+ // Prepare metrics labels
+ labelNames, labelValues := w.prepareLabels(metricLabels)
+ // Prepare metrics value
floatValue, _ := strconv.ParseFloat(value, 64)
+ // Prepare metric from value and labels
metric, err := prometheus.NewConstMetric(
newMetricDescriptor(name, desc, labelNames),
metricType,
@@ -268,6 +279,19 @@ func (w *CHIPrometheusWriter) writeSingleMetricToPrometheus(
}
}
+func (w *CHIPrometheusWriter) prepareLabels(extraLabels map[string]string) (labelNames []string, labelValues []string) {
+ // Prepare base set of labels
+ // Append particular metric labels
+ labels := util.MergeStringMapsOverwrite(w.getBaseSetLabelsAndValues(), extraLabels)
+ // Filter out metrics to be skipped
+ labels = util.CopyMapFilter(
+ labels,
+ nil,
+ chop.Config().Metrics.Labels.Exclude,
+ )
+ return util.MapGetSortedKeysAndValues(labels)
+}
+
// newMetricDescriptor creates a new prometheus.Desc object
func newMetricDescriptor(name, help string, labels []string) *prometheus.Desc {
return prometheus.NewDesc(
diff --git a/pkg/metrics/clickhouse/rest_client.go b/pkg/metrics/clickhouse/rest_client.go
index 4c91d22bb..55510d3a7 100644
--- a/pkg/metrics/clickhouse/rest_client.go
+++ b/pkg/metrics/clickhouse/rest_client.go
@@ -17,11 +17,11 @@ package clickhouse
import "github.com/altinity/clickhouse-operator/pkg/apis/metrics"
// InformMetricsExporterAboutWatchedCHI informs exporter about new watched CHI
-func InformMetricsExporterAboutWatchedCHI(chi *metrics.WatchedCHI) error {
+func InformMetricsExporterAboutWatchedCHI(chi *metrics.WatchedCR) error {
return makeRESTCall(chi, "POST")
}
// InformMetricsExporterToDeleteWatchedCHI informs exporter to delete/forget watched CHI
-func InformMetricsExporterToDeleteWatchedCHI(chi *metrics.WatchedCHI) error {
+func InformMetricsExporterToDeleteWatchedCHI(chi *metrics.WatchedCR) error {
return makeRESTCall(chi, "DELETE")
}
diff --git a/pkg/metrics/clickhouse/rest_machinery.go b/pkg/metrics/clickhouse/rest_machinery.go
index 1eb014433..767a9ce7e 100644
--- a/pkg/metrics/clickhouse/rest_machinery.go
+++ b/pkg/metrics/clickhouse/rest_machinery.go
@@ -23,7 +23,7 @@ import (
"net/http"
)
-func makeRESTCall(chi *metrics.WatchedCHI, method string) error {
+func makeRESTCall(chi *metrics.WatchedCR, method string) error {
url := "http://127.0.0.1:8888/chi"
json, err := json.Marshal(chi)
diff --git a/pkg/metrics/clickhouse/types.go b/pkg/metrics/clickhouse/types.go
new file mode 100644
index 000000000..8935fd13b
--- /dev/null
+++ b/pkg/metrics/clickhouse/types.go
@@ -0,0 +1,29 @@
+// Copyright 2019 Altinity Ltd and/or its affiliates. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package clickhouse
+
+import (
+ "database/sql"
+)
+
+// ScanFunction defines function to scan rows
+type ScanFunction func(rows *sql.Rows, data *Table) error
+
+// Table defines tables of strings
+type Table [][]string
+
+func newTable() Table {
+ return make(Table, 0)
+}
diff --git a/pkg/metrics/operator/interface.go b/pkg/metrics/operator/interface.go
new file mode 100644
index 000000000..807b1bc1f
--- /dev/null
+++ b/pkg/metrics/operator/interface.go
@@ -0,0 +1,22 @@
+// Copyright 2019 Altinity Ltd and/or its affiliates. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package operator
+
+type labelsSource interface {
+ GetName() string
+ GetNamespace() string
+ GetLabels() map[string]string
+ GetAnnotations() map[string]string
+}
diff --git a/pkg/metrics/operator/labels.go b/pkg/metrics/operator/labels.go
new file mode 100644
index 000000000..28aff43d0
--- /dev/null
+++ b/pkg/metrics/operator/labels.go
@@ -0,0 +1,49 @@
+// Copyright 2019 Altinity Ltd and/or its affiliates. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package operator
+
+import (
+ "github.com/altinity/clickhouse-operator/pkg/util"
+)
+
+func GetLabelsFromSource(src labelsSource) (labels map[string]string) {
+ return util.MergeStringMapsOverwrite(
+ util.MergeStringMapsOverwrite(
+ util.MergeStringMapsOverwrite(labels, getLabelsFromName(src)),
+ getLabelsFromLabels(src),
+ ),
+ getLabelsFromAnnotations(src),
+ )
+}
+
+func getLabelsFromName(chi labelsSource) map[string]string {
+ return map[string]string{
+ "chi": chi.GetName(),
+ "namespace": chi.GetNamespace(),
+ }
+}
+
+func getLabelsFromLabels(chi labelsSource) map[string]string {
+ return chi.GetLabels()
+}
+
+func getLabelsFromAnnotations(chi labelsSource) map[string]string {
+ // Exclude skipped annotations
+ return util.CopyMapFilter(
+ chi.GetAnnotations(),
+ nil,
+ util.ListSkippedAnnotations(),
+ )
+}
diff --git a/pkg/metrics/operator/metrics.go b/pkg/metrics/operator/machinery.go
similarity index 72%
rename from pkg/metrics/operator/metrics.go
rename to pkg/metrics/operator/machinery.go
index 84e4b4689..f519d6af9 100644
--- a/pkg/metrics/operator/metrics.go
+++ b/pkg/metrics/operator/machinery.go
@@ -28,7 +28,6 @@ import (
log "github.com/altinity/clickhouse-operator/pkg/announcer"
"github.com/altinity/clickhouse-operator/pkg/apis/deployment"
"github.com/altinity/clickhouse-operator/pkg/chop"
- "github.com/altinity/clickhouse-operator/pkg/util"
"github.com/altinity/clickhouse-operator/pkg/version"
)
@@ -105,45 +104,3 @@ func serveMetrics(addr, path string) {
}
fmt.Printf("end serving metrics at: %s%s\n", addr, path)
}
-
-type BaseInfoGetter interface {
- GetName() string
- GetNamespace() string
- GetLabels() map[string]string
- GetAnnotations() map[string]string
-}
-
-func getLabelsFromName(chi BaseInfoGetter) (labels []string, values []string) {
- return []string{"chi", "namespace"}, []string{chi.GetName(), chi.GetNamespace()}
-}
-
-func getLabelsFromLabels(chi BaseInfoGetter) (labels []string, values []string) {
- return util.MapGetSortedKeysAndValues(chi.GetLabels())
-}
-
-func getLabelsFromAnnotations(chi BaseInfoGetter) (labels []string, values []string) {
- return util.MapGetSortedKeysAndValues(
- // Exclude skipped annotations
- util.CopyMapFilter(
- chi.GetAnnotations(),
- nil,
- util.ListSkippedAnnotations(),
- ),
- )
-}
-
-func GetMandatoryLabelsAndValues(cr BaseInfoGetter) (labels []string, values []string) {
- labelsFromNames, valuesFromNames := getLabelsFromName(cr)
- labels = append(labels, labelsFromNames...)
- values = append(values, valuesFromNames...)
-
- labelsFromLabels, valuesFromLabels := getLabelsFromLabels(cr)
- labels = append(labels, labelsFromLabels...)
- values = append(values, valuesFromLabels...)
-
- labelsFromAnnotations, valuesFromAnnotations := getLabelsFromAnnotations(cr)
- labels = append(labels, labelsFromAnnotations...)
- values = append(values, valuesFromAnnotations...)
-
- return labels, values
-}
diff --git a/pkg/model/chi/config/files_generator.go b/pkg/model/chi/config/files_generator.go
index 36fc796fb..bc108a70a 100644
--- a/pkg/model/chi/config/files_generator.go
+++ b/pkg/model/chi/config/files_generator.go
@@ -16,23 +16,41 @@ package config
import (
chi "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
- "github.com/altinity/clickhouse-operator/pkg/chop"
"github.com/altinity/clickhouse-operator/pkg/interfaces"
"github.com/altinity/clickhouse-operator/pkg/util"
)
// FilesGenerator specifies configuration generator object
type FilesGenerator struct {
- configGenerator *Generator
- // clickhouse-operator configuration
- chopConfig *chi.OperatorConfig
+ configGeneratorGeneric IConfigGeneratorGeneric
+ // paths to additional config files
+ pathsGetter chi.IOperatorConfigFilesPathsGetter
+ // configFilesGeneratorDomain files generator
+ configFilesGeneratorDomain IFilesGeneratorDomain
+}
+
+type IConfigGeneratorGeneric interface {
+ GetGlobalSettings() string
+ GetSectionFromFiles(section chi.SettingsSection, includeUnspecified bool, host *chi.Host) map[string]string
+ GetHostSettings(host *chi.Host) string
+}
+
+type IFilesGeneratorDomain interface {
+ CreateConfigFilesGroupCommon(configSections map[string]string, options *FilesGeneratorOptions)
+ CreateConfigFilesGroupUsers(configSections map[string]string)
+ CreateConfigFilesGroupHost(configSections map[string]string, options *FilesGeneratorOptions)
}
// NewFilesGenerator creates new configuration files generator object
-func NewFilesGenerator(cr chi.ICustomResource, namer interfaces.INameManager, opts *GeneratorOptions) *FilesGenerator {
+func NewFilesGenerator(
+ configGeneratorGeneric IConfigGeneratorGeneric,
+ pathsGetter chi.IOperatorConfigFilesPathsGetter,
+ configFilesGeneratorDomain IFilesGeneratorDomain,
+) *FilesGenerator {
return &FilesGenerator{
- configGenerator: newGenerator(cr, namer, opts),
- chopConfig: chop.Config(),
+ configGeneratorGeneric: configGeneratorGeneric,
+ pathsGetter: pathsGetter,
+ configFilesGeneratorDomain: configFilesGeneratorDomain,
}
}
@@ -71,16 +89,16 @@ func (c *FilesGenerator) createConfigFilesGroupCommon(options *FilesGeneratorOpt
}
func (c *FilesGenerator) createConfigFilesGroupCommonDomain(configSections map[string]string, options *FilesGeneratorOptions) {
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configRemoteServers), c.configGenerator.getRemoteServers(options.GetRemoteServersOptions()))
+ c.configFilesGeneratorDomain.CreateConfigFilesGroupCommon(configSections, options)
}
func (c *FilesGenerator) createConfigFilesGroupCommonGeneric(configSections map[string]string, options *FilesGeneratorOptions) {
// common settings
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configSettings), c.configGenerator.getGlobalSettings())
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configSettings), c.configGeneratorGeneric.GetGlobalSettings())
// common files
- util.MergeStringMapsOverwrite(configSections, c.configGenerator.getSectionFromFiles(chi.SectionCommon, true, nil))
+ util.MergeStringMapsOverwrite(configSections, c.configGeneratorGeneric.GetSectionFromFiles(chi.SectionCommon, true, nil))
// Extra user-specified config files
- util.MergeStringMapsOverwrite(configSections, c.chopConfig.ClickHouse.Config.File.Runtime.CommonConfigFiles)
+ util.MergeStringMapsOverwrite(configSections, c.pathsGetter.GetCommonConfigFiles())
}
// createConfigFilesGroupUsers creates users config files
@@ -95,19 +113,14 @@ func (c *FilesGenerator) createConfigFilesGroupUsers() map[string]string {
}
func (c *FilesGenerator) createConfigFilesGroupUsersDomain(configSections map[string]string) {
- // users
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configUsers), c.configGenerator.getUsers())
- // quotas
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configQuotas), c.configGenerator.getQuotas())
- // profiles
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configProfiles), c.configGenerator.getProfiles())
+ c.configFilesGeneratorDomain.CreateConfigFilesGroupUsers(configSections)
}
func (c *FilesGenerator) createConfigFilesGroupUsersGeneric(configSections map[string]string) {
// user files
- util.MergeStringMapsOverwrite(configSections, c.configGenerator.getSectionFromFiles(chi.SectionUsers, false, nil))
+ util.MergeStringMapsOverwrite(configSections, c.configGeneratorGeneric.GetSectionFromFiles(chi.SectionUsers, false, nil))
// Extra user-specified config files
- util.MergeStringMapsOverwrite(configSections, c.chopConfig.ClickHouse.Config.File.Runtime.UsersConfigFiles)
+ util.MergeStringMapsOverwrite(configSections, c.pathsGetter.GetUsersConfigFiles())
}
// createConfigFilesGroupHost creates host config files
@@ -122,16 +135,14 @@ func (c *FilesGenerator) createConfigFilesGroupHost(options *FilesGeneratorOptio
}
func (c *FilesGenerator) createConfigFilesGroupHostDomain(configSections map[string]string, options *FilesGeneratorOptions) {
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configMacros), c.configGenerator.getHostMacros(options.GetHost()))
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configHostnamePorts), c.configGenerator.getHostHostnameAndPorts(options.GetHost()))
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configZookeeper), c.configGenerator.getHostZookeeper(options.GetHost()))
+ c.configFilesGeneratorDomain.CreateConfigFilesGroupHost(configSections, options)
}
func (c *FilesGenerator) createConfigFilesGroupHostGeneric(configSections map[string]string, options *FilesGeneratorOptions) {
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configSettings), c.configGenerator.getHostSettings(options.GetHost()))
- util.MergeStringMapsOverwrite(configSections, c.configGenerator.getSectionFromFiles(chi.SectionHost, true, options.GetHost()))
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configSettings), c.configGeneratorGeneric.GetHostSettings(options.GetHost()))
+ util.MergeStringMapsOverwrite(configSections, c.configGeneratorGeneric.GetSectionFromFiles(chi.SectionHost, true, options.GetHost()))
// Extra user-specified config files
- util.MergeStringMapsOverwrite(configSections, c.chopConfig.ClickHouse.Config.File.Runtime.HostConfigFiles)
+ util.MergeStringMapsOverwrite(configSections, c.pathsGetter.GetHostConfigFiles())
}
// createConfigSectionFilename creates filename of a configuration file.
diff --git a/pkg/model/chi/config/files_generator_domain.go b/pkg/model/chi/config/files_generator_domain.go
new file mode 100644
index 000000000..1966ef80c
--- /dev/null
+++ b/pkg/model/chi/config/files_generator_domain.go
@@ -0,0 +1,48 @@
+// Copyright 2019 Altinity Ltd and/or its affiliates. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package config
+
+import "github.com/altinity/clickhouse-operator/pkg/util"
+
+// FilesGenerator specifies configuration generator object
+type FilesGeneratorDomain struct {
+ configGenerator *Generator
+}
+
+// NewFilesGenerator creates new configuration files generator object
+func NewFilesGeneratorDomain(configGenerator *Generator) *FilesGeneratorDomain {
+ return &FilesGeneratorDomain{
+ configGenerator: configGenerator,
+ }
+}
+
+func (c *FilesGeneratorDomain) CreateConfigFilesGroupCommon(configSections map[string]string, options *FilesGeneratorOptions) {
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configRemoteServers), c.configGenerator.getRemoteServers(options.GetRemoteServersOptions()))
+}
+
+func (c *FilesGeneratorDomain) CreateConfigFilesGroupUsers(configSections map[string]string) {
+ // users
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configUsers), c.configGenerator.getUsers())
+ // quotas
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configQuotas), c.configGenerator.getQuotas())
+ // profiles
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configProfiles), c.configGenerator.getProfiles())
+}
+
+func (c *FilesGeneratorDomain) CreateConfigFilesGroupHost(configSections map[string]string, options *FilesGeneratorOptions) {
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configMacros), c.configGenerator.getHostMacros(options.GetHost()))
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configHostnamePorts), c.configGenerator.getHostHostnameAndPorts(options.GetHost()))
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configZookeeper), c.configGenerator.getHostZookeeper(options.GetHost()))
+}
diff --git a/pkg/model/chi/config/generator.go b/pkg/model/chi/config/generator.go
index acd4b7ae3..01cf41172 100644
--- a/pkg/model/chi/config/generator.go
+++ b/pkg/model/chi/config/generator.go
@@ -17,11 +17,11 @@ package config
import (
"bytes"
"fmt"
- "github.com/altinity/clickhouse-operator/pkg/model/common/config"
log "github.com/altinity/clickhouse-operator/pkg/announcer"
chi "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
"github.com/altinity/clickhouse-operator/pkg/interfaces"
+ "github.com/altinity/clickhouse-operator/pkg/model/common/config"
"github.com/altinity/clickhouse-operator/pkg/util"
)
@@ -50,8 +50,8 @@ type Generator struct {
opts *GeneratorOptions
}
-// newGenerator returns new Generator struct
-func newGenerator(cr chi.ICustomResource, namer interfaces.INameManager, opts *GeneratorOptions) *Generator {
+// NewGenerator returns new Generator struct
+func NewGenerator(cr chi.ICustomResource, namer interfaces.INameManager, opts *GeneratorOptions) *Generator {
return &Generator{
cr: cr,
namer: namer,
@@ -59,20 +59,20 @@ func newGenerator(cr chi.ICustomResource, namer interfaces.INameManager, opts *G
}
}
-// getGlobalSettings creates data for global section of "settings.xml"
-func (c *Generator) getGlobalSettings() string {
+// GetGlobalSettings creates data for global section of "settings.xml"
+func (c *Generator) GetGlobalSettings() string {
// No host specified means request to generate common config
return c.opts.Settings.ClickHouseConfig()
}
-// getHostSettings creates data for host section of "settings.xml"
-func (c *Generator) getHostSettings(host *chi.Host) string {
+// GetHostSettings creates data for host section of "settings.xml"
+func (c *Generator) GetHostSettings(host *chi.Host) string {
// Generate config for the specified host
return host.Settings.ClickHouseConfig()
}
-// getSectionFromFiles creates data for custom common config files
-func (c *Generator) getSectionFromFiles(section chi.SettingsSection, includeUnspecified bool, host *chi.Host) map[string]string {
+// GetSectionFromFiles creates data for custom common config files
+func (c *Generator) GetSectionFromFiles(section chi.SettingsSection, includeUnspecified bool, host *chi.Host) map[string]string {
var files *chi.Settings
if host == nil {
// We are looking into Common files
diff --git a/pkg/model/chi/creator/service.go b/pkg/model/chi/creator/service.go
index 2cf7302be..a3e66ca80 100644
--- a/pkg/model/chi/creator/service.go
+++ b/pkg/model/chi/creator/service.go
@@ -87,6 +87,9 @@ func (m *ServiceManager) SetTagger(tagger interfaces.ITagger) {
// createServiceCR creates new core.Service for specified CR
func (m *ServiceManager) createServiceCR() *core.Service {
+ if m.cr.IsZero() {
+ return nil
+ }
if template, ok := m.cr.GetRootServiceTemplate(); ok {
// .templates.ServiceTemplate specified
return creator.CreateServiceFromTemplate(
@@ -139,6 +142,10 @@ func (m *ServiceManager) createServiceCR() *core.Service {
// createServiceCluster creates new core.Service for specified Cluster
func (m *ServiceManager) createServiceCluster(cluster chi.ICluster) *core.Service {
+ if cluster.IsZero() {
+ return nil
+ }
+
serviceName := m.namer.Name(interfaces.NameClusterService, cluster)
ownerReferences := m.or.CreateOwnerReferences(m.cr)
@@ -162,6 +169,9 @@ func (m *ServiceManager) createServiceCluster(cluster chi.ICluster) *core.Servic
// createServiceShard creates new core.Service for specified Shard
func (m *ServiceManager) createServiceShard(shard chi.IShard) *core.Service {
+ if shard.IsZero() {
+ return nil
+ }
if template, ok := shard.GetServiceTemplate(); ok {
// .templates.ServiceTemplate specified
return creator.CreateServiceFromTemplate(
@@ -182,6 +192,9 @@ func (m *ServiceManager) createServiceShard(shard chi.IShard) *core.Service {
// createServiceHost creates new core.Service for specified host
func (m *ServiceManager) createServiceHost(host *chi.Host) *core.Service {
+ if host.IsZero() {
+ return nil
+ }
if template, ok := host.GetServiceTemplate(); ok {
// .templates.ServiceTemplate specified
return creator.CreateServiceFromTemplate(
diff --git a/pkg/model/chi/normalizer/normalizer.go b/pkg/model/chi/normalizer/normalizer.go
index 229537610..4e0ef1dea 100644
--- a/pkg/model/chi/normalizer/normalizer.go
+++ b/pkg/model/chi/normalizer/normalizer.go
@@ -94,9 +94,8 @@ func (n *Normalizer) buildTargetFromTemplates(subj *chi.ClickHouseInstallation)
}
func (n *Normalizer) applyCRTemplatesOnTarget(subj crTemplatesNormalizer.TemplateSubject) {
- for _, template := range crTemplatesNormalizer.ApplyTemplates(n.req.GetTarget(), subj) {
- n.req.GetTarget().EnsureStatus().PushUsedTemplate(template)
- }
+ usedTemplates := crTemplatesNormalizer.ApplyTemplates(n.req.GetTarget(), subj)
+ n.req.GetTarget().EnsureStatus().PushUsedTemplate(usedTemplates...)
}
func (n *Normalizer) newSubject() *chi.ClickHouseInstallation {
diff --git a/pkg/model/chi/schemer/schemer.go b/pkg/model/chi/schemer/schemer.go
index 3902b025a..7f133ccbb 100644
--- a/pkg/model/chi/schemer/schemer.go
+++ b/pkg/model/chi/schemer/schemer.go
@@ -143,14 +143,6 @@ func (s *ClusterSchemer) IsHostInCluster(ctx context.Context, host *api.Host) bo
return inside
}
-// CHIDropDnsCache runs 'DROP DNS CACHE' over the whole CHI
-func (s *ClusterSchemer) CHIDropDnsCache(ctx context.Context, chi *api.ClickHouseInstallation) error {
- chi.WalkHosts(func(host *api.Host) error {
- return s.ExecHost(ctx, host, []string{s.sqlDropDNSCache()})
- })
- return nil
-}
-
// HostActiveQueriesNum returns how many active queries are on the host
func (s *ClusterSchemer) HostActiveQueriesNum(ctx context.Context, host *api.Host) (int, error) {
return s.QueryHostInt(ctx, host, s.sqlActiveQueriesNum())
diff --git a/pkg/model/chi/schemer/sql.go b/pkg/model/chi/schemer/sql.go
index ff8172525..4387ff872 100644
--- a/pkg/model/chi/schemer/sql.go
+++ b/pkg/model/chi/schemer/sql.go
@@ -238,10 +238,6 @@ func (s *ClusterSchemer) sqlDropReplica(shard int, replica string) []string {
}
}
-func (s *ClusterSchemer) sqlDropDNSCache() string {
- return `SYSTEM DROP DNS CACHE`
-}
-
func (s *ClusterSchemer) sqlActiveQueriesNum() string {
return `SELECT count() FROM system.processes`
}
diff --git a/pkg/model/chi/volume/volume.go b/pkg/model/chi/volume/volume.go
index 7f0710ad4..832372e27 100644
--- a/pkg/model/chi/volume/volume.go
+++ b/pkg/model/chi/volume/volume.go
@@ -82,7 +82,7 @@ func (m *Manager) stsSetupVolumesUserDataWithFixedPaths(statefulSet *apps.Statef
// Mount all named (data and log so far) VolumeClaimTemplates into all containers
k8s.StatefulSetAppendVolumeMountsInAllContainers(
statefulSet,
- k8s.CreateVolumeMount(host.Templates.GetDataVolumeClaimTemplate(), config.DirPathDataStorage),
- k8s.CreateVolumeMount(host.Templates.GetLogVolumeClaimTemplate(), config.DirPathLogStorage),
+ k8s.CreateVolumeMount(host.GetTemplates().GetDataVolumeClaimTemplate(), config.DirPathDataStorage),
+ k8s.CreateVolumeMount(host.GetTemplates().GetLogVolumeClaimTemplate(), config.DirPathLogStorage),
)
}
diff --git a/pkg/model/chk/config/files_generator.go b/pkg/model/chk/config/files_generator.go
index 98a280d49..bc108a70a 100644
--- a/pkg/model/chk/config/files_generator.go
+++ b/pkg/model/chk/config/files_generator.go
@@ -16,23 +16,41 @@ package config
import (
chi "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
- "github.com/altinity/clickhouse-operator/pkg/chop"
"github.com/altinity/clickhouse-operator/pkg/interfaces"
"github.com/altinity/clickhouse-operator/pkg/util"
)
// FilesGenerator specifies configuration generator object
type FilesGenerator struct {
- configGenerator *Generator
- // clickhouse-operator configuration
- chopConfig *chi.OperatorConfig
+ configGeneratorGeneric IConfigGeneratorGeneric
+ // paths to additional config files
+ pathsGetter chi.IOperatorConfigFilesPathsGetter
+ // configFilesGeneratorDomain files generator
+ configFilesGeneratorDomain IFilesGeneratorDomain
+}
+
+type IConfigGeneratorGeneric interface {
+ GetGlobalSettings() string
+ GetSectionFromFiles(section chi.SettingsSection, includeUnspecified bool, host *chi.Host) map[string]string
+ GetHostSettings(host *chi.Host) string
+}
+
+type IFilesGeneratorDomain interface {
+ CreateConfigFilesGroupCommon(configSections map[string]string, options *FilesGeneratorOptions)
+ CreateConfigFilesGroupUsers(configSections map[string]string)
+ CreateConfigFilesGroupHost(configSections map[string]string, options *FilesGeneratorOptions)
}
// NewFilesGenerator creates new configuration files generator object
-func NewFilesGenerator(cr chi.ICustomResource, namer interfaces.INameManager, opts *GeneratorOptions) *FilesGenerator {
+func NewFilesGenerator(
+ configGeneratorGeneric IConfigGeneratorGeneric,
+ pathsGetter chi.IOperatorConfigFilesPathsGetter,
+ configFilesGeneratorDomain IFilesGeneratorDomain,
+) *FilesGenerator {
return &FilesGenerator{
- configGenerator: newGenerator(cr, namer, opts),
- chopConfig: chop.Config(),
+ configGeneratorGeneric: configGeneratorGeneric,
+ pathsGetter: pathsGetter,
+ configFilesGeneratorDomain: configFilesGeneratorDomain,
}
}
@@ -71,16 +89,16 @@ func (c *FilesGenerator) createConfigFilesGroupCommon(options *FilesGeneratorOpt
}
func (c *FilesGenerator) createConfigFilesGroupCommonDomain(configSections map[string]string, options *FilesGeneratorOptions) {
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configRaft), c.configGenerator.getRaftConfig(options.GetRaftOptions()))
+ c.configFilesGeneratorDomain.CreateConfigFilesGroupCommon(configSections, options)
}
func (c *FilesGenerator) createConfigFilesGroupCommonGeneric(configSections map[string]string, options *FilesGeneratorOptions) {
// common settings
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configSettings), c.configGenerator.getGlobalSettings())
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configSettings), c.configGeneratorGeneric.GetGlobalSettings())
// common files
- util.MergeStringMapsOverwrite(configSections, c.configGenerator.getSectionFromFiles(chi.SectionCommon, true, nil))
+ util.MergeStringMapsOverwrite(configSections, c.configGeneratorGeneric.GetSectionFromFiles(chi.SectionCommon, true, nil))
// Extra user-specified config files
- util.MergeStringMapsOverwrite(configSections, c.chopConfig.Keeper.Config.File.Runtime.CommonConfigFiles)
+ util.MergeStringMapsOverwrite(configSections, c.pathsGetter.GetCommonConfigFiles())
}
// createConfigFilesGroupUsers creates users config files
@@ -95,13 +113,14 @@ func (c *FilesGenerator) createConfigFilesGroupUsers() map[string]string {
}
func (c *FilesGenerator) createConfigFilesGroupUsersDomain(configSections map[string]string) {
+ c.configFilesGeneratorDomain.CreateConfigFilesGroupUsers(configSections)
}
func (c *FilesGenerator) createConfigFilesGroupUsersGeneric(configSections map[string]string) {
// user files
- util.MergeStringMapsOverwrite(configSections, c.configGenerator.getSectionFromFiles(chi.SectionUsers, false, nil))
+ util.MergeStringMapsOverwrite(configSections, c.configGeneratorGeneric.GetSectionFromFiles(chi.SectionUsers, false, nil))
// Extra user-specified config files
- util.MergeStringMapsOverwrite(configSections, c.chopConfig.Keeper.Config.File.Runtime.UsersConfigFiles)
+ util.MergeStringMapsOverwrite(configSections, c.pathsGetter.GetUsersConfigFiles())
}
// createConfigFilesGroupHost creates host config files
@@ -116,14 +135,14 @@ func (c *FilesGenerator) createConfigFilesGroupHost(options *FilesGeneratorOptio
}
func (c *FilesGenerator) createConfigFilesGroupHostDomain(configSections map[string]string, options *FilesGeneratorOptions) {
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configServerId), c.configGenerator.getHostServerId(options.GetHost()))
+ c.configFilesGeneratorDomain.CreateConfigFilesGroupHost(configSections, options)
}
func (c *FilesGenerator) createConfigFilesGroupHostGeneric(configSections map[string]string, options *FilesGeneratorOptions) {
- util.IncludeNonEmpty(configSections, createConfigSectionFilename(configSettings), c.configGenerator.getHostSettings(options.GetHost()))
- util.MergeStringMapsOverwrite(configSections, c.configGenerator.getSectionFromFiles(chi.SectionHost, true, options.GetHost()))
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configSettings), c.configGeneratorGeneric.GetHostSettings(options.GetHost()))
+ util.MergeStringMapsOverwrite(configSections, c.configGeneratorGeneric.GetSectionFromFiles(chi.SectionHost, true, options.GetHost()))
// Extra user-specified config files
- util.MergeStringMapsOverwrite(configSections, c.chopConfig.Keeper.Config.File.Runtime.HostConfigFiles)
+ util.MergeStringMapsOverwrite(configSections, c.pathsGetter.GetHostConfigFiles())
}
// createConfigSectionFilename creates filename of a configuration file.
diff --git a/pkg/model/chk/config/files_generator_domain.go b/pkg/model/chk/config/files_generator_domain.go
new file mode 100644
index 000000000..b5ee397bc
--- /dev/null
+++ b/pkg/model/chk/config/files_generator_domain.go
@@ -0,0 +1,40 @@
+// Copyright 2019 Altinity Ltd and/or its affiliates. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package config
+
+import "github.com/altinity/clickhouse-operator/pkg/util"
+
+// FilesGenerator specifies configuration generator object
+type FilesGeneratorDomain struct {
+ configGenerator *Generator
+}
+
+// NewFilesGenerator creates new configuration files generator object
+func NewFilesGeneratorDomain(configGenerator *Generator) *FilesGeneratorDomain {
+ return &FilesGeneratorDomain{
+ configGenerator: configGenerator,
+ }
+}
+
+func (c *FilesGeneratorDomain) CreateConfigFilesGroupCommon(configSections map[string]string, options *FilesGeneratorOptions) {
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configRaft), c.configGenerator.getRaftConfig(options.GetRaftOptions()))
+}
+
+func (c *FilesGeneratorDomain) CreateConfigFilesGroupUsers(configSections map[string]string) {
+}
+
+func (c *FilesGeneratorDomain) CreateConfigFilesGroupHost(configSections map[string]string, options *FilesGeneratorOptions) {
+ util.IncludeNonEmpty(configSections, createConfigSectionFilename(configServerId), c.configGenerator.getHostServerId(options.GetHost()))
+}
diff --git a/pkg/model/chk/config/generator.go b/pkg/model/chk/config/generator.go
index 85f7eee87..ed5c13231 100644
--- a/pkg/model/chk/config/generator.go
+++ b/pkg/model/chk/config/generator.go
@@ -17,6 +17,7 @@ package config
import (
"bytes"
"fmt"
+
log "github.com/altinity/clickhouse-operator/pkg/announcer"
chi "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
"github.com/altinity/clickhouse-operator/pkg/interfaces"
@@ -33,8 +34,8 @@ type Generator struct {
opts *GeneratorOptions
}
-// newGenerator returns new Generator struct
-func newGenerator(cr chi.ICustomResource, namer interfaces.INameManager, opts *GeneratorOptions) *Generator {
+// NewGenerator returns new Generator struct
+func NewGenerator(cr chi.ICustomResource, namer interfaces.INameManager, opts *GeneratorOptions) *Generator {
return &Generator{
cr: cr,
namer: namer,
@@ -42,20 +43,20 @@ func newGenerator(cr chi.ICustomResource, namer interfaces.INameManager, opts *G
}
}
-// getGlobalSettings creates data for global section of "settings.xml"
-func (c *Generator) getGlobalSettings() string {
+// GetGlobalSettings creates data for global section of "settings.xml"
+func (c *Generator) GetGlobalSettings() string {
// No host specified means request to generate common config
return c.opts.Settings.ClickHouseConfig()
}
-// getHostSettings creates data for host section of "settings.xml"
-func (c *Generator) getHostSettings(host *chi.Host) string {
+// GetHostSettings creates data for host section of "settings.xml"
+func (c *Generator) GetHostSettings(host *chi.Host) string {
// Generate config for the specified host
return host.Settings.ClickHouseConfig()
}
-// getSectionFromFiles creates data for custom common config files
-func (c *Generator) getSectionFromFiles(section chi.SettingsSection, includeUnspecified bool, host *chi.Host) map[string]string {
+// GetSectionFromFiles creates data for custom common config files
+func (c *Generator) GetSectionFromFiles(section chi.SettingsSection, includeUnspecified bool, host *chi.Host) map[string]string {
var files *chi.Settings
if host == nil {
// We are looking into Common files
diff --git a/pkg/model/chk/creator/probe.go b/pkg/model/chk/creator/probe.go
index 5fd7040a2..3b63cee5b 100644
--- a/pkg/model/chk/creator/probe.go
+++ b/pkg/model/chk/creator/probe.go
@@ -36,7 +36,8 @@ func (m *ProbeManager) CreateProbe(what interfaces.ProbeType, host *api.Host) *c
case interfaces.ProbeDefaultLiveness:
return m.createDefaultLivenessProbe(host)
case interfaces.ProbeDefaultReadiness:
- return m.createDefaultReadinessProbe(host)
+ return nil
+ //return m.createDefaultReadinessProbe(host)
}
panic("unknown probe type")
}
@@ -53,9 +54,9 @@ func (m *ProbeManager) createDefaultLivenessProbe(host *api.Host) *core.Probe {
},
},
},
- InitialDelaySeconds: 60,
- PeriodSeconds: 3,
- FailureThreshold: 10,
+ InitialDelaySeconds: 5,
+ PeriodSeconds: 5,
+ FailureThreshold: 12,
}
}
@@ -77,7 +78,8 @@ func (m *ProbeManager) createDefaultReadinessProbe(host *api.Host) *core.Probe {
Port: intstr.Parse("9182"),
},
},
- InitialDelaySeconds: 10,
- PeriodSeconds: 3,
+ InitialDelaySeconds: 5,
+ PeriodSeconds: 5,
+ FailureThreshold: 12,
}
}
diff --git a/pkg/model/chk/creator/service.go b/pkg/model/chk/creator/service.go
index 6ab70a0e8..997692b8b 100644
--- a/pkg/model/chk/creator/service.go
+++ b/pkg/model/chk/creator/service.go
@@ -61,6 +61,12 @@ func (m *ServiceManager) CreateService(what interfaces.ServiceType, params ...an
cluster = params[0].(chi.ICluster)
return m.createServiceCluster(cluster)
}
+ case interfaces.ServiceShard:
+ var shard chi.IShard
+ if len(params) > 0 {
+ shard = params[0].(chi.IShard)
+ return m.createServiceShard(shard)
+ }
case interfaces.ServiceHost:
var host *chi.Host
if len(params) > 0 {
@@ -81,6 +87,9 @@ func (m *ServiceManager) SetTagger(tagger interfaces.ITagger) {
// createServiceCR creates new core.Service for specified CR
func (m *ServiceManager) createServiceCR() *core.Service {
+ if m.cr.IsZero() {
+ return nil
+ }
if template, ok := m.cr.GetRootServiceTemplate(); ok {
// .templates.ServiceTemplate specified
return creator.CreateServiceFromTemplate(
@@ -133,6 +142,10 @@ func (m *ServiceManager) createServiceCR() *core.Service {
// createServiceCluster creates new core.Service for specified Cluster
func (m *ServiceManager) createServiceCluster(cluster chi.ICluster) *core.Service {
+ if cluster.IsZero() {
+ return nil
+ }
+
serviceName := m.namer.Name(interfaces.NameClusterService, cluster)
ownerReferences := m.or.CreateOwnerReferences(m.cr)
@@ -154,8 +167,34 @@ func (m *ServiceManager) createServiceCluster(cluster chi.ICluster) *core.Servic
return nil
}
+// createServiceShard creates new core.Service for specified Shard
+func (m *ServiceManager) createServiceShard(shard chi.IShard) *core.Service {
+ if shard.IsZero() {
+ return nil
+ }
+ if template, ok := shard.GetServiceTemplate(); ok {
+ // .templates.ServiceTemplate specified
+ return creator.CreateServiceFromTemplate(
+ template,
+ shard.GetRuntime().GetAddress().GetNamespace(),
+ m.namer.Name(interfaces.NameShardService, shard),
+ m.tagger.Label(interfaces.LabelServiceShard, shard),
+ m.tagger.Annotate(interfaces.AnnotateServiceShard, shard),
+ m.tagger.Selector(interfaces.SelectorShardScopeReady, shard),
+ m.or.CreateOwnerReferences(m.cr),
+ m.macro.Scope(shard),
+ m.labeler,
+ )
+ }
+ // No template specified, no need to create service
+ return nil
+}
+
// createServiceHost creates new core.Service for specified host
func (m *ServiceManager) createServiceHost(host *chi.Host) *core.Service {
+ if host.IsZero() {
+ return nil
+ }
if template, ok := host.GetServiceTemplate(); ok {
// .templates.ServiceTemplate specified
return creator.CreateServiceFromTemplate(
diff --git a/pkg/model/chk/volume/volume.go b/pkg/model/chk/volume/volume.go
index 23354c77e..73342b8aa 100644
--- a/pkg/model/chk/volume/volume.go
+++ b/pkg/model/chk/volume/volume.go
@@ -82,7 +82,7 @@ func (m *Manager) stsSetupVolumesUserDataWithFixedPaths(statefulSet *apps.Statef
// Mount all named (data and log so far) VolumeClaimTemplates into all containers
k8s.StatefulSetAppendVolumeMountsInAllContainers(
statefulSet,
- k8s.CreateVolumeMount(host.Templates.GetDataVolumeClaimTemplate(), config.DirPathDataStorage),
- k8s.CreateVolumeMount(host.Templates.GetLogVolumeClaimTemplate(), config.DirPathLogStorage),
+ k8s.CreateVolumeMount(host.GetTemplates().GetDataVolumeClaimTemplate(), config.DirPathDataStorage),
+ k8s.CreateVolumeMount(host.GetTemplates().GetLogVolumeClaimTemplate(), config.DirPathLogStorage),
)
}
diff --git a/pkg/model/common/creator/stateful-set-application.go b/pkg/model/common/creator/stateful-set-application.go
index ef1533114..d3b81207e 100644
--- a/pkg/model/common/creator/stateful-set-application.go
+++ b/pkg/model/common/creator/stateful-set-application.go
@@ -156,7 +156,7 @@ func (c *Creator) stsAppContainerSetupTroubleshootingMode(statefulSet *apps.Stat
// stsSetupLogContainer
func (c *Creator) stsSetupLogContainer(statefulSet *apps.StatefulSet, host *api.Host) {
// In case we have default LogVolumeClaimTemplate specified - need to append log container to Pod Template
- if host.Templates.HasLogVolumeClaimTemplate() {
+ if host.GetTemplates().HasLogVolumeClaimTemplate() {
c.stsEnsureLogContainerSpecified(statefulSet)
c.a.V(1).F().Info("add log container for host: %s", host.Runtime.Address.HostName)
}
diff --git a/pkg/model/managers/files_generator.go b/pkg/model/managers/files_generator.go
index 30d685c6b..20871ad39 100644
--- a/pkg/model/managers/files_generator.go
+++ b/pkg/model/managers/files_generator.go
@@ -16,6 +16,7 @@ package managers
import (
api "github.com/altinity/clickhouse-operator/pkg/apis/clickhouse.altinity.com/v1"
+ "github.com/altinity/clickhouse-operator/pkg/chop"
"github.com/altinity/clickhouse-operator/pkg/interfaces"
chiConfig "github.com/altinity/clickhouse-operator/pkg/model/chi/config"
chkConfig "github.com/altinity/clickhouse-operator/pkg/model/chk/config"
@@ -31,9 +32,13 @@ const (
func NewConfigFilesGenerator(what FilesGeneratorType, cr api.ICustomResource, opts any) interfaces.IConfigFilesGenerator {
switch what {
case FilesGeneratorTypeClickHouse:
- return chiConfig.NewFilesGenerator(cr, NewNameManager(NameManagerTypeClickHouse), opts.(*chiConfig.GeneratorOptions))
+ gen := chiConfig.NewGenerator(cr, NewNameManager(NameManagerTypeClickHouse), opts.(*chiConfig.GeneratorOptions))
+ genDomain := chiConfig.NewFilesGeneratorDomain(gen)
+ return chiConfig.NewFilesGenerator(gen, chop.Config().ClickHouse.Config.File.Runtime, genDomain)
case FilesGeneratorTypeKeeper:
- return chkConfig.NewFilesGenerator(cr, NewNameManager(NameManagerTypeKeeper), opts.(*chkConfig.GeneratorOptions))
+ gen := chkConfig.NewGenerator(cr, NewNameManager(NameManagerTypeKeeper), opts.(*chkConfig.GeneratorOptions))
+ genDomain := chkConfig.NewFilesGeneratorDomain(gen)
+ return chkConfig.NewFilesGenerator(gen, chop.Config().Keeper.Config.File.Runtime, genDomain)
}
panic("unknown config files generator type")
}
diff --git a/pkg/model/zookeeper/connection.go b/pkg/model/zookeeper/connection.go
index d49127e08..f309db088 100644
--- a/pkg/model/zookeeper/connection.go
+++ b/pkg/model/zookeeper/connection.go
@@ -117,7 +117,8 @@ func (c *Connection) retry(ctx context.Context, fn func(*zk.Conn) error) error {
for i := 0; i < c.MaxRetriesNum; i++ {
if i > 0 {
- time.Sleep(1*time.Second + time.Duration(rand.Int63n(int64(1*time.Second))))
+ // Progressive delay before each retry
+ time.Sleep(time.Duration(i)*time.Second + time.Duration(rand.Int63n(int64(1*time.Second))))
}
connection, err := c.ensureConnection(ctx)
diff --git a/pkg/model/zookeeper/connection_params.go b/pkg/model/zookeeper/connection_params.go
index 9d8fd3839..ea2d581a0 100644
--- a/pkg/model/zookeeper/connection_params.go
+++ b/pkg/model/zookeeper/connection_params.go
@@ -17,11 +17,11 @@ package zookeeper
import "time"
const (
- maxRetriesNum = 3
- maxConcurrentRequests int64 = 32
+ defaultMaxRetriesNum = 25
+ defaultMaxConcurrentRequests int64 = 32
- timeoutConnect = 30 * time.Second
- timeoutKeepAlive = 30 * time.Second
+ defaultTimeoutConnect = 30 * time.Second
+ defaultTimeoutKeepAlive = 30 * time.Second
)
type ConnectionParams struct {
@@ -42,16 +42,16 @@ func (p *ConnectionParams) Normalize() *ConnectionParams {
p = &ConnectionParams{}
}
if p.MaxRetriesNum == 0 {
- p.MaxRetriesNum = maxRetriesNum
+ p.MaxRetriesNum = defaultMaxRetriesNum
}
if p.MaxConcurrentRequests == 0 {
- p.MaxConcurrentRequests = maxConcurrentRequests
+ p.MaxConcurrentRequests = defaultMaxConcurrentRequests
}
if p.TimeoutConnect == 0 {
- p.TimeoutConnect = timeoutConnect
+ p.TimeoutConnect = defaultTimeoutConnect
}
if p.TimeoutKeepAlive == 0 {
- p.TimeoutKeepAlive = timeoutKeepAlive
+ p.TimeoutKeepAlive = defaultTimeoutKeepAlive
}
return p
}
diff --git a/pkg/util/array.go b/pkg/util/array.go
index c86963262..ed40850d9 100644
--- a/pkg/util/array.go
+++ b/pkg/util/array.go
@@ -78,8 +78,8 @@ func RemoveFromArray(needle string, haystack []string) []string {
// Unzip makes two 1-value columns (slices) out of one 2-value column (slice)
func Unzip(slice [][]string) ([]string, []string) {
- col1 := make([]string, len(slice))
- col2 := make([]string, len(slice))
+ col1 := make([]string, 0, len(slice))
+ col2 := make([]string, 0, len(slice))
for i := 0; i < len(slice); i++ {
col1 = append(col1, slice[i][0])
if len(slice[i]) > 1 {
diff --git a/pkg/util/int.go b/pkg/util/int.go
new file mode 100644
index 000000000..6a0db33af
--- /dev/null
+++ b/pkg/util/int.go
@@ -0,0 +1,31 @@
+// Copyright 2019 Altinity Ltd and/or its affiliates. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package util
+
+func IncTopped(start, inc, top int) int {
+ res := start + inc
+ if res > top {
+ res = top
+ }
+ return res
+}
+
+func DecBottomed(start, dec, bottom int) int {
+ res := start - dec
+ if res < bottom {
+ res = bottom
+ }
+ return res
+}
diff --git a/pkg/util/map.go b/pkg/util/map.go
index 2d4d2e1f2..7c92bc15d 100644
--- a/pkg/util/map.go
+++ b/pkg/util/map.go
@@ -264,3 +264,8 @@ func MapGetSortedKeysAndValues(m map[string]string) (keys []string, values []str
}
return keys, values
}
+
+func MapMigrate(cur, new, old map[string]string) map[string]string {
+ removed := MapGetSortedKeys(SubtractStringMaps(CopyMap(old), new))
+ return MapDeleteKeys(MergeStringMapsPreserve(new, cur), removed...)
+}
diff --git a/release b/release
index 2094a100c..48b91fd89 100644
--- a/release
+++ b/release
@@ -1 +1 @@
-0.24.0
+0.24.1
diff --git a/releases b/releases
index 7556eb427..e50e7a951 100644
--- a/releases
+++ b/releases
@@ -1,3 +1,4 @@
+0.24.0
0.23.7
0.23.6
0.23.5
diff --git a/tests/e2e/manifests/chi/test-005-acm.yaml b/tests/e2e/manifests/chi/test-005-acm.yaml
index 19a15f4dc..2d925213c 100644
--- a/tests/e2e/manifests/chi/test-005-acm.yaml
+++ b/tests/e2e/manifests/chi/test-005-acm.yaml
@@ -13,7 +13,7 @@ spec:
fsGroup: 101
containers:
- name: clickhouse-pod
- image: clickhouse/clickhouse-server:24.3
+ image: clickhouse/clickhouse-server:24.8.5.115
ports:
- name: http
containerPort: 8123
@@ -39,7 +39,7 @@ spec:
volumeMounts:
- mountPath: /var/lib/clickhouse
name: default
- - image: altinity/clickhouse-backup:2.2.7
+ - image: altinity/clickhouse-backup:stable
name: clickhouse-backup
command:
- /bin/bash
diff --git a/tests/e2e/manifests/chi/test-010-zkroot.yaml b/tests/e2e/manifests/chi/test-010-zkroot.yaml
index 9409f838b..5e0c82ead 100644
--- a/tests/e2e/manifests/chi/test-010-zkroot.yaml
+++ b/tests/e2e/manifests/chi/test-010-zkroot.yaml
@@ -8,13 +8,13 @@ spec:
useTemplates:
- name: clickhouse-version
defaults:
- templates:
+ templates:
logVolumeClaimTemplate: default
configuration:
zookeeper: # Add Zookeeper
nodes:
- host: zookeeper
- # port: 2181
+ port: 2181
root: "/clickhouse/test-010-zkroot"
session_timeout_ms: 30000
operation_timeout_ms: 10000
diff --git a/tests/e2e/manifests/chi/test-014-0-replication-2-1.yaml b/tests/e2e/manifests/chi/test-014-0-replication-2-1.yaml
new file mode 100644
index 000000000..cadd433ba
--- /dev/null
+++ b/tests/e2e/manifests/chi/test-014-0-replication-2-1.yaml
@@ -0,0 +1,30 @@
+apiVersion: "clickhouse.altinity.com/v1"
+
+kind: "ClickHouseInstallation"
+
+metadata:
+ name: test-014-replication
+
+spec:
+ # reconciling:
+ # policy: wait
+ useTemplates:
+ - name: clickhouse-version
+ - name: persistent-volume
+ configuration:
+ zookeeper:
+ nodes:
+ - host: zookeeper
+ port: 2181
+ session_timeout_ms: 5000
+ operation_timeout_ms: 5000
+ root: /test/root/path
+ clusters:
+ - name: default
+ layout:
+ replicasCount: 2
+ shardsCount: 1
+ profiles:
+ default/database_atomic_wait_for_drop_and_detach_synchronously: 1
+ default/allow_experimental_live_view: 1
+ default/allow_experimental_database_replicated: 1
diff --git a/tests/e2e/manifests/chi/test-050-labels.yaml b/tests/e2e/manifests/chi/test-050-labels.yaml
index cd46a1fe1..2ed533ad9 100644
--- a/tests/e2e/manifests/chi/test-050-labels.yaml
+++ b/tests/e2e/manifests/chi/test-050-labels.yaml
@@ -3,8 +3,11 @@ kind: "ClickHouseInstallation"
metadata:
name: test-050
labels:
- exclude_this_label: test-050
- include_this_label: test-050
+ exclude_this_label: test-050-label
+ include_this_label: test-050-label
+ annotations:
+ exclude_this_annotation: test-050-annotation
+ include_this_annotation: test-050-annotation
spec:
useTemplates:
- name: clickhouse-version
diff --git a/tests/e2e/manifests/chi/test-052-keeper-rescale.yaml b/tests/e2e/manifests/chi/test-052-keeper-rescale.yaml
new file mode 100644
index 000000000..1589718a5
--- /dev/null
+++ b/tests/e2e/manifests/chi/test-052-keeper-rescale.yaml
@@ -0,0 +1,17 @@
+apiVersion: "clickhouse.altinity.com/v1"
+kind: "ClickHouseInstallation"
+metadata:
+ name: test-052-keeper-rescale
+spec:
+ useTemplates:
+ - name: clickhouse-version
+ configuration:
+ zookeeper:
+ nodes:
+ - host: keeper-test-052-chk
+ port: 2181
+ clusters:
+ - name: default
+ layout:
+ shardsCount: 1
+ replicasCount: 2
\ No newline at end of file
diff --git a/tests/e2e/manifests/chit/tpl-clickhouse-24.8.yaml b/tests/e2e/manifests/chit/tpl-clickhouse-24.8.yaml
new file mode 100644
index 000000000..4307f0daa
--- /dev/null
+++ b/tests/e2e/manifests/chit/tpl-clickhouse-24.8.yaml
@@ -0,0 +1,17 @@
+apiVersion: "clickhouse.altinity.com/v1"
+kind: "ClickHouseInstallationTemplate"
+
+metadata:
+ name: clickhouse-version
+spec:
+ defaults:
+ templates:
+ podTemplate: default
+ templates:
+ podTemplates:
+ - name: default
+ spec:
+ containers:
+ - name: clickhouse-pod
+ image: clickhouse/clickhouse-server:24.8
+ imagePullPolicy: IfNotPresent
diff --git a/tests/e2e/manifests/chit/tpl-clickhouse-stable.yaml b/tests/e2e/manifests/chit/tpl-clickhouse-stable.yaml
index b053a5995..ba5ee4d0d 100644
--- a/tests/e2e/manifests/chit/tpl-clickhouse-stable.yaml
+++ b/tests/e2e/manifests/chit/tpl-clickhouse-stable.yaml
@@ -14,6 +14,6 @@ spec:
containers:
- name: clickhouse-pod
# image: clickhouse/clickhouse-server:23.8.8.21.altinitystable
- image: clickhouse/clickhouse-server:24.3
+ image: clickhouse/clickhouse-server:24.8.5.115
imagePullPolicy: IfNotPresent
diff --git a/tests/e2e/manifests/chk/test-052-chk-rescale-1.yaml b/tests/e2e/manifests/chk/test-052-chk-rescale-1.yaml
new file mode 100644
index 000000000..117a0b9e5
--- /dev/null
+++ b/tests/e2e/manifests/chk/test-052-chk-rescale-1.yaml
@@ -0,0 +1,30 @@
+apiVersion: "clickhouse-keeper.altinity.com/v1"
+kind: "ClickHouseKeeperInstallation"
+metadata:
+ name: test-052-chk
+spec:
+ defaults:
+ templates:
+ podTemplate: default
+ volumeClaimTemplate: default
+ templates:
+ podTemplates:
+ - name: default
+ spec:
+ containers:
+ - name: clickhouse-keeper
+ imagePullPolicy: IfNotPresent
+ image: "clickhouse/clickhouse-keeper:24.10"
+ volumeClaimTemplates:
+ - name: default
+ spec:
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Gi
+ configuration:
+ clusters:
+ - name: keeper
+ layout:
+ replicasCount: 1
diff --git a/tests/e2e/manifests/chk/test-052-chk-rescale-3.yaml b/tests/e2e/manifests/chk/test-052-chk-rescale-3.yaml
new file mode 100644
index 000000000..44022cb4f
--- /dev/null
+++ b/tests/e2e/manifests/chk/test-052-chk-rescale-3.yaml
@@ -0,0 +1,30 @@
+apiVersion: "clickhouse-keeper.altinity.com/v1"
+kind: "ClickHouseKeeperInstallation"
+metadata:
+ name: test-052-chk
+spec:
+ defaults:
+ templates:
+ podTemplate: default
+ volumeClaimTemplate: default
+ templates:
+ podTemplates:
+ - name: default
+ spec:
+ containers:
+ - name: clickhouse-keeper
+ imagePullPolicy: IfNotPresent
+ image: "clickhouse/clickhouse-keeper:24.10"
+ volumeClaimTemplates:
+ - name: default
+ spec:
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Gi
+ configuration:
+ clusters:
+ - name: keeper
+ layout:
+ replicasCount: 3
diff --git a/tests/e2e/manifests/chopconf/test-050-chopconf.yaml b/tests/e2e/manifests/chopconf/test-050-chopconf.yaml
index 23dde4dc0..889e5c9c5 100644
--- a/tests/e2e/manifests/chopconf/test-050-chopconf.yaml
+++ b/tests/e2e/manifests/chopconf/test-050-chopconf.yaml
@@ -3,6 +3,14 @@ kind: "ClickHouseOperatorConfiguration"
metadata:
name: "test-050-chopconf"
spec:
+ metrics:
+ labels:
+ exclude:
+ - exclude_this_label
+ - exclude_this_annotation
label:
exclude:
- - exclude_this_label
\ No newline at end of file
+ - exclude_this_label
+ annotation:
+ exclude:
+ - exclude_this_annotation
\ No newline at end of file
diff --git a/tests/e2e/run_tests_local.sh b/tests/e2e/run_tests_local.sh
index 88976dcb5..c9795b31a 100755
--- a/tests/e2e/run_tests_local.sh
+++ b/tests/e2e/run_tests_local.sh
@@ -32,7 +32,7 @@ function select_test_goal() {
echo "Having specified explicitly: ${specified_goal}"
return 0
else
- echo "What would you like to start. Possible options:"
+ echo "What would you like to start? Possible options:"
echo " 1 - test operator"
echo " 2 - test keeper"
echo " 3 - test metrics"
@@ -132,7 +132,7 @@ if [[ ! -z "${MINIKUBE_PRELOAD_IMAGES}" ]]; then
clickhouse/clickhouse-server:23.8
clickhouse/clickhouse-server:latest
altinity/clickhouse-server:22.8.15.25.altinitystable
- docker.io/zookeeper:3.8.3
+ docker.io/zookeeper:3.8.4
"
for image in ${IMAGES}; do
docker pull -q ${image} && \
diff --git a/tests/e2e/steps.py b/tests/e2e/steps.py
index d1c9adf7e..6a88fc008 100644
--- a/tests/e2e/steps.py
+++ b/tests/e2e/steps.py
@@ -152,31 +152,42 @@ def check_metrics_monitoring(
self,
operator_namespace,
operator_pod,
- expect_pattern,
+ expect_pattern = "",
+ expect_metric = "",
+ expect_labels = "",
container="metrics-exporter",
port="8888",
max_retries=7
):
- with Then(f"metrics-exporter /metrics endpoint result should contain {expect_pattern}"):
+ with Then(f"metrics-exporter /metrics endpoint result should contain {expect_pattern} {expect_metric} {expect_labels}"):
for i in range(1, max_retries):
url_cmd = util.make_http_get_request("127.0.0.1", port, "/metrics")
out = kubectl.launch(
f"exec {operator_pod} -c {container} -- {url_cmd}",
ns=operator_namespace,
)
- # print(out)
+ if expect_metric != "":
+ lines = [m for m in out.splitlines() if m.startswith(expect_metric)]
+ if len(lines) > 0:
+ metric = lines[0]
+ print(metric)
+ expected_pattern_found = expect_labels in metric
+ else:
+ expected_pattern_found = False
+ break
- rx = re.compile(expect_pattern, re.MULTILINE)
- matches = rx.findall(out)
- expected_pattern_found = False
+ if expect_pattern != "":
+ rx = re.compile(expect_pattern, re.MULTILINE)
+ matches = rx.findall(out)
+ expected_pattern_found = False
- if matches:
- expected_pattern_found = True
+ if matches:
+ expected_pattern_found = True
- if expected_pattern_found:
- break
+ if expected_pattern_found:
+ break
- with Then("Not ready. Wait for " + str(i * 5) + " seconds"):
- time.sleep(i * 5)
+ with Then("Not ready. Wait for " + str(i * 5) + " seconds"):
+ time.sleep(i * 5)
assert expected_pattern_found, error()
\ No newline at end of file
diff --git a/tests/e2e/test_keeper.py b/tests/e2e/test_keeper.py
index db58e1341..ac31ea246 100644
--- a/tests/e2e/test_keeper.py
+++ b/tests/e2e/test_keeper.py
@@ -106,8 +106,7 @@ def check_zk_root_znode(chi, keeper_type, pod_count, retry_count=15):
"zookeeper": "2",
"zookeeper-operator": "3",
"clickhouse-keeper": "2",
- "clickhouse-keeper_with_chk": "2",
- "CHK": "2",
+ "chk": "1",
}
if expected_out[keeper_type] != out.strip(" \t\r\n") and i + 1 < retry_count:
with Then(f"{keeper_type} system.zookeeper not ready, wait {(i + 1) * 3} sec"):
@@ -358,10 +357,10 @@ def test_clickhouse_keeper_rescale(self):
@Requirements(RQ_SRS_026_ClickHouseOperator_CustomResource_Kind_ClickHouseKeeperInstallation("1.0"))
def test_clickhouse_keeper_rescale_chk(self):
test_keeper_rescale_outline(
- keeper_type="clickhouse-keeper_with_chk",
+ keeper_type="chk",
pod_for_insert_data="chi-test-cluster-for-zk-default-0-1-0",
- keeper_manifest_1_node="clickhouse-keeper-1-node-for-test-only.yaml",
- keeper_manifest_3_node="clickhouse-keeper-3-node-for-test-only.yaml",
+ keeper_manifest_1_node="clickhouse-keeper-1-node-for-test.yaml",
+ keeper_manifest_3_node="clickhouse-keeper-3-node-for-test.yaml",
)
@@ -428,7 +427,7 @@ def test_keeper_probes_outline(
min_bytes_for_compact_part=10485760,
parts_to_delay_insert=1000000,
parts_to_throw_insert=1000000,
- max_parts_in_total=1000000;
+ max_parts_in_total=1000000;
""",
)
with Then("Insert data to keeper_bench for make zookeeper workload"):
diff --git a/tests/e2e/test_operator.py b/tests/e2e/test_operator.py
index 9eb25de71..6f8992a8f 100644
--- a/tests/e2e/test_operator.py
+++ b/tests/e2e/test_operator.py
@@ -200,103 +200,6 @@ def test_007(self):
delete_test_namespace()
-@TestCheck
-def test_operator_upgrade(self, manifest, service, version_from, version_to=None, shell=None):
- if version_to is None:
- version_to = current().context.operator_version
- with Given(f"clickhouse-operator from {version_from}"):
- util.install_operator_version(version_from)
- time.sleep(15)
-
- chi = yaml_manifest.get_name(util.get_full_path(manifest, True))
- cluster = chi
-
- kubectl.create_and_check(
- manifest=manifest,
- check={
- "object_counts": {
- "statefulset": 2,
- "pod": 2,
- "service": 3,
- },
- "do_not_delete": 1,
- },
- )
- start_time = kubectl.get_field("pod", f"chi-{chi}-{cluster}-0-0-0", ".status.startTime")
-
- with Then("Create tables"):
- for h in [f"chi-{chi}-{cluster}-0-0-0", f"chi-{chi}-{cluster}-1-0-0"]:
- clickhouse.query(
- chi,
- "CREATE TABLE IF NOT EXISTS test_local (a UInt32) Engine = Log",
- host=h,
- )
- clickhouse.query(chi, "INSERT INTO test_local SELECT 1", host=h)
-
- trigger_event = threading.Event()
-
- with When("I create new shells"):
- shell_1 = get_shell()
- shell_2 = get_shell()
- shell_3 = get_shell()
-
- Check("run query until receive stop event", test=run_select_query, parallel=True)(
- host=service,
- user="test_009",
- password="test_009",
- query="select count() from cluster('{cluster}', system.one)",
- res1="2",
- res2="1",
- trigger_event=trigger_event,
- shell=shell_1
- )
-
- Check("Check that cluster definition does not change during restart", test=check_remote_servers, parallel=True)(
- chi=chi,
- shards=2,
- trigger_event=trigger_event,
- shell=shell_2
- )
-
- try:
- with When(f"upgrade operator to {version_to}"):
- util.install_operator_version(version_to, shell=shell_3)
- time.sleep(15)
-
- kubectl.wait_chi_status(chi, "Completed", shell=shell_3)
- kubectl.wait_objects(chi, {"statefulset": 2, "pod": 2, "service": 3}, shell=shell_3)
-
- finally:
- trigger_event.set()
- join()
-
- with Then("I recreate shell"):
- shell = get_shell()
- self.context.shell = shell
-
- with Then("Check that table is here"):
- tables = clickhouse.query(chi, "SHOW TABLES")
- assert "test_local" in tables
- out = clickhouse.query(chi, "SELECT count() FROM test_local")
- assert out == "1"
-
- with Then("ClickHouse pods should not be restarted during upgrade"):
- new_start_time = kubectl.get_field("pod", f"chi-{chi}-{cluster}-0-0-0", ".status.startTime")
- if start_time != new_start_time:
- kubectl.launch(f"describe chi -n {self.context.test_namespace} {chi}")
- kubectl.launch(
- # In my env "pod/: prefix is already returned by $(kubectl get pods -o name -n {current().context.operator_namespace} | grep clickhouse-operator)
- # f"logs -n {current().context.operator_namespace} pod/$(kubectl get pods -o name -n {current().context.operator_namespace} | grep clickhouse-operator) -c clickhouse-operator"
- f"logs -n {current().context.operator_namespace} $(kubectl get pods -o name -n {current().context.operator_namespace} | grep clickhouse-operator) -c clickhouse-operator"
- )
- assert start_time == new_start_time, error(
- f"{start_time} != {new_start_time}, pod restarted after operator upgrade"
- )
-
- with Finally("I clean up"):
- with By("deleting chi"):
- kubectl.delete_chi(chi)
-
def wait_operator_restart(chi, wait_objects, shell=None):
with When("Restart operator"):
@@ -344,6 +247,8 @@ def test_operator_restart(self, manifest, service, version=None):
},
)
+ wait_for_cluster(chi, cluster, 2)
+
with Then("Create tables"):
for h in [f"chi-{chi}-{cluster}-0-0-0", f"chi-{chi}-{cluster}-1-0-0"]:
clickhouse.query(
@@ -356,7 +261,6 @@ def test_operator_restart(self, manifest, service, version=None):
"CREATE TABLE IF NOT EXISTS test_dist as test_local Engine = Distributed('{cluster}', default, test_local, a)",
host=h,
)
- wait_for_cluster(chi, cluster, 2)
trigger_event = threading.Event()
@@ -565,6 +469,101 @@ def test_008_3(self):
delete_test_namespace()
+@TestCheck
+def test_operator_upgrade(self, manifest, service, version_from, version_to=None, shell=None):
+ if version_to is None:
+ version_to = current().context.operator_version
+ with Given(f"clickhouse-operator from {version_from}"):
+ current().context.operator_version = version_from
+ create_shell_namespace_clickhouse_template()
+
+ chi = yaml_manifest.get_name(util.get_full_path(manifest, True))
+ cluster = chi
+
+ kubectl.create_and_check(
+ manifest=manifest,
+ check={
+ "object_counts": {
+ "statefulset": 2,
+ "pod": 2,
+ "service": 3,
+ },
+ "do_not_delete": 1,
+ },
+ )
+ start_time = kubectl.get_field("pod", f"chi-{chi}-{cluster}-0-0-0", ".status.startTime")
+
+ with Then("Create tables"):
+ for h in [f"chi-{chi}-{cluster}-0-0-0", f"chi-{chi}-{cluster}-1-0-0"]:
+ clickhouse.query(
+ chi,
+ "CREATE TABLE IF NOT EXISTS test_local (a UInt32) Engine = Log",
+ host=h,
+ )
+ clickhouse.query(chi, "INSERT INTO test_local SELECT 1", host=h)
+
+ trigger_event = threading.Event()
+
+ with When("I create new shells"):
+ shell_1 = get_shell()
+ shell_2 = get_shell()
+ shell_3 = get_shell()
+
+ Check("run query until receive stop event", test=run_select_query, parallel=True)(
+ host=service,
+ user="test_009",
+ password="test_009",
+ query="select count() from cluster('{cluster}', system.one)",
+ res1="2",
+ res2="1",
+ trigger_event=trigger_event,
+ shell=shell_1
+ )
+
+ Check("Check that cluster definition does not change during restart", test=check_remote_servers, parallel=True)(
+ chi=chi,
+ shards=2,
+ trigger_event=trigger_event,
+ shell=shell_2
+ )
+
+ with When(f"upgrade operator to {version_to}"):
+ util.install_operator_version(version_to)
+ time.sleep(15)
+
+ kubectl.wait_chi_status(chi, "Completed")
+ kubectl.wait_objects(chi, {"statefulset": 2, "pod": 2, "service": 3})
+
+ trigger_event.set()
+ join()
+
+ with Then("I recreate shell"):
+ shell = get_shell()
+ self.context.shell = shell
+
+ with Then("Check that table is here"):
+ tables = clickhouse.query(chi, "SHOW TABLES")
+ assert "test_local" in tables
+ out = clickhouse.query(chi, "SELECT count() FROM test_local")
+ assert out == "1"
+
+ with Then("ClickHouse pods should not be restarted during upgrade"):
+ new_start_time = kubectl.get_field("pod", f"chi-{chi}-{cluster}-0-0-0", ".status.startTime")
+ if start_time != new_start_time:
+ kubectl.launch(f"describe chi -n {self.context.test_namespace} {chi}")
+ kubectl.launch(
+ # In my env "pod/: prefix is already returned by $(kubectl get pods -o name -n {current().context.operator_namespace} | grep clickhouse-operator)
+ # f"logs -n {current().context.operator_namespace} pod/$(kubectl get pods -o name -n {current().context.operator_namespace} | grep clickhouse-operator) -c clickhouse-operator"
+ f"logs -n {current().context.operator_namespace} $(kubectl get pods -o name -n {current().context.operator_namespace} | grep clickhouse-operator) -c clickhouse-operator"
+ )
+ assert start_time == new_start_time, error(
+ f"{start_time} != {new_start_time}, pod restarted after operator upgrade"
+ )
+
+ with Finally("I clean up"):
+ delete_test_namespace()
+
+
@TestScenario
@Name("test_009_1. Test operator upgrade")
@Requirements(RQ_SRS_026_ClickHouseOperator_Managing_UpgradingOperator("1.0"))
@@ -573,8 +572,6 @@ def test_009_1(self, version_from="0.23.7", version_to=None):
if version_to is None:
version_to = self.context.operator_version
- create_shell_namespace_clickhouse_template()
-
with Check("Test simple chi for operator upgrade"):
test_operator_upgrade(
manifest="manifests/chi/test-009-operator-upgrade-1.yaml",
@@ -583,9 +580,6 @@ def test_009_1(self, version_from="0.23.7", version_to=None):
version_to=version_to,
)
- with Finally("I clean up"):
- delete_test_namespace()
-
@TestScenario
@Name("test_009_2. Test operator upgrade")
@@ -594,8 +588,6 @@ def test_009_2(self, version_from="0.23.7", version_to=None):
if version_to is None:
version_to = self.context.operator_version
- create_shell_namespace_clickhouse_template()
-
with Check("Test advanced chi for operator upgrade"):
test_operator_upgrade(
manifest="manifests/chi/test-009-operator-upgrade-2.yaml",
@@ -604,9 +596,6 @@ def test_009_2(self, version_from="0.23.7", version_to=None):
version_to=version_to,
)
- with Finally("I clean up"):
- delete_test_namespace()
-
@TestScenario
@Name("test_010. Test zookeeper initialization")
@@ -614,7 +603,6 @@ def test_009_2(self, version_from="0.23.7", version_to=None):
def test_010(self):
create_shell_namespace_clickhouse_template()
- util.set_operator_version(current().context.operator_version)
util.require_keeper(keeper_type=self.context.keeper_type)
kubectl.create_and_check(
@@ -635,6 +623,41 @@ def test_010(self):
with Finally("I clean up"):
delete_test_namespace()
+@TestScenario
+@Name("test_010_1. Test zookeeper initialization AFTER starting a cluster")
+def test_010_1(self):
+ create_shell_namespace_clickhouse_template()
+ chi = "test-010-zkroot"
+
+ kubectl.create_and_check(
+ manifest="manifests/chi/test-010-zkroot.yaml",
+ check={
+ "apply_templates": {
+ current().context.clickhouse_template,
+ },
+ "do_not_delete": 1,
+ "chi_status": "InProgress"
+ },
+ )
+
+ with Then("Wait 60 seconds for operator to start creating ZooKeeper root"):
+ time.sleep(60)
+
+ # with Then("CHI should be in progress with no pods created yet"):
+ # assert kubectl.get_chi_status(chi) == "InProgress"
+ # assert kubectl.get_count("pod", chi = chi) == 0
+
+ util.require_keeper(keeper_type=self.context.keeper_type)
+
+ kubectl.wait_chi_status(chi, "Completed")
+
+ with And("ClickHouse should not complain regarding zookeeper path"):
+ out = clickhouse.query_with_error("test-010-zkroot", "select path from system.zookeeper where path = '/' limit 1")
+ assert "/" == out
+
+ with Finally("I clean up"):
+ delete_test_namespace()
+
def get_user_xml_from_configmap(chi, user):
users_xml = kubectl.get("configmap", f"chi-{chi}-common-usersd")["data"]["chop-generated-users.xml"]
@@ -1261,14 +1284,14 @@ def get_shards_from_remote_servers(chi, cluster, shell=None):
return chi_shards
-def wait_for_cluster(chi, cluster, num_shards, num_replicas=0, pwd="", force_wait = False):
+def wait_for_cluster(chi, cluster, num_shards, num_replicas=0, pwd="", force_wait=False):
with Given(f"Cluster {cluster} is properly configured"):
- if current().context.operator_version >= "0.24" and force_wait == False:
+ if current().context.operator_version >= "0.24" and force_wait is False:
print(f"operator {current().context.operator_version} does not require extra wait, skipping check")
else:
with By(f"remote_servers have {num_shards} shards"):
assert num_shards == get_shards_from_remote_servers(chi, cluster)
- with By(f"ClickHouse recognizes {num_shards} shards in the cluster"):
+ with By(f"ClickHouse recognizes {num_shards} shards in the cluster {cluster}"):
for shard in range(num_shards):
shards = ""
for i in range(1, 10):
@@ -1286,22 +1309,41 @@ def wait_for_cluster(chi, cluster, num_shards, num_replicas=0, pwd="", force_wai
assert shards == str(num_shards)
if num_replicas > 0:
- with By(f"ClickHouse recognizes {num_replicas} replicas in the cluster"):
- for replica in range(num_replicas):
- replicas = ""
- for i in range(1, 10):
- replicas = clickhouse.query(
- chi,
- f"select uniq(replica_num) from system.clusters where cluster ='{cluster}'",
- host=f"chi-{chi}-{cluster}-0-{replica}",
- pwd=pwd,
- with_error=True,
+ with By(f"ClickHouse recognizes {num_replicas} replicas shard in the cluster {cluster}"):
+ for shard in range(num_shards):
+ for replica in range(num_replicas):
+ replicas = ""
+ for i in range(1, 10):
+ replicas = clickhouse.query(
+ chi,
+ f"select uniq(replica_num) from system.clusters where cluster ='{cluster}'",
+ host=f"chi-{chi}-{cluster}-{shard}-{replica}",
+ pwd=pwd,
+ with_error=True,
)
- if replicas == str(num_replicas):
- break
- with Then("Not ready. Wait for " + str(i * 5) + " seconds"):
- time.sleep(i * 5)
- assert replicas == str(num_replicas)
+ if replicas == str(num_replicas):
+ break
+ with Then(f"Not ready. {replicas}/{num_replicas} replicas Wait for " + str(i * 5) + " seconds"):
+ time.sleep(i * 5)
+ assert replicas == str(num_replicas)
+ num_hosts = num_shards * num_replicas
+ with By(f"ClickHouse recognizes {num_hosts} hosts in the cluster {cluster}"):
+ for shard in range(num_shards):
+ for replica in range(num_replicas):
+ hosts = ""
+ for i in range(1, 10):
+ hosts = clickhouse.query(
+ chi,
+ f"select count() from system.clusters where cluster ='{cluster}'",
+ host=f"chi-{chi}-{cluster}-{shard}-{replica}",
+ pwd=pwd,
+ with_error=True,
+ )
+ if hosts == str(num_hosts):
+ break
+ with Then(f"Not ready. {hosts}/{num_hosts} hosts Wait for " + str(i * 5) + " seconds"):
+ time.sleep(i * 5)
+ assert hosts == str(num_hosts)
@TestScenario
@@ -1394,12 +1436,14 @@ def test_014_0(self):
"CREATE TABLE test_replicated_014.test_replicated_014 (a Int8) Engine = ReplicatedMergeTree ORDER BY tuple()",
]
- wait_for_cluster(chi_name, cluster, n_shards)
+ wait_for_cluster(chi_name, cluster, n_shards, 1)
with Then("Create schema objects"):
for q in create_ddls:
clickhouse.query(chi_name, q, host=f"chi-{chi_name}-{cluster}-0-0")
+ # Give some time for replication to catch up
+ time.sleep(10)
with Given("Replicated tables are created on a first replica and data is inserted"):
for table in replicated_tables:
if table != "test_atomic_014.test_mv2_014":
@@ -1461,6 +1505,34 @@ def check_schema_propagation(replicas):
)
assert out == "1"
+ with And("Replicated database should have correct uuid, so new tables are automatically created"):
+ import time
+
+ new_table = "test_replicated_014_" + str(int(time.time()))
+ new_table_ddl = f"CREATE TABLE test_replicated_014.{new_table} (a Int8) Engine = ReplicatedMergeTree ORDER BY tuple()"
+ with Then(f"Create {new_table} on one node only"):
+ clickhouse.query(chi_name, new_table_ddl)
+
+ # Give some time for replication to catch up
+ time.sleep(10)
+
+ for replica in replicas:
+ for shard in shards:
+ host=f"chi-{chi_name}-{cluster}-{shard}-{replica}"
+ out = clickhouse.query(
+ chi_name,
+ f"SELECT uuid FROM system.databases where name = 'test_replicated_014'",
+ host=host,
+ )
+ print(f"{host} database uuid: {out}")
+ print(f"Checking {new_table}")
+ out = clickhouse.query(
+ chi_name,
+ f"SELECT count() FROM system.tables WHERE name = '{new_table}'",
+ host=host,
+ )
+ assert out == "1"
+
with And("Replicated table should have the data"):
for replica in replicas:
for shard in shards:
@@ -1527,9 +1599,7 @@ def check_schema_propagation(replicas):
kubectl.launch(f"delete pod {self.context.keeper_type}-0")
time.sleep(1)
- with Then(
- f"try insert into the table while {self.context.keeper_type} offline table should be in readonly mode"
- ):
+ with Then(f"try insert into the table while {self.context.keeper_type} offline table should be in readonly mode"):
out = clickhouse.query_with_error(chi_name, "SET insert_keeper_max_retries=0; INSERT INTO test_local_014 VALUES(2)")
assert "Table is in readonly mode" in out
@@ -1559,28 +1629,44 @@ def check_schema_propagation(replicas):
time.sleep(10)
check_schema_propagation([1])
+ with When("Remove shard"):
+ manifest = "manifests/chi/test-014-0-replication-2-1.yaml"
+ chi_name = yaml_manifest.get_name(util.get_full_path(manifest))
+ kubectl.create_and_check(
+ manifest=manifest,
+ check={
+ "pod_count": 2,
+ "do_not_delete": 1,
+ },
+ timeout=600,
+ )
+ with Then("Shard should be deleted in ZooKeeper"):
+ out = clickhouse.query_with_error(
+ chi_name,
+ f"SELECT count() FROM system.zookeeper WHERE path ='/clickhouse/{cluster}/tables/1/default'",
+ )
+ note(f"Found {out} replicated tables in {self.context.keeper_type}")
+ # FIXME: it fails
+ # assert "DB::Exception: No node" in out or out == "0"
+
with When("Delete chi"):
kubectl.delete_chi("test-014-replication")
- with Then(
- f"Tables should be deleted in {self.context.keeper_type}. We can test it re-creating the chi and checking {self.context.keeper_type} contents"
- ):
- manifest = "manifests/chi/test-014-0-replication-1.yaml"
- kubectl.create_and_check(
- manifest=manifest,
- check={
- "pod_count": 2,
- "pdb": {"default": 1},
- "do_not_delete": 1,
- },
+ manifest = "manifests/chi/test-014-0-replication-1.yaml"
+ kubectl.create_and_check(
+ manifest=manifest,
+ check={
+ "pod_count": 2,
+ "do_not_delete": 1,
+ },
+ )
+ with Then("Tables are deleted in ZooKeeper"):
+ out = clickhouse.query_with_error(
+ chi_name,
+ f"SELECT count() FROM system.zookeeper WHERE path ='/clickhouse/{cluster}/tables/0/default'",
)
- with Then("Tables are deleted in ZooKeeper"):
- out = clickhouse.query_with_error(
- chi_name,
- f"SELECT count() FROM system.zookeeper WHERE path ='/clickhouse/{chi_name}/tables/0/default'",
- )
- note(f"Found {out} replicated tables in {self.context.keeper_type}")
- assert "DB::Exception: No node" in out or out == "0"
+ note(f"Found {out} replicated tables in {self.context.keeper_type}")
+ assert "DB::Exception: No node" in out or out == "0"
with Finally("I clean up"):
delete_test_namespace()
@@ -2584,27 +2670,45 @@ def test_024(self):
},
)
- def checkAnnotations(annotation, value):
+ def check_annotations(annotation, value, allow_to_fail_for_pvc=False):
with Then(f"Pod annotation {annotation}={value} should populated from a podTemplate"):
- assert kubectl.get_field("pod", "chi-test-024-default-0-0-0", f".metadata.annotations.podtemplate/{annotation}") == value
+ have = kubectl.get_field("pod", "chi-test-024-default-0-0-0", f".metadata.annotations.podtemplate/{annotation}")
+ print(f"pod annotation have: {have}")
+ print(f"pod annotation need: {value}")
+ assert have == value
with And(f"Service annotation {annotation}={value} should be populated from a serviceTemplate"):
- assert kubectl.get_field("service", "clickhouse-test-024", f".metadata.annotations.servicetemplate/{annotation}") == value
+ have = kubectl.get_field("service", "clickhouse-test-024", f".metadata.annotations.servicetemplate/{annotation}")
+ print(f"service annotation have: {have}")
+ print(f"service annotation need: {value}")
+ assert have == value
with And(f"PVC annotation {annotation}={value} should be populated from a volumeTemplate"):
- assert kubectl.get_field("pvc", "-l clickhouse.altinity.com/chi=test-024", f".metadata.annotations.pvc/{annotation}") == value
+ have = kubectl.get_field("pvc", "-l clickhouse.altinity.com/chi=test-024", f".metadata.annotations.pvc/{annotation}")
+ print(f"pvc annotation have: {have}")
+ print(f"pvc annotation need: {value}")
+ assert allow_to_fail_for_pvc or (have == value)
with And(f"Pod annotation {annotation}={value} should populated from a CHI"):
- assert kubectl.get_field("pod", "chi-test-024-default-0-0-0", f".metadata.annotations.chi/{annotation}") == value
+ have = kubectl.get_field("pod", "chi-test-024-default-0-0-0", f".metadata.annotations.chi/{annotation}")
+ print(f"pod annotation have: {have}")
+ print(f"pod annotation need: {value}")
+ assert have == value
with And(f"Service annotation {annotation}={value} should be populated from a CHI"):
- assert kubectl.get_field("service", "clickhouse-test-024", f".metadata.annotations.chi/{annotation}") == value
+ have = kubectl.get_field("service", "clickhouse-test-024", f".metadata.annotations.chi/{annotation}")
+ print(f"service annotation have: {have}")
+ print(f"service annotation need: {value}")
+ assert have == value
with And(f"PVC annotation {annotation}={value} should be populated from a CHI"):
- assert kubectl.get_field("pvc", "-l clickhouse.altinity.com/chi=test-024", f".metadata.annotations.chi/{annotation}") == value
+ have = kubectl.get_field("pvc", "-l clickhouse.altinity.com/chi=test-024", f".metadata.annotations.chi/{annotation}")
+ print(f"pvc annotation have: {have}")
+ print(f"pvc annotation need: {value}")
+ assert allow_to_fail_for_pvc or (have == value)
- checkAnnotations("test", "test")
+ check_annotations("test", "test")
with And("Service annotation macros should be resolved"):
assert (
@@ -2632,8 +2736,8 @@ def checkAnnotations(annotation, value):
"do_not_delete": 1,
},
)
- checkAnnotations("test", "test-2")
- checkAnnotations("test-2", "test-2")
+ check_annotations("test", "test-2")
+ check_annotations("test-2", "test-2")
with When("Revert template annotations to original values"):
kubectl.create_and_check(
@@ -2643,10 +2747,9 @@ def checkAnnotations(annotation, value):
"do_not_delete": 1,
},
)
- checkAnnotations("test", "test")
- # with Then("Annotation test-2 should be removed"):
- # TODO. Does not work for services yet
- # checkAnnotations("test-2", "")
+ check_annotations("test", "test")
+ with Then("Annotation test-2 should be removed"):
+ check_annotations("test-2", "", allow_to_fail_for_pvc=True)
with Finally("I clean up"):
delete_test_namespace()
@@ -3304,19 +3407,8 @@ def test_032(self):
create_shell_namespace_clickhouse_template()
util.require_keeper(keeper_type=self.context.keeper_type)
- create_table = """
- CREATE TABLE test_local_032 ON CLUSTER 'default' (a UInt32)
- Engine = ReplicatedMergeTree('/clickhouse/{installation}/tables/{shard}/{database}/{table}', '{replica}')
- PARTITION BY tuple()
- ORDER BY a
- """.replace(
- "\r", ""
- ).replace(
- "\n", ""
- )
manifest = "manifests/chi/test-032-rescaling.yaml"
-
chi = yaml_manifest.get_name(util.get_full_path(manifest))
kubectl.create_and_check(
@@ -3341,16 +3433,18 @@ def test_032(self):
# remote_servers = kubectl.get("configmap", f"chi-{chi}-common-configd")["data"]["chop-generated-remote_servers.xml"]
# print(remote_servers)
wait_for_cluster(chi, 'default', 2, 2)
- time.sleep(60)
with Given("Create replicated and distributed tables"):
- clickhouse.query(chi, create_table)
+ clickhouse.query(
+ chi,
+ "CREATE TABLE test_local_032 ON CLUSTER 'default' (a UInt32) Engine = ReplicatedMergeTree() PARTITION BY tuple() ORDER BY a",
+ )
clickhouse.query(
chi,
"CREATE TABLE test_distr_032 ON CLUSTER 'default' AS test_local_032 Engine = Distributed('default', default, test_local_032, a%2)",
)
clickhouse.query(chi, f"INSERT INTO test_distr_032 select * from numbers({numbers})")
- time.sleep(60)
+ time.sleep(10)
with Then("Distributed table is created on all nodes"):
cnt = clickhouse.query(chi_name=chi, sql="select count() from cluster('all-sharded', system.tables) where name='test_distr_032'")
@@ -3367,7 +3461,6 @@ def test_032(self):
with When("I create new shells"):
shell_1 = get_shell()
shell_2 = get_shell()
- shell_3 = get_shell()
Check("run query until receive stop event", test=run_select_query, parallel=True)(
host="clickhouse-test-032-rescaling",
@@ -3392,10 +3485,6 @@ def test_032(self):
kubectl.create_and_check(
manifest="manifests/chi/test-032-rescaling-2.yaml",
check={
- "apply_templates": {
- self.context.clickhouse_template,
- "manifests/chit/tpl-persistent-volume-100Mi.yaml",
- },
"object_counts": {
"statefulset": 4,
"pod": 4,
@@ -3403,8 +3492,7 @@ def test_032(self):
},
"do_not_delete": 1,
},
- timeout=int(1000),
- shell=shell_3
+ timeout=900,
)
trigger_event.set()
@@ -4012,7 +4100,6 @@ def test_040(self):
"pod_volumes": {
"/var/lib/clickhouse",
},
- "pod_image": current().context.clickhouse_version,
"do_not_delete": 1,
"chi_status": "InProgress",
},
@@ -4573,8 +4660,8 @@ def test_048(self):
"""Check clickhouse-operator support ClickHouseKeeperInstallation with PVC in keeper manifest."""
create_shell_namespace_clickhouse_template()
- util.require_keeper(keeper_type="CHK",
- keeper_manifest="clickhouse-keeper-3-node-for-test-only-version-24.yaml")
+ util.require_keeper(keeper_type="chk",
+ keeper_manifest="clickhouse-keeper-3-node-for-test-only.yaml")
manifest = f"manifests/chi/test-048-clickhouse-keeper.yaml"
chi = yaml_manifest.get_name(util.get_full_path(manifest))
cluster = "default"
@@ -4586,29 +4673,7 @@ def test_048(self):
"do_not_delete": 1,
},
)
- with When("I create replicated table"):
- create_table = """
- CREATE TABLE test_local_048 ON CLUSTER 'default' (a UInt32)
- Engine = ReplicatedMergeTree('/clickhouse/{installation}/tables/{shard}/{database}/{table}', '{replica}')
- PARTITION BY tuple()
- ORDER BY a
- """.replace(
- "\r", ""
- ).replace(
- "\n", ""
- )
- clickhouse.query(chi, create_table)
-
- numbers = 100
- with And("I insert data in the replicated table"):
- clickhouse.query(chi, f"INSERT INTO test_local_048 select * from numbers({numbers})")
-
- with Then("Check replicated table on host 0 has all rows"):
- out = clickhouse.query(chi, "SELECT count(*) from test_local_048", host=f"chi-{chi}-{cluster}-0-0-0")
- assert out == f"{numbers}", error()
- with Then("Check replicated table on host 1 has all rows"):
- out = clickhouse.query(chi, "SELECT count(*) from test_local_048", host=f"chi-{chi}-{cluster}-0-1-0")
- assert out == f"{numbers}", error()
+ check_replication(chi, {0,1}, 1)
with Finally("I clean up"):
delete_test_namespace()
@@ -4621,13 +4686,13 @@ def test_049(self):
when clickhouse-keeper defined with ClickHouseKeeperInstallation."""
create_shell_namespace_clickhouse_template()
- util.require_keeper(keeper_type="CHK",
- keeper_manifest="clickhouse-keeper-3-node-for-test-only-version-24.yaml")
+ util.require_keeper(keeper_type="chk",
+ keeper_manifest="clickhouse-keeper-3-node-for-test-only.yaml")
manifest = f"manifests/chi/test-049-clickhouse-keeper-upgrade.yaml"
chi = yaml_manifest.get_name(util.get_full_path(manifest))
cluster = "default"
- keeper_version_from = "24.3.5.46"
- keeper_version_to = "24.8.5.115"
+ keeper_version_from = "24.8"
+ keeper_version_to = "24.9"
with Given("CHI with 2 replicas"):
kubectl.create_and_check(
manifest=manifest,
@@ -4637,30 +4702,11 @@ def test_049(self):
},
)
- with When("I create replicated table"):
- create_table = """
- CREATE TABLE test_local_049 ON CLUSTER 'default' (a UInt32)
- Engine = ReplicatedMergeTree('/clickhouse/{installation}/tables/{shard}/{database}/{table}', '{replica}')
- PARTITION BY tuple()
- ORDER BY a
- """.replace(
- "\r", ""
- ).replace(
- "\n", ""
- )
- clickhouse.query(chi, create_table)
-
- with And("I insert data in the replicated table"):
- clickhouse.query(chi, f"INSERT INTO test_local_049 select 1")
-
- with Then("Check replicated table has data on both nodes"):
- for replica in {0,1}:
- out = clickhouse.query(chi, "SELECT count(*) from test_local_049", host=f"chi-{chi}-{cluster}-0-{replica}-0")
- assert out == "1", error()
+ check_replication(chi, {0,1}, 1)
with When(f"I check clickhouse-keeper version is {keeper_version_from}"):
assert keeper_version_from in \
- kubectl.get_field('pod', 'chk-clickhouse-keeper-test-only-0-0-0', '.spec.containers[0].image'), error()
+ kubectl.get_field('pod', 'chk-clickhouse-keeper-test-0-0-0', '.spec.containers[0].image'), error()
with Then(f"I change keeper version to {keeper_version_to}"):
cmd = f"""patch chk clickhouse-keeper --type='json' --patch='[{{"op":"replace","path":"/spec/templates/podTemplates/0/spec/containers/0/image","value":"clickhouse/clickhouse-keeper:{keeper_version_to}"}}]'"""
@@ -4672,20 +4718,11 @@ def test_049(self):
kubectl.wait_chk_status('clickhouse-keeper', 'Completed')
with When(f"I check clickhouse-keeper version is changed to {keeper_version_to}"):
- assert keeper_version_to in \
- kubectl.get_field('pod', 'chk-clickhouse-keeper-test-only-0-0-0', '.spec.containers[0].image'), error()
- assert keeper_version_to in \
- kubectl.get_field('pod', 'chk-clickhouse-keeper-test-only-0-1-0', '.spec.containers[0].image'), error()
- assert keeper_version_to in \
- kubectl.get_field('pod', 'chk-clickhouse-keeper-test-only-0-2-0', '.spec.containers[0].image'), error()
+ kubectl.wait_field('pod', 'chk-clickhouse-keeper-test-0-0-0', '.spec.containers[0].image', f'clickhouse/clickhouse-keeper:{keeper_version_to}', retries=5)
+ kubectl.wait_field('pod', 'chk-clickhouse-keeper-test-0-1-0', '.spec.containers[0].image', f'clickhouse/clickhouse-keeper:{keeper_version_to}', retries=5)
+ kubectl.wait_field('pod', 'chk-clickhouse-keeper-test-0-2-0', '.spec.containers[0].image', f'clickhouse/clickhouse-keeper:{keeper_version_to}', retries=5)
- with And("I insert data in the replicated table after clickhouse-keeper upgrade"):
- clickhouse.query(chi, f"INSERT INTO test_local_049 select 2", timeout=600)
-
- with Then("Check replicated table has data on both nodes"):
- for replica in {0,1}:
- out = clickhouse.query(chi, "SELECT count(*) from test_local_049", host=f"chi-{chi}-{cluster}-0-{replica}-0")
- assert out == "2", error()
+ check_replication(chi, {0,1}, 2)
with Finally("I clean up"):
delete_test_namespace()
@@ -4714,20 +4751,39 @@ def test_050(self):
},
)
- def test_labels(chi, label, value):
+ def test_labels(chi, type, key, value):
+
+ with Then(f"Pod {type} {key}={value} should populated from CHI"):
+ assert kubectl.get_field("pod", f"-l clickhouse.altinity.com/chi={chi}", f".metadata.{type}s.{key}") == value
+
+ with And(f"Service {type} {key}={value} should populated from CHI"):
+ assert kubectl.get_field("service", f"-l clickhouse.altinity.com/chi={chi}", f".metadata.{type}s.{key}") == value
- with Then(f"Pod label {label}={value} should populated from CHI"):
- assert kubectl.get_field("pod", f"-l clickhouse.altinity.com/chi={chi}", f".metadata.labels.{label}") == value
+ with And(f"PVC {type} {key}={value} should populated from CHI"):
+ assert kubectl.get_field("pvc", f"-l clickhouse.altinity.com/chi={chi}", f".metadata.{type}s.{key}") == value
- with And(f"Service label {label}={value} should populated from CHI"):
- assert kubectl.get_field("service", f"-l clickhouse.altinity.com/chi={chi}", f".metadata.labels.{label}") == value
+ test_labels(chi, "label", "include_this_label", "test-050-label")
- with And(f"PVC label {label}={value} should populated from CHI"):
- assert kubectl.get_field("pvc", f"-l clickhouse.altinity.com/chi={chi}", f".metadata.labels.{label}") == value
+ test_labels(chi, "label", "exclude_this_label", "")
- test_labels(chi, "include_this_label", "test-050")
+ test_labels(chi, "annotation", "include_this_annotation", "test-050-annotation")
- test_labels(chi, "exclude_this_label", "")
+ test_labels(chi, "annotation", "exclude_this_annotation", "")
+
+
+ with Then("Check that exposed metrics do not have labels and annotations that are excluded"):
+ operator_namespace=current().context.operator_namespace
+ out = kubectl.launch("get pods -l app=clickhouse-operator", ns=operator_namespace).splitlines()[1]
+ operator_pod = re.split(r"[\t\r\n\s]+", out)[0]
+
+ # chi_clickhouse_metric_VersionInteger{chi="test-050",exclude_this_annotation="test-050-annotation",hostname="chi-test-050-default-0-0.test-050-e1884706-9a94-11ef-a786-367ddacfe5fd.svc.cluster.local",include_this_annotation="test-050-annotation",include_this_label="test-050-label",namespace="test-050-e1884706-9a94-11ef-a786-367ddacfe5fd"}
+ expect_labels = f"chi=\"test-050\",hostname=\"chi-test-050-default-0-0.{operator_namespace}.svc.cluster.local\",include_this_annotation=\"test-050-annotation\",include_this_label=\"test-050-label\""
+ check_metrics_monitoring(
+ operator_namespace = operator_namespace,
+ operator_pod=operator_pod,
+ expect_metric="chi_clickhouse_metric_VersionInteger",
+ expect_labels=expect_labels
+ )
with Finally("I clean up"):
delete_test_namespace()
@@ -4769,17 +4825,7 @@ def test_051(self):
},
)
- with When("I create replicated table"):
- create_table = "CREATE TABLE test_local_051 ON CLUSTER 'default' (a UInt32) Engine = ReplicatedMergeTree ORDER BY a"
- clickhouse.query(chi, create_table)
-
- with And("I insert data in the replicated table"):
- clickhouse.query(chi, f"INSERT INTO test_local_051 select 1")
-
- with Then("Check replicated table has data on both nodes"):
- for replica in {0,1}:
- out = clickhouse.query(chi, "SELECT count(*) from test_local_051", host=f"chi-{chi}-{cluster}-0-{replica}-0")
- assert out == "1", error()
+ check_replication(chi, {0,1}, 1, "test_local_051")
with When(f"upgrade operator to {version_to}"):
util.install_operator_version(version_to)
@@ -4824,13 +4870,7 @@ def test_051(self):
out = clickhouse.query(chi, host=host, sql="SELECT count(*) from system.replicas where is_readonly")
assert out == "0", error()
- with And("I insert data in the replicated table"):
- clickhouse.query(chi, f"INSERT INTO test_local_051 select 2")
-
- with Then("Check replicated table has data on both nodes"):
- for replica in {0,1}:
- out = clickhouse.query(chi, "SELECT count(*) from test_local_051", host=f"chi-{chi}-{cluster}-0-{replica}-0")
- assert out == "2", error()
+ check_replication(chi, {0,1}, 2, "test_local_051")
with Finally("I clean up"):
delete_test_namespace()
@@ -4869,17 +4909,22 @@ def test_051_1(self):
},
)
- with When("I create replicated table"):
- create_table = "CREATE TABLE test_local_051 ON CLUSTER 'default' (a UInt32) Engine = ReplicatedMergeTree ORDER BY a"
- clickhouse.query(chi, create_table)
+ check_replication(chi, {0,1}, 1)
- with And("I insert data in the replicated table"):
- clickhouse.query(chi, f"INSERT INTO test_local_051 select 1")
+ with Then("Unattach old CHK resources"):
+ kubectl.launch(f"patch sts {chk} -p " + """\'{"metadata":{"ownerReferences":null}}\'""")
+ kubectl.launch(f"patch cm {chk} -p " + """\'{"metadata":{"ownerReferences":null}}\'""")
+ kubectl.launch(f"patch service {chk} -p " + """\'{"metadata":{"ownerReferences":null}}\'""")
+ kubectl.launch(f"patch service {chk}-headless -p " + """\'{"metadata":{"ownerReferences":null}}\'""")
+ kubectl.launch(f"label pod -lapp={chk} app-")
+ kubectl.launch(f"label sts -lapp={chk} app-")
- with Then("Check replicated table has data on both nodes"):
- for replica in {0,1}:
- out = clickhouse.query(chi, "SELECT count(*) from test_local_051", host=f"chi-{chi}-{cluster}-0-{replica}-0")
- assert out == "1", error()
+ with Then("Confirm that statefulset and pod are still running if we delete chk"):
+ kubectl.delete_kind("chk", chk)
+ assert kubectl.get_field("pod", "test-051-chk-0", ".status.phase") == "Running"
+ assert kubectl.get_count("sts", "test-051-chk") == 1
+ assert kubectl.get_count("cm", "test-051-chk") == 1
+ assert kubectl.get_count("service", "test-051-chk") == 1
old_pvc = "both-paths-test-051-chk-0"
pv = kubectl.get_pv_name(old_pvc)
@@ -4889,7 +4934,8 @@ def test_051_1(self):
kubectl.launch(f"patch pv {pv}" + """ -p \'{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}\'""")
with Then("Delete old Keeper resources"):
- kubectl.delete_kind("chk", chk)
+ kubectl.delete_kind("sts", "test-051-chk")
+ kubectl.delete_kind("pod", "test-051-chk-0")
kubectl.delete_kind("pvc", old_pvc)
with Then("Unmount PV from old PVC"):
@@ -4926,17 +4972,118 @@ def test_051_1(self):
time.sleep(10)
assert out == "1", error()
- with And("I insert data in the replicated table"):
- clickhouse.query(chi, f"INSERT INTO test_local_051 select 2")
+ check_replication(chi, {0,1}, 2)
+
+ with Finally("I clean up"):
+ delete_test_namespace()
+
+@TestScenario
+@Name("test_052. Clickhouse-keeper scale-up/scale-down")
+def test_052(self):
+ """Check that clickhouse-operator support scale-up/scale-down without service interruption"""
+
+ create_shell_namespace_clickhouse_template()
- with Then("Check replicated table has data on both nodes"):
- for replica in {0,1}:
- out = clickhouse.query(chi, "SELECT count(*) from test_local_051", host=f"chi-{chi}-{cluster}-0-{replica}-0")
- assert out == "2", error()
+ chi_manifest = "manifests/chi/test-052-keeper-rescale.yaml"
+ chk_manifest_1 = "manifests/chk/test-052-chk-rescale-1.yaml"
+ chk_manifest_3 = "manifests/chk/test-052-chk-rescale-3.yaml"
+ chi = yaml_manifest.get_name(util.get_full_path(chi_manifest))
+ chk = yaml_manifest.get_name(util.get_full_path(chk_manifest_1))
+
+ cluster = "default"
+
+ with Given("Install CHK"):
+ kubectl.create_and_check(
+ manifest=chk_manifest_1, kind="chk",
+ check={
+ "pod_count": 1,
+ "do_not_delete": 1,
+ },
+ )
+
+ with Given("CHI with 2 replicas"):
+ kubectl.create_and_check(
+ manifest=chi_manifest,
+ check={
+ "pod_count": 2,
+ "do_not_delete": 1,
+ },
+ )
+
+ check_replication(chi, {0,1}, 1)
+
+ with Given("Rescale CHK to 3 replicas"):
+ kubectl.create_and_check(
+ manifest=chk_manifest_3, kind="chk",
+ check={
+ "pod_count": 1,
+ "do_not_delete": 1,
+ },
+ )
+
+ check_replication(chi, {0,1}, 2)
+
+ with Then("Kill first pod to switch the leader"):
+ kubectl.launch(f"delete pod chk-test-052-chk-keeper-0-0-0")
+ time.sleep(10)
+
+ # with Then("Force leader to be on the first node only"):
+ # kubectl.create_and_check(
+ # manifest="manifests/chk/test-052-chk-rescale-1.1.yaml", kind="chk",
+ # check={
+ # "pod_count": 3,
+ # "do_not_delete": 1,
+ # },
+ # )
+
+ # check_replication(chi, {0,1}, 3)
+
+
+ # with Then("Remove other nodes from the raft configuration"):
+ # kubectl.create_and_check(
+ # manifest="manifests/chk/test-052-chk-rescale-1.2.yaml", kind="chk",
+ # check={
+ # "do_not_delete": 1,
+ # },
+ # )
+
+ # check_replication(chi, {0,1}, 4)
+
+
+ with Then("Rescale CHK back to 1 replica"):
+ kubectl.create_and_check(
+ manifest="manifests/chk/test-052-chk-rescale-1.yaml", kind="chk",
+ check={
+ "pod_count": 1,
+ "do_not_delete": 1,
+ },
+ )
+
+ check_replication(chi, {0,1}, 5)
with Finally("I clean up"):
delete_test_namespace()
+
+def check_replication(chi, replicas, token, table = ''):
+ cluster = clickhouse.query(chi, "select substitution from system.macros where macro = 'cluster'")
+ if table == '':
+ table = chi.replace('-','_')
+
+ wait_for_cluster(chi, cluster, 1, len(replicas))
+
+ with When("Create a replicated table if not exists"):
+ clickhouse.query(chi, f"CREATE TABLE IF NOT EXISTS {table} ON CLUSTER '{cluster}' (a UInt32) Engine = ReplicatedMergeTree ORDER BY a")
+
+ with And("I insert data in the replicated table"):
+ clickhouse.query(chi, f"INSERT INTO {table} select {token}", timeout=300)
+
+ with Then("Check replicated table has data on both nodes"):
+ for replica in replicas:
+ out = clickhouse.query(chi, f"SELECT a from {table} where a={token}", host=f"chi-{chi}-{cluster}-0-{replica}-0")
+ assert out == f"{token}", error()
+
+
@TestModule
@Name("e2e.test_operator")
@Requirements(RQ_SRS_026_ClickHouseOperator_CustomResource_APIVersion("1.0"),
diff --git a/tests/e2e/util.py b/tests/e2e/util.py
index 7dcb1b299..97aa98691 100644
--- a/tests/e2e/util.py
+++ b/tests/e2e/util.py
@@ -83,7 +83,7 @@ def require_keeper(keeper_manifest="", keeper_type=settings.keeper_type, force_i
if keeper_type == "clickhouse-keeper":
keeper_manifest = "clickhouse-keeper-1-node-256M-for-test-only.yaml" if keeper_manifest == "" else keeper_manifest
keeper_manifest = f"../../deploy/clickhouse-keeper/clickhouse-keeper-manually/{keeper_manifest}"
- if keeper_type == "CHK" or keeper_type == "clickhouse-keeper_with_chk":
+ if keeper_type == "chk":
keeper_manifest = (
"clickhouse-keeper-1-node-for-test-only.yaml" if keeper_manifest == "" else keeper_manifest
)
@@ -102,16 +102,14 @@ def require_keeper(keeper_manifest="", keeper_type=settings.keeper_type, force_i
expected_docs = {
"zookeeper": 5 if "scaleout-pvc" in keeper_manifest else 4,
"clickhouse-keeper": 7,
- "clickhouse-keeper_with_chk": 2,
- "CHK": 2,
+ "chk": 2,
"zookeeper-operator": 3 if "probes" in keeper_manifest else 1,
}
expected_pod_prefix = {
"zookeeper": "zookeeper",
"zookeeper-operator": "zookeeper",
"clickhouse-keeper": "clickhouse-keeper",
- "clickhouse-keeper_with_chk": "chk-clickhouse-keeper-test-only-0",
- "CHK": "chk-clickhouse-keeper-test-only-0"
+ "chk": "chk-clickhouse-keeper-test-0"
}
assert (
docs_count == expected_docs[keeper_type]
@@ -119,7 +117,7 @@ def require_keeper(keeper_manifest="", keeper_type=settings.keeper_type, force_i
with Given(f"Install {keeper_type} {keeper_nodes} nodes"):
kubectl.apply(get_full_path(keeper_manifest, lookup_in_host=False))
for pod_num in range(keeper_nodes):
- if keeper_type == "CHK" or keeper_type == "clickhouse-keeper_with_chk" :
+ if keeper_type == "chk":
pod_name = f"{expected_pod_prefix[keeper_type]}-{pod_num}-0"
else:
pod_name = f"{expected_pod_prefix[keeper_type]}-{pod_num}"
@@ -129,6 +127,10 @@ def require_keeper(keeper_manifest="", keeper_type=settings.keeper_type, force_i
kubectl.wait_pod_status(pod_name, "Running")
kubectl.wait_container_status(pod_name, "true")
+ if keeper_type == "chk":
+ kubectl.wait_chk_status("clickhouse-keeper", 'Completed')
+
+
def wait_clickhouse_cluster_ready(chi):
with Given("All expected pods present in system.clusters"):
@@ -165,9 +167,9 @@ def install_clickhouse_and_keeper(
if keeper_type == "zookeeper":
keeper_manifest = "zookeeper-1-node-1GB-for-tests-only.yaml"
if keeper_type == "clickhouse-keeper":
- keeper_manifest = "clickhouse-keeper-1-node-256M-for-test-only.yaml"
- if keeper_type == "clickhouse-keeper_with_chk" or keeper_type == "CHK":
- keeper_manifest = "clickhouse-keeper-1-node-for-test-only.yaml"
+ keeper_manifest = "clickhouse-keeper-1-node-256M-for-test.yaml"
+ if keeper_type == "chk":
+ keeper_manifest = "clickhouse-keeper-1-node-for-test.yaml"
if keeper_type == "zookeeper-operator":
keeper_manifest = "zookeeper-operator-1-node.yaml"
@@ -296,7 +298,7 @@ def install_operator_if_not_exist(
def install_operator_version(version, shell=None):
- if version == current().context.operator_version:
+ if version == current().context.operator_version or version == "dev":
manifest = get_full_path(current().context.clickhouse_operator_install_manifest)
manifest = f"cat {manifest}"
else:
diff --git a/tests/image/build_docker.sh b/tests/image/build_docker.sh
index ea9372437..43aa020d9 100755
--- a/tests/image/build_docker.sh
+++ b/tests/image/build_docker.sh
@@ -12,7 +12,7 @@ CLICKHOUSE_IMAGE=${CLICKHOUSE_IMAGE:="clickhouse/clickhouse-server:23.8"}
CLICKHOUSE_IMAGE_OLD=${CLICKHOUSE_IMAGE_OLD:="clickhouse/clickhouse-server:23.3"}
CLICKHOUSE_IMAGE_LATEST=${CLICKHOUSE_IMAGE_LATEST:="clickhouse/clickhouse-server:latest"}
CLICKHOUSE_OPERATOR_TESTS_IMAGE=${CLICKHOUSE_OPERATOR_TESTS_IMAGE:="registry.gitlab.com/altinity-public/container-images/clickhouse-operator-test-runner:latest"}
-ZOOKEEPER_IMAGE=${ZOOKEEPER_IMAGE:="zookeeper:3.8.3"}
+ZOOKEEPER_IMAGE=${ZOOKEEPER_IMAGE:="zookeeper:3.8.4"}
K8S_VERSION=${K8S_VERSION:=1.28.5}
MINIKUBE_PRELOADED_TARBALL="preloaded-images-k8s-v18-v${K8S_VERSION}-docker-overlay2-amd64.tar.lz4"