Skip to content

Commit 055a6d6

Browse files
authored
Merge pull request #1852 from Altinity/0.25.5
0.25.5
2 parents 0cf33cf + 9ab22d8 commit 055a6d6

File tree

108 files changed

+9852
-697
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+9852
-697
lines changed

.github/workflows/run_tests.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,19 @@ jobs:
6868
minikube image load operator.tar
6969
minikube image load metrics-exporter.tar
7070
71+
- name: Deploy prometheus
72+
run: |
73+
cp ./deploy/prometheus/prometheus-sensitive-data.example.sh ./deploy/prometheus/prometheus-sensitive-data.sh
74+
NO_WAIT=1 bash ./deploy/prometheus/create-prometheus.sh
75+
76+
- name: Deploy minio
77+
run: |
78+
NO_WAIT=1 bash ./deploy/minio/create-minio.sh
79+
80+
- name: Deploy zookeeper-operator
81+
run: |
82+
bash ./deploy/zookeeper/zookeeper-with-zookeeper-operator/install-zookeeper-operator.sh
83+
7184
- name: Run Tests
7285
id: run-tests
7386
continue-on-error: true
@@ -95,7 +108,7 @@ jobs:
95108
test_mode="--test-to-end"
96109
fi
97110
98-
~/venv/qa/bin/python3 ./tests/regression.py --only=/regression/e2e.test_operator/${ONLY} $test_mode --trim-results on -o short --native --log ./tests/raw.log
111+
~/venv/qa/bin/python3 ./tests/regression.py --only=/regression/e2e.test_operator/${ONLY} $test_mode --trim-results on -o short --no-colors --native --log ./tests/raw.log
99112
test_result=$?
100113
~/venv/qa/bin/tfs --no-colors transform compact ./tests/raw.log ./tests/compact.log
101114
~/venv/qa/bin/tfs --no-colors transform nice ./tests/raw.log ./tests/nice.log.txt
@@ -123,7 +136,7 @@ jobs:
123136
retention-days: 90
124137

125138
- name: Test Failed
126-
if: ${{ failure() }}
139+
if: ${{ steps.run-tests.outputs.test_result != '0' }}
127140
uses: actions/github-script@v3
128141
with:
129142
script: |

config/config-dev.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,13 @@ reconcile:
353353

354354
# Reconcile Host scenario
355355
host:
356-
# Whether the operator during reconcile procedure should wait for a ClickHouse host:
357-
# - to be excluded from a ClickHouse cluster
358-
# - to complete all running queries
359-
# - to be included into a ClickHouse cluster
360-
# respectfully before moving forward with host reconcile
356+
# The operator during reconcile procedure should wait for a ClickHouse host to achieve the following conditions:
361357
wait:
358+
# Whether the operator during reconcile procedure should wait for a ClickHouse host:
359+
# - to be excluded from a ClickHouse cluster
360+
# - to complete all running queries
361+
# - to be included into a ClickHouse cluster
362+
# respectfully before moving forward with host reconcile
362363
exclude: true
363364
queries: true
364365
include: false
@@ -382,6 +383,15 @@ reconcile:
382383
# In case probe is unspecified wait is assumed to be completed successfully.
383384
# Default option value is to wait.
384385
readiness: yes
386+
# The operator during reconcile procedure should drop the following entities:
387+
drop:
388+
replicas:
389+
# Whether the operator during reconcile procedure should drop replicas when replica is deleted
390+
onDelete: yes
391+
# Whether the operator during reconcile procedure should drop replicas when replica volume is lost
392+
onLostVolume: yes
393+
# Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated
394+
active: no
385395

386396
################################################
387397
##

config/config.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,13 @@ reconcile:
351351

352352
# Reconcile Host scenario
353353
host:
354-
# Whether the operator during reconcile procedure should wait for a ClickHouse host:
355-
# - to be excluded from a ClickHouse cluster
356-
# - to complete all running queries
357-
# - to be included into a ClickHouse cluster
358-
# respectfully before moving forward with host reconcile
354+
# The operator during reconcile procedure should wait for a ClickHouse host to achieve the following conditions:
359355
wait:
356+
# Whether the operator during reconcile procedure should wait for a ClickHouse host:
357+
# - to be excluded from a ClickHouse cluster
358+
# - to complete all running queries
359+
# - to be included into a ClickHouse cluster
360+
# respectfully before moving forward with host reconcile
360361
exclude: true
361362
queries: true
362363
include: false
@@ -380,6 +381,15 @@ reconcile:
380381
# In case probe is unspecified wait is assumed to be completed successfully.
381382
# Default option value is to wait.
382383
readiness: yes
384+
# The operator during reconcile procedure should drop the following entities:
385+
drop:
386+
replicas:
387+
# Whether the operator during reconcile procedure should drop replicas when replica is deleted
388+
onDelete: yes
389+
# Whether the operator during reconcile procedure should drop replicas when replica volume is lost
390+
onLostVolume: yes
391+
# Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated
392+
active: no
383393

384394
################################################
385395
##

deploy/builder/templates-config/config.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,13 @@ reconcile:
345345

346346
# Reconcile Host scenario
347347
host:
348-
# Whether the operator during reconcile procedure should wait for a ClickHouse host:
349-
# - to be excluded from a ClickHouse cluster
350-
# - to complete all running queries
351-
# - to be included into a ClickHouse cluster
352-
# respectfully before moving forward with host reconcile
348+
# The operator during reconcile procedure should wait for a ClickHouse host to achieve the following conditions:
353349
wait:
350+
# Whether the operator during reconcile procedure should wait for a ClickHouse host:
351+
# - to be excluded from a ClickHouse cluster
352+
# - to complete all running queries
353+
# - to be included into a ClickHouse cluster
354+
# respectfully before moving forward with host reconcile
354355
exclude: true
355356
queries: true
356357
include: false
@@ -374,6 +375,15 @@ reconcile:
374375
# In case probe is unspecified wait is assumed to be completed successfully.
375376
# Default option value is to wait.
376377
readiness: yes
378+
# The operator during reconcile procedure should drop the following entities:
379+
drop:
380+
replicas:
381+
# Whether the operator during reconcile procedure should drop replicas when replica is deleted
382+
onDelete: yes
383+
# Whether the operator during reconcile procedure should drop replicas when replica volume is lost
384+
onLostVolume: yes
385+
# Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated
386+
active: no
377387

378388
################################################
379389
##

deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-01-chi-chit.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ spec:
242242
type: object
243243
description: "Normalized resource completed"
244244
x-kubernetes-preserve-unknown-fields: true
245+
actionPlan:
246+
type: object
247+
description: "Action Plan"
248+
x-kubernetes-preserve-unknown-fields: true
245249
hostsWithTablesCreated:
246250
type: array
247251
description: "List of hosts with tables created by the operator"
@@ -539,6 +543,26 @@ spec:
539543
Whether the operator during host launch procedure should wait for ready probe to succeed.
540544
In case probe is unspecified wait is assumed to be completed successfully.
541545
Default option value is to wait.
546+
drop:
547+
type: object
548+
properties:
549+
replicas:
550+
type: object
551+
description: |
552+
Whether the operator during reconcile procedure should drop replicas when replica is deleted or recreated
553+
properties:
554+
onDelete:
555+
<<: *TypeStringBool
556+
description: |
557+
Whether the operator during reconcile procedure should drop replicas when replica is deleted
558+
onLostVolume:
559+
<<: *TypeStringBool
560+
description: |
561+
Whether the operator during reconcile procedure should drop replicas when replica volume is lost
562+
active:
563+
<<: *TypeStringBool
564+
description: |
565+
Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated
542566
reconcile:
543567
<<: *TypeReconcile
544568
description: "Optional, allows tuning reconciling cycle for ClickhouseInstallation from clickhouse-operator side"

deploy/builder/templates-install-bundle/clickhouse-operator-install-yaml-template-01-section-crd-02-chopconf.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,26 @@ spec:
393393
Whether the operator during host launch procedure should wait for readiness probe to succeed.
394394
In case probe is unspecified wait is assumed to be completed successfully.
395395
Default option value is to wait.
396+
drop:
397+
type: object
398+
properties:
399+
replicas:
400+
type: object
401+
description: |
402+
Whether the operator during reconcile procedure should drop replicas when replica is deleted or recreated
403+
properties:
404+
onDelete:
405+
<<: *TypeStringBool
406+
description: |
407+
Whether the operator during reconcile procedure should drop replicas when replica is deleted
408+
onLostVolume:
409+
<<: *TypeStringBool
410+
description: |
411+
Whether the operator during reconcile procedure should drop replicas when replica volume is lost
412+
active:
413+
<<: *TypeStringBool
414+
description: |
415+
Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated
396416
annotation:
397417
type: object
398418
description: "defines which metadata.annotations items will include or exclude during render StatefulSet, Pod, PVC resources"

deploy/helm/clickhouse-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ description: |-
1313
kubectl apply -f https://github.com/Altinity/clickhouse-operator/raw/master/deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhousekeeperinstallations.clickhouse-keeper.altinity.com.yaml
1414
```
1515
type: application
16-
version: 0.25.4
17-
appVersion: 0.25.4
16+
version: 0.25.5
17+
appVersion: 0.25.5
1818
home: https://github.com/Altinity/clickhouse-operator
1919
icon: https://logosandtypes.com/wp-content/uploads/2020/12/altinity.svg
2020
maintainers:

deploy/helm/clickhouse-operator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# altinity-clickhouse-operator
22

3-
![Version: 0.25.4](https://img.shields.io/badge/Version-0.25.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.25.4](https://img.shields.io/badge/AppVersion-0.25.4-informational?style=flat-square)
3+
![Version: 0.25.5](https://img.shields.io/badge/Version-0.25.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.25.5](https://img.shields.io/badge/AppVersion-0.25.5-informational?style=flat-square)
44

55
Helm chart to deploy [altinity-clickhouse-operator](https://github.com/Altinity/clickhouse-operator).
66

deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallations.clickhouse.altinity.com.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
# SINGULAR=clickhouseinstallation
55
# PLURAL=clickhouseinstallations
66
# SHORT=chi
7-
# OPERATOR_VERSION=0.25.4
7+
# OPERATOR_VERSION=0.25.5
88
#
99
apiVersion: apiextensions.k8s.io/v1
1010
kind: CustomResourceDefinition
1111
metadata:
1212
name: clickhouseinstallations.clickhouse.altinity.com
1313
labels:
14-
clickhouse.altinity.com/chop: 0.25.4
14+
clickhouse.altinity.com/chop: 0.25.5
1515
spec:
1616
group: clickhouse.altinity.com
1717
scope: Namespaced
@@ -242,6 +242,10 @@ spec:
242242
type: object
243243
description: "Normalized resource completed"
244244
x-kubernetes-preserve-unknown-fields: true
245+
actionPlan:
246+
type: object
247+
description: "Action Plan"
248+
x-kubernetes-preserve-unknown-fields: true
245249
hostsWithTablesCreated:
246250
type: array
247251
description: "List of hosts with tables created by the operator"
@@ -539,6 +543,26 @@ spec:
539543
Whether the operator during host launch procedure should wait for ready probe to succeed.
540544
In case probe is unspecified wait is assumed to be completed successfully.
541545
Default option value is to wait.
546+
drop:
547+
type: object
548+
properties:
549+
replicas:
550+
type: object
551+
description: |
552+
Whether the operator during reconcile procedure should drop replicas when replica is deleted or recreated
553+
properties:
554+
onDelete:
555+
!!merge <<: *TypeStringBool
556+
description: |
557+
Whether the operator during reconcile procedure should drop replicas when replica is deleted
558+
onLostVolume:
559+
!!merge <<: *TypeStringBool
560+
description: |
561+
Whether the operator during reconcile procedure should drop replicas when replica volume is lost
562+
active:
563+
!!merge <<: *TypeStringBool
564+
description: |
565+
Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated
542566
reconcile:
543567
!!merge <<: *TypeReconcile
544568
description: "Optional, allows tuning reconciling cycle for ClickhouseInstallation from clickhouse-operator side"

deploy/helm/clickhouse-operator/crds/CustomResourceDefinition-clickhouseinstallationtemplates.clickhouse.altinity.com.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
# SINGULAR=clickhouseinstallationtemplate
55
# PLURAL=clickhouseinstallationtemplates
66
# SHORT=chit
7-
# OPERATOR_VERSION=0.25.4
7+
# OPERATOR_VERSION=0.25.5
88
#
99
apiVersion: apiextensions.k8s.io/v1
1010
kind: CustomResourceDefinition
1111
metadata:
1212
name: clickhouseinstallationtemplates.clickhouse.altinity.com
1313
labels:
14-
clickhouse.altinity.com/chop: 0.25.4
14+
clickhouse.altinity.com/chop: 0.25.5
1515
spec:
1616
group: clickhouse.altinity.com
1717
scope: Namespaced
@@ -242,6 +242,10 @@ spec:
242242
type: object
243243
description: "Normalized resource completed"
244244
x-kubernetes-preserve-unknown-fields: true
245+
actionPlan:
246+
type: object
247+
description: "Action Plan"
248+
x-kubernetes-preserve-unknown-fields: true
245249
hostsWithTablesCreated:
246250
type: array
247251
description: "List of hosts with tables created by the operator"
@@ -539,6 +543,26 @@ spec:
539543
Whether the operator during host launch procedure should wait for ready probe to succeed.
540544
In case probe is unspecified wait is assumed to be completed successfully.
541545
Default option value is to wait.
546+
drop:
547+
type: object
548+
properties:
549+
replicas:
550+
type: object
551+
description: |
552+
Whether the operator during reconcile procedure should drop replicas when replica is deleted or recreated
553+
properties:
554+
onDelete:
555+
!!merge <<: *TypeStringBool
556+
description: |
557+
Whether the operator during reconcile procedure should drop replicas when replica is deleted
558+
onLostVolume:
559+
!!merge <<: *TypeStringBool
560+
description: |
561+
Whether the operator during reconcile procedure should drop replicas when replica volume is lost
562+
active:
563+
!!merge <<: *TypeStringBool
564+
description: |
565+
Whether the operator during reconcile procedure should drop active replicas when replica is deleted or recreated
542566
reconcile:
543567
!!merge <<: *TypeReconcile
544568
description: "Optional, allows tuning reconciling cycle for ClickhouseInstallation from clickhouse-operator side"

0 commit comments

Comments
 (0)