Skip to content

Commit 5986324

Browse files
committed
Merge remote-tracking branch 'altinity/0.24.4'
2 parents 72f2d88 + 4299a2f commit 5986324

7 files changed

+5503
-17
lines changed

deploy/operatorhub/0.24.4/clickhouse-operator.v0.24.4.clusterserviceversion.yaml

Lines changed: 1636 additions & 0 deletions
Large diffs are not rendered by default.

deploy/operatorhub/0.24.4/clickhouseinstallations.clickhouse.altinity.com.crd.yaml

Lines changed: 1276 additions & 0 deletions
Large diffs are not rendered by default.

deploy/operatorhub/0.24.4/clickhouseinstallationtemplates.clickhouse.altinity.com.crd.yaml

Lines changed: 1276 additions & 0 deletions
Large diffs are not rendered by default.

deploy/operatorhub/0.24.4/clickhousekeeperinstallations.clickhouse-keeper.altinity.com.crd.yaml

Lines changed: 848 additions & 0 deletions
Large diffs are not rendered by default.

deploy/operatorhub/0.24.4/clickhouseoperatorconfigurations.clickhouse.altinity.com.crd.yaml

Lines changed: 449 additions & 0 deletions
Large diffs are not rendered by default.

tests/e2e/manifests/chi/test-009-operator-upgrade-2.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ spec:
7373
volumeMounts:
7474
- name: aws-ebs-volume-claim
7575
mountPath: /var/lib/clickhouse
76-
lifecycle:
77-
preStop:
78-
exec:
79-
command: ["/bin/sh", "-c", "pkill -SIGTERM clickhouse-server"]
76+
command:
77+
- /bin/bash
78+
- -c
79+
- /usr/bin/clickhouse-server --config-file=/etc/clickhouse-server/config.xml
8080
terminationGracePeriodSeconds: 360

tests/e2e/test_operator.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def test_operator_upgrade(self, manifest, service, version_from, version_to=None
512512
with When("I create new shells"):
513513
shell_1 = get_shell()
514514
shell_2 = get_shell()
515-
shell_3 = get_shell()
515+
# shell_3 = get_shell()
516516

517517
Check("run query until receive stop event", test=run_select_query, parallel=True)(
518518
host=service,
@@ -574,7 +574,7 @@ def test_operator_upgrade(self, manifest, service, version_from, version_to=None
574574
@Name("test_009_1. Test operator upgrade")
575575
@Requirements(RQ_SRS_026_ClickHouseOperator_Managing_UpgradingOperator("1.0"))
576576
@Tags("NO_PARALLEL")
577-
def test_009_1(self, version_from="0.23.7", version_to=None):
577+
def test_009_1(self, version_from="0.24.3", version_to=None):
578578
if version_to is None:
579579
version_to = self.context.operator_version
580580

@@ -590,7 +590,7 @@ def test_009_1(self, version_from="0.23.7", version_to=None):
590590
@TestScenario
591591
@Name("test_009_2. Test operator upgrade")
592592
@Tags("NO_PARALLEL")
593-
def test_009_2(self, version_from="0.23.7", version_to=None):
593+
def test_009_2(self, version_from="0.24.3", version_to=None):
594594
if version_to is None:
595595
version_to = self.context.operator_version
596596

@@ -943,12 +943,13 @@ def test_011_3(self):
943943
sasl_username_env = ""
944944
sasl_password_env = ""
945945
for e in envs:
946-
if e["valueFrom"]["secretKeyRef"]["key"] == "KAFKA_SASL_USERNAME":
947-
sasl_username_env = e["name"]
948-
if e["valueFrom"]["secretKeyRef"]["key"] == "KAFKA_SASL_PASSWORD":
949-
sasl_password_env = e["name"]
950-
if e["valueFrom"]["secretKeyRef"]["key"] == "pwduser5":
951-
user5_password_env = e["name"]
946+
if "valueFrom" in e:
947+
if e["valueFrom"]["secretKeyRef"]["key"] == "KAFKA_SASL_USERNAME":
948+
sasl_username_env = e["name"]
949+
if e["valueFrom"]["secretKeyRef"]["key"] == "KAFKA_SASL_PASSWORD":
950+
sasl_password_env = e["name"]
951+
if e["valueFrom"]["secretKeyRef"]["key"] == "pwduser5":
952+
user5_password_env = e["name"]
952953

953954
with By("Secrets are properly propagated to env variables"):
954955
print(f"Found env variables: {sasl_username_env} {sasl_password_env} {user5_password_env}")
@@ -1897,7 +1898,7 @@ def test_016(self):
18971898
"1",
18981899
)
18991900
# Wait for changes to propagate
1900-
time.sleep(90)
1901+
time.sleep(60)
19011902

19021903
with Then("test_norestart user should be available"):
19031904
version = clickhouse.query(chi, sql="select version()", user="test_norestart")
@@ -4073,7 +4074,7 @@ def test_039_1(self):
40734074

40744075
@TestScenario
40754076
@Requirements(RQ_SRS_026_ClickHouseOperator_InterClusterCommunicationWithSecret("1.0"))
4076-
@Name("test_039_2. Inter-cluster communications with plan text secret")
4077+
@Name("test_039_2. Inter-cluster communications with plane text secret")
40774078
def test_039_2(self):
40784079
"""Check clickhouse-operator support inter-cluster communications with plan text secret."""
40794080
create_shell_namespace_clickhouse_template()
@@ -5129,9 +5130,9 @@ def test_053(self):
51295130
current().context.operator_version = version_from
51305131
create_shell_namespace_clickhouse_template()
51315132

5132-
manifest="manifests/chi/test-001.yaml"
5133+
manifest="manifests/chi/test-005-acm.yaml"
51335134
chi = yaml_manifest.get_name(util.get_full_path(manifest))
5134-
sts = f"chi-{chi}-single-0-0"
5135+
sts = f"chi-{chi}-t1-0-0"
51355136
pod = f"{sts}-0"
51365137

51375138
kubectl.create_and_check(

0 commit comments

Comments
 (0)