@@ -77,10 +77,10 @@ jobs:
7777 strategy :
7878 matrix :
7979 http-client : [ "okhttp", "jdk", "jetty", "vertx" ]
80- version : ["v1_20"]
81- mode : ["native"]
82- namespace : ["default"]
83- java-version : ["11", "17", "21"]
80+ flink_version : [ { tag: "v1_20", image: "flink:1.20" } ]
81+ mode : [ "native" ]
82+ namespace : [ "default" ]
83+ java-version : [ "11", "17", "21" ]
8484 test :
8585 - test_application_operations.sh
8686 steps :
@@ -116,8 +116,8 @@ jobs:
116116 kubectl get pods -n ${{ matrix.namespace }}
117117 - name : Run Flink e2e tests
118118 run : |
119- sed -i "s/image: flink:.*/image: ${{ matrix.image }}/" e2e-tests/data/*.yaml
120- sed -i "s/flinkVersion: .*/flinkVersion: ${{ matrix.version }}/" e2e-tests/data/*.yaml
119+ sed -i "s/image: flink:.*/image: ${{ matrix.flink_version. image }}/" e2e-tests/data/*.yaml
120+ sed -i "s/flinkVersion: .*/flinkVersion: ${{ matrix.flink_version.tag }}/" e2e-tests/data/*.yaml
121121 sed -i "s/mode: .*/mode: ${{ matrix.mode }}/" e2e-tests/data/*.yaml
122122 git diff HEAD
123123 echo "Running e2e-tests/$test"
@@ -136,19 +136,27 @@ jobs:
136136 needs : e2e_smoke_test
137137 strategy :
138138 matrix :
139- version : ["v1_20"]
140- mode : ["native", "standalone"]
141- namespace : ["flink"]
142- java-version : ["11"]
143- image : ["flink:1.20"]
139+ # Define a single matrix entry for the tag image mapping https://github.com/orgs/community/discussions/24981#discussioncomment-3246068
140+ flink_version : [
141+ { tag: "v1_20", image: "flink:1.20" },
142+ { tag: "v1_18", image: "flink:1.18" },
143+ { tag: "v1_19", image: "flink:1.19" },
144+ { tag: "v1_17", image: "flink:1.17" },
145+ { tag: "v1_16", image: "flink:1.16" } ]
146+ mode : [ "native", "standalone" ]
147+ namespace : [ "flink" ]
148+ java-version : [ "11" ]
144149 test :
145150 - test_application_operations.sh
146151 - test_multi_sessionjob.sh
147152 - test_autoscaler.sh
148153 - test_dynamic_config.sh
149154 excludes :
150- - mode : standalone
151- test : test_autoscaler.sh
155+ - { mode: standalone, test: test_autoscaler.sh }
156+ - { mode: standalone, test: test_dynamic_config.sh }
157+ - { flink_version: {tag: "v1_17", image: "flink:1.17"}, test: test_dynamic_config.sh }
158+ - { flink_version: {tag: "v1_16", image: "flink:1.16"}, test: test_autoscaler.sh }
159+ - { flink_version: {tag: "v1_16", image: "flink:1.16"}, test: test_dynamic_config.sh }
152160 steps :
153161 - uses : actions/checkout@v4
154162 - name : Set up JDK ${{ matrix.java-version }}
@@ -182,8 +190,8 @@ jobs:
182190 kubectl get pods -n ${{ matrix.namespace }}
183191 - name : Run Flink e2e tests
184192 run : |
185- sed -i "s/image: flink:.*/image: ${{ matrix.image }}/" e2e-tests/data/*.yaml
186- sed -i "s/flinkVersion: .*/flinkVersion: ${{ matrix.version }}/" e2e-tests/data/*.yaml
193+ sed -i "s/image: flink:.*/image: ${{ matrix.flink_version. image }}/" e2e-tests/data/*.yaml
194+ sed -i "s/flinkVersion: .*/flinkVersion: ${{ matrix.flink_version.tag }}/" e2e-tests/data/*.yaml
187195 sed -i "s/mode: .*/mode: ${{ matrix.mode }}/" e2e-tests/data/*.yaml
188196 git diff HEAD
189197 echo "Running e2e-tests/$test"
@@ -202,55 +210,40 @@ jobs:
202210 runs-on : ubuntu-latest
203211 strategy :
204212 matrix :
205- version : ["v1_20","v1_19","v1_18","v1_17","v1_16"]
206- namespace : ["default"]
207- mode : ["native", "standalone"]
213+ # Define a single matrix entry for the tag image mapping https://github.com/orgs/community/discussions/24981#discussioncomment-3246068
214+ flink_version : [
215+ { tag: "v1_20", image: "flink:1.20" },
216+ { tag: "v1_18", image: "flink:1.18" },
217+ { tag: "v1_19", image: "flink:1.19" },
218+ { tag: "v1_17", image: "flink:1.17" },
219+ { tag: "v1_16", image: "flink:1.16" } ]
220+ namespace : [ "default" ]
221+ mode : [ "native", "standalone" ]
208222 java-version : [ 11 ]
209223 test :
210224 - test_application_kubernetes_ha.sh
211225 - test_sessionjob_kubernetes_ha.sh
212226 - test_sessionjob_operations.sh
213227 - test_flink_operator_ha.sh
214228 - test_snapshot.sh
215- include :
216- - version : v1_20
217- image : flink:1.20
218- - version : v1_19
219- image : flink:1.19
220- - version : v1_18
221- image : flink:1.18
222- - version : v1_17
223- image : flink:1.17
224- - version : v1_16
225- image : flink:1.16
226229 exclude :
227- - mode : standalone
228- test : test_autoscaler.sh
229- - mode : standalone
230- test : test_dynamic_config.sh
231230 - mode : standalone
232231 test : test_snapshot.sh
233- - version : v1_16
234- test : test_autoscaler.sh
235- - version : v1_16
236- test : test_dynamic_config.sh
237- - version : v1_16
232+ - flink_version : { tag: "v1_16", image: "flink:1.16" }
238233 test : test_flink_operator_ha.sh
239- - version : v1_16
234+ - flink_version : { tag: " v1_16", image: "flink:1.16" }
240235 test : test_snapshot.sh
241- - version : v1_17
242- test : test_dynamic_config.sh
243- - version : v1_17
236+ - flink_version : { tag: "v1_17", image: "flink:1.17" }
244237 test : test_flink_operator_ha.sh
245- - version : v1_17
238+ - flink_version : { tag: " v1_17", image: "flink:1.17" }
246239 test : test_snapshot.sh
247- - version : v1_18
240+ - flink_version : { tag: " v1_18", image: "flink:1.18" }
248241 test : test_dynamic_config.sh
249- - version : v1_18
242+ - flink_version : { tag: " v1_18", image: "flink:1.18" }
250243 test : test_flink_operator_ha.sh
251- - version : v1_18
244+ - flink_version : { tag: " v1_18", image: "flink:1.18" }
252245 test : test_snapshot.sh
253- - version : v1_19
246+ - flink_version : { tag: " v1_19", image: "flink:1.19" }
254247 test : test_snapshot.sh
255248 steps :
256249 - uses : actions/checkout@v4
@@ -289,8 +282,8 @@ jobs:
289282 kubectl get pods -n ${{ matrix.namespace }}
290283 - name : Run Flink e2e tests
291284 run : |
292- sed -i "s/image: flink:.*/image: ${{ matrix.image }}/" e2e-tests/data/*.yaml
293- sed -i "s/flinkVersion: .*/flinkVersion: ${{ matrix.version }}/" e2e-tests/data/*.yaml
285+ sed -i "s/image: flink:.*/image: ${{ matrix.flink_version. image }}/" e2e-tests/data/*.yaml
286+ sed -i "s/flinkVersion: .*/flinkVersion: ${{ matrix.flink_version.tag }}/" e2e-tests/data/*.yaml
294287 sed -i "s/mode: .*/mode: ${{ matrix.mode }}/" e2e-tests/data/*.yaml
295288 git diff HEAD
296289 echo "Running e2e-tests/$test"
0 commit comments