@@ -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+ version : [ "v1_20" ]
81+ mode : [ "native" ]
82+ namespace : [ "default" ]
83+ java-version : [ "11", "17", "21" ]
8484 test :
8585 - test_application_operations.sh
8686 steps :
@@ -136,11 +136,17 @@ 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" ]
149+ image : [ "flink:1.20" ]
144150 test :
145151 - test_application_operations.sh
146152 - test_multi_sessionjob.sh
@@ -149,6 +155,14 @@ jobs:
149155 excludes :
150156 - mode : standalone
151157 test : test_autoscaler.sh
158+ - mode : standalone
159+ test : test_dynamic_config.sh
160+ - flink_version : { tag: "v1_17", image: "flink:1.17" }
161+ test : test_dynamic_config.sh
162+ - flink_version : { tag: "v1_16", image: "flink:1.16" }
163+ test : test_autoscaler.sh
164+ - flink_version : { tag: "v1_16", image: "flink:1.16" }
165+ test : test_dynamic_config.sh
152166 steps :
153167 - uses : actions/checkout@v4
154168 - name : Set up JDK ${{ matrix.java-version }}
@@ -182,8 +196,8 @@ jobs:
182196 kubectl get pods -n ${{ matrix.namespace }}
183197 - name : Run Flink e2e tests
184198 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
199+ sed -i "s/image: flink:.*/image: ${{ matrix.flink_version. image }}/" e2e-tests/data/*.yaml
200+ sed -i "s/flinkVersion: .*/flinkVersion: ${{ matrix.flink_version.tag }}/" e2e-tests/data/*.yaml
187201 sed -i "s/mode: .*/mode: ${{ matrix.mode }}/" e2e-tests/data/*.yaml
188202 git diff HEAD
189203 echo "Running e2e-tests/$test"
@@ -202,55 +216,40 @@ jobs:
202216 runs-on : ubuntu-latest
203217 strategy :
204218 matrix :
205- version : ["v1_20","v1_19","v1_18","v1_17","v1_16"]
206- namespace : ["default"]
207- mode : ["native", "standalone"]
219+ # Define a single matrix entry for the tag image mapping https://github.com/orgs/community/discussions/24981#discussioncomment-3246068
220+ flink_version : [
221+ { tag: "v1_20", image: "flink:1.20" },
222+ { tag: "v1_18", image: "flink:1.18" },
223+ { tag: "v1_19", image: "flink:1.19" },
224+ { tag: "v1_17", image: "flink:1.17" },
225+ { tag: "v1_16", image: "flink:1.16" } ]
226+ namespace : [ "default" ]
227+ mode : [ "native", "standalone" ]
208228 java-version : [ 11 ]
209229 test :
210230 - test_application_kubernetes_ha.sh
211231 - test_sessionjob_kubernetes_ha.sh
212232 - test_sessionjob_operations.sh
213233 - test_flink_operator_ha.sh
214234 - 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
226235 exclude :
227- - mode : standalone
228- test : test_autoscaler.sh
229- - mode : standalone
230- test : test_dynamic_config.sh
231236 - mode : standalone
232237 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
238+ - flink_version : { tag: "v1_16", image: "flink:1.16" }
238239 test : test_flink_operator_ha.sh
239- - version : v1_16
240+ - flink_version : { tag: " v1_16", image: "flink:1.16" }
240241 test : test_snapshot.sh
241- - version : v1_17
242- test : test_dynamic_config.sh
243- - version : v1_17
242+ - flink_version : { tag: "v1_17", image: "flink:1.17" }
244243 test : test_flink_operator_ha.sh
245- - version : v1_17
244+ - flink_version : { tag: " v1_17", image: "flink:1.17" }
246245 test : test_snapshot.sh
247- - version : v1_18
246+ - flink_version : { tag: " v1_18", image: "flink:1.18" }
248247 test : test_dynamic_config.sh
249- - version : v1_18
248+ - flink_version : { tag: " v1_18", image: "flink:1.18" }
250249 test : test_flink_operator_ha.sh
251- - version : v1_18
250+ - flink_version : { tag: " v1_18", image: "flink:1.18" }
252251 test : test_snapshot.sh
253- - version : v1_19
252+ - flink_version : { tag: " v1_19", image: "flink:1.19" }
254253 test : test_snapshot.sh
255254 steps :
256255 - uses : actions/checkout@v4
@@ -289,8 +288,8 @@ jobs:
289288 kubectl get pods -n ${{ matrix.namespace }}
290289 - name : Run Flink e2e tests
291290 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
291+ sed -i "s/image: flink:.*/image: ${{ matrix.flink_version. image }}/" e2e-tests/data/*.yaml
292+ sed -i "s/flinkVersion: .*/flinkVersion: ${{ matrix.flink_version.tag }}/" e2e-tests/data/*.yaml
294293 sed -i "s/mode: .*/mode: ${{ matrix.mode }}/" e2e-tests/data/*.yaml
295294 git diff HEAD
296295 echo "Running e2e-tests/$test"
0 commit comments