Skip to content

Commit 14736b3

Browse files
committed
[FLINK-38147] Add Flink 2.1 support
1 parent d5f4753 commit 14736b3

File tree

6 files changed

+14
-52
lines changed

6 files changed

+14
-52
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ jobs:
9191
http-client: [ "okhttp" ]
9292
java-version: [ "17"]
9393
flink-version:
94+
- "v2_1"
9495
- "v2_0"
9596
- "v1_20"
9697
- "v1_19"
97-
- "v1_18"
9898
uses: ./.github/workflows/e2e.yaml
9999
with:
100100
java-version: ${{ matrix.java-version }}
@@ -108,11 +108,10 @@ jobs:
108108
strategy:
109109
matrix:
110110
flink-version:
111+
- "v2_1"
111112
- "v2_0"
112113
- "v1_20"
113114
- "v1_19"
114-
- "v1_18"
115-
- "v1_17"
116115
mode:
117116
- "native"
118117
- "standalone"
@@ -129,16 +128,6 @@ jobs:
129128
test: test_dynamic_config.sh
130129
- mode: standalone
131130
test: test_dynamic_flink_conf.sh
132-
- flink-version: v1_16
133-
test: test_autoscaler.sh
134-
- flink-version: v1_16
135-
test: test_dynamic_config.sh
136-
- flink-version: v1_17
137-
test: test_dynamic_config.sh
138-
- flink-version: v1_18
139-
test: test_dynamic_config.sh
140-
- flink-version: v1_16
141-
test: test_dynamic_flink_conf.sh
142131

143132
uses: ./.github/workflows/e2e.yaml
144133
with:
@@ -153,11 +142,10 @@ jobs:
153142
strategy:
154143
matrix:
155144
flink-version:
145+
- "v2_1"
156146
- "v2_0"
157147
- "v1_20"
158-
- "v1_18"
159148
- "v1_19"
160-
- "v1_17"
161149
mode:
162150
- "native"
163151
- "standalone"
@@ -173,40 +161,6 @@ jobs:
173161
- test_snapshot.sh
174162
- test_batch_job.sh
175163
exclude:
176-
- flink-version: v1_16
177-
test: test_autoscaler.sh
178-
- mode: standalone
179-
test: test_autoscaler.sh
180-
- flink-version: v1_16
181-
test: test_dynamic_config.sh
182-
- flink-version: v1_16
183-
test: test_dynamic_flink_conf.sh
184-
- flink-version: v1_16
185-
test: test_flink_operator_ha.sh
186-
- flink-version: v1_16
187-
test: test_snapshot.sh
188-
- flink-version: v1_16
189-
test: test_batch_job.sh
190-
- flink-version: v1_17
191-
test: test_dynamic_config.sh
192-
- flink-version: v1_17
193-
test: test_dynamic_flink_conf.sh
194-
- flink-version: v1_17
195-
test: test_flink_operator_ha.sh
196-
- flink-version: v1_17
197-
test: test_snapshot.sh
198-
- flink-version: v1_17
199-
test: test_batch_job.sh
200-
- flink-version: v1_18
201-
test: test_dynamic_config.sh
202-
- flink-version: v1_18
203-
test: test_dynamic_flink_conf.sh
204-
- flink-version: v1_18
205-
test: test_flink_operator_ha.sh
206-
- flink-version: v1_18
207-
test: test_snapshot.sh
208-
- flink-version: v1_18
209-
test: test_batch_job.sh
210164
- flink-version: v1_19
211165
test: test_snapshot.sh
212166
uses: ./.github/workflows/e2e.yaml

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
9191
EXAMPLES_JAR="https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming_2.12/1.14.4/flink-examples-streaming_2.12-1.14.4.jar"
9292
if [[ ${{ inputs.flink-version }} == v2* ]]; then
93-
EXAMPLES_JAR="https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming/2.0-preview1/flink-examples-streaming-2.0-preview1.jar"
93+
EXAMPLES_JAR="https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming/2.0.0/flink-examples-streaming-2.0.0.jar"
9494
elif [[ "${{ inputs.test }}" == "test_batch_job.sh" ]]; then
9595
EXAMPLES_JAR="https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming/1.20.1/flink-examples-streaming-1.20.1.jar"
9696
fi

docs/content/docs/concepts/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Flink Kubernetes Operator aims to capture the responsibilities of a human operat
3636
- Stateful and stateless application upgrades
3737
- Triggering and managing savepoints
3838
- Handling errors, rolling-back broken upgrades
39-
- Multiple Flink version support: v1.16, v1.17, v1.18, v1.19, v1.20
39+
- Multiple Flink version support: v1.17, v1.18, v1.19, v1.20, v2.0, v2.1
4040
- [Deployment Modes]({{< ref "docs/custom-resource/overview#application-deployments" >}}):
4141
- Application cluster
4242
- Session cluster

docs/content/docs/custom-resource/reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ This serves as a full reference for FlinkDeployment and FlinkSessionJob custom r
118118
| v1_19 | |
119119
| v1_20 | |
120120
| v2_0 | |
121+
| v2_1 | |
122+
| v2_2 | |
121123
| majorVersion | int | The major integer from the Flink semver. For example for Flink 1.18.1 this would be 1. |
122124
| minorVersion | int | The minor integer from the Flink semver. For example for Flink 1.18.1 this would be 18. |
123125

flink-kubernetes-operator-api/src/main/java/org/apache/flink/kubernetes/operator/api/spec/FlinkVersion.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ public enum FlinkVersion {
3535
/** Deprecated since 1.11 operator release. */
3636
@Deprecated
3737
v1_16(1, 16),
38+
@Deprecated
3839
v1_17(1, 17),
40+
@Deprecated
3941
v1_18(1, 18),
4042
v1_19(1, 19),
4143
v1_20(1, 20),
42-
v2_0(2, 0);
44+
v2_0(2, 0),
45+
v2_1(2, 1),
46+
v2_2(2, 2);
4347

4448
/** The major integer from the Flink semver. For example for Flink 1.18.1 this would be 1. */
4549
private final int majorVersion;

helm/flink-kubernetes-operator/crds/flinkdeployments.flink.apache.org-v1.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ spec:
4646
- v1_19
4747
- v1_20
4848
- v2_0
49+
- v2_1
50+
- v2_2
4951
type: string
5052
image:
5153
type: string

0 commit comments

Comments
 (0)