Skip to content

Commit c93e88a

Browse files
committed
complex refactoring for base clickhouse version 24.8 and fix in tests suites which not in test_operator.py
1 parent 9fcf2e8 commit c93e88a

File tree

142 files changed

+820
-750
lines changed

Some content is hidden

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

142 files changed

+820
-750
lines changed

.github/workflows/check_helm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
driver: docker
2323
container-runtime: containerd
24-
kubernetes-version: v1.31.0
24+
kubernetes-version: v1.31.2
2525
cpus: max
2626
memory: max
2727

.github/workflows/run_tests.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ on:
1616
type: string
1717
required: false
1818
jobs:
19-
run_tests:
20-
name: Run Tests
19+
run_operator_tests:
20+
name: Run Operator Tests
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
driver: docker
4949
container-runtime: containerd
50-
kubernetes-version: v1.31.0
50+
kubernetes-version: v1.31.2
5151
cpus: max
5252
memory: max
5353

@@ -66,6 +66,15 @@ jobs:
6666
minikube image load operator.tar
6767
minikube image load metrics-exporter.tar
6868
69+
- name: Deploy prometheus
70+
run: |
71+
cp ./deploy/prometheus/create-prometheus.sh
72+
NO_WAIT=1 ./deploy/prometheus/create-prometheus.sh
73+
74+
- name: Deploy minio
75+
run: |
76+
NO_WAIT=1 ./deploy/prometheus/create-minio.sh
77+
6978
- name: Run Tests
7079
id: run-tests
7180
continue-on-error: true
@@ -93,7 +102,7 @@ jobs:
93102
test_mode="--test-to-end"
94103
fi
95104
96-
~/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
105+
~/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
97106
test_result=$?
98107
~/venv/qa/bin/tfs --no-colors transform compact ./tests/raw.log ./tests/compact.log
99108
~/venv/qa/bin/tfs --no-colors transform nice ./tests/raw.log ./tests/nice.log.txt

Vagrantfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,13 @@ Vagrant.configure(2) do |config|
121121
# docker
122122
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
123123
add-apt-repository "deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) test"
124-
apt-get install --no-install-recommends -y docker-ce pigz
124+
apt-get install --no-install-recommends -y docker-ce docker-ce-cli containerd.io docker-compose-plugin pigz
125125
126-
# docker compose
127126
apt-get install -y --no-install-recommends python3-distutils
128127
curl -sL https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
129128
python3 /tmp/get-pip.py
130129
131-
pip3 install -U setuptools
132-
pip3 install -U docker-compose
130+
pip3 install -U -r ./tests/image/requirements.txt
133131
134132
# k9s CLI
135133
K9S_VERSION=$(curl -sL https://github.com/derailed/k9s/releases/latest -H "Accept: application/json" | jq -r .tag_name)
@@ -170,7 +168,8 @@ Vagrant.configure(2) do |config|
170168
# K8S_VERSION=${K8S_VERSION:-1.23.1}
171169
# K8S_VERSION=${K8S_VERSION:-1.24.8}
172170
# K8S_VERSION=${K8S_VERSION:-1.25.4}
173-
K8S_VERSION=${K8S_VERSION:-1.31.1}
171+
# K8S_VERSION=${K8S_VERSION:-1.31.1}
172+
K8S_VERSION=${K8S_VERSION:-1.31.2}
174173
export VALIDATE_YAML=true
175174
176175
killall kubectl || true

config/chi/templates.d/001-templates.json.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"containers" : [
3030
{
3131
"name": "clickhouse",
32-
"image": "clickhouse/clickhouse-server:23.8",
32+
"image": "clickhouse/clickhouse-server:24.8",
3333
"ports": [
3434
{
3535
"name": "http",

deploy/builder/templates-config/chi/templates.d/001-templates.json.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"containers" : [
3030
{
3131
"name": "clickhouse",
32-
"image": "clickhouse/clickhouse-server:23.8",
32+
"image": "clickhouse/clickhouse-server:24.8",
3333
"ports": [
3434
{
3535
"name": "http",

deploy/clickhouse-keeper/clickhouse-keeper-manually/clickhouse-keeper-1-node-256M-for-test-only.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ spec:
378378
containers:
379379
- name: clickhouse-keeper
380380
imagePullPolicy: Always
381-
image: "clickhouse/clickhouse-keeper:latest-alpine"
381+
image: "clickhouse/clickhouse-keeper:24.8"
382382
resources:
383383
requests:
384384
memory: "256M"

deploy/clickhouse-keeper/clickhouse-keeper-manually/clickhouse-keeper-3-nodes-256M-for-test-only.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ spec:
378378
containers:
379379
- name: clickhouse-keeper
380380
imagePullPolicy: Always
381-
image: "clickhouse/clickhouse-keeper:latest-alpine"
381+
image: "clickhouse/clickhouse-keeper:24.8"
382382
resources:
383383
requests:
384384
memory: "256M"

deploy/helm/clickhouse-operator/README.md

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

deploy/helm/clickhouse-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ configs:
608608
"containers" : [
609609
{
610610
"name": "clickhouse",
611-
"image": "clickhouse/clickhouse-server:23.8",
611+
"image": "clickhouse/clickhouse-server:24.8",
612612
"ports": [
613613
{
614614
"name": "http",

deploy/minio/install-minio-operator.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ echo "External value for \$MINIO_NAMESPACE=$MINIO_NAMESPACE"
44
echo "External value for \$MINIO_OPERATOR_VERSION=$MINIO_OPERATOR_VERSION"
55

66
MINIO_NAMESPACE="${MINIO_NAMESPACE:-minio}"
7-
MINIO_OPERATOR_VERSION="${MINIO_OPERATOR_VERSION:-v4.1.3}"
7+
MINIO_OPERATOR_VERSION="${MINIO_OPERATOR_VERSION:-v6.0.4}"
88

99
echo "Setup minio.io"
1010
echo "OPTIONS"
@@ -63,7 +63,9 @@ echo "Setup minio.io operator ${MINIO_OPERATOR_VERSION} into ${MINIO_NAMESPACE}
6363
## TODO: need to refactor after next minio-operator release
6464

6565
MINIO_KUSTOMIZE_DIR="${MINIO_OPERATOR_DIR}/resources"
66+
sed -i -e "s/replicas: 2/replicas: 1/" $MINIO_KUSTOMIZE_DIR/base/deployment.yaml
6667
sed -i -e "s/name: minio-operator/name: ${MINIO_NAMESPACE}/" $MINIO_KUSTOMIZE_DIR/base/namespace.yaml
68+
sed -i -e "s/: restricted/: baseline/" $MINIO_KUSTOMIZE_DIR/base/namespace.yaml
6769
sed -i -e "s/namespace: default/namespace: ${MINIO_NAMESPACE}/" $MINIO_KUSTOMIZE_DIR/base/*.yaml
6870
sed -i -e "s/namespace: minio-operator/namespace: ${MINIO_NAMESPACE}/" $MINIO_KUSTOMIZE_DIR/base/*.yaml
6971
sed -i -e "s/namespace: minio-operator/namespace: ${MINIO_NAMESPACE}/" $MINIO_KUSTOMIZE_DIR/kustomization.yaml

0 commit comments

Comments
 (0)