@@ -197,6 +197,58 @@ jobs:
197197 - name : Check Helm release status
198198 run : helm status my-release --namespace clickhouse-operator-system
199199
200+ compat-e2e-test :
201+ runs-on : ubuntu-latest
202+ strategy :
203+ fail-fast : false
204+ matrix :
205+ include :
206+ - name : " Minimal supported kubernetes with LTS ClickHouse release"
207+ kind_version : v1.28.15
208+ clickhouse_version : " 25.8"
209+ - name : " Latest kubernetes version with LTS ClickHouse release"
210+ kind_version : v1.35.1
211+ clickhouse_version : " 25.8"
212+ - name : " Supported ClickHouse versions"
213+ kind_version : v1.30.13
214+ clickhouse_version : " 26.1,25.12,25.11,25.8,25.3"
215+ steps :
216+ - name : Checkout code
217+ uses : actions/checkout@v6
218+
219+ - name : Set up Go
220+ uses : actions/setup-go@v5
221+ with :
222+ go-version-file : ' go.mod'
223+
224+ - name : Go Mod
225+ run : go mod download
226+
227+ - name : Build image
228+ run : make docker-build IMG="clickhouse.com/clickhouse-operator:v0.0.1" BUILD_TIME=e2e
229+
230+ - name : Create k8s Kind Cluster
231+ uses : helm/kind-action@v1
232+ with :
233+ cluster_name : kind
234+ version : ${{ env.kind-version }}
235+ config : ci/kind-cluster.config
236+ node_image : " kindest/node:${{ matrix.kind_version }}"
237+
238+ - name : Run compatibility e2e tests
239+ run : make test-compat-e2e
240+ env :
241+ CLICKHOUSE_VERSION : ${{ matrix.clickhouse_version }}
242+
243+ - name : Test Report
244+ uses : dorny/test-reporter@v2
245+ if : ${{ !cancelled() }}
246+ with :
247+ name : compat-e2e (k8s ${{ matrix.k8s_version }}${{ matrix.clickhouse_version && format(', ch {0}', matrix.clickhouse_version) || '' }})
248+ badge-title : compat-e2e (k8s ${{ matrix.k8s_version }})
249+ path : " **/report/*.xml"
250+ reporter : java-junit
251+
200252 e2e-test :
201253 needs : [ lint, bundle, build_and_test, helm-validate, helm-test ]
202254 strategy :
@@ -242,7 +294,7 @@ jobs:
242294 ci-success-check :
243295 name : All CI checks passed
244296 runs-on : ubuntu-latest
245- needs : [ lint, bundle, build_and_test, helm-validate, helm-test, e2e-test ]
297+ needs : [ lint, bundle, build_and_test, helm-validate, helm-test, compat-e2e-test, e2e-test ]
246298 if : always()
247299 steps :
248300 - name : Determine CI status
0 commit comments