Skip to content

Commit f2adb15

Browse files
mateczaganygyfora
authored andcommitted
[FLINK-35640] Deprecate Flink version 1.15
1 parent 7b01553 commit f2adb15

File tree

15 files changed

+21
-19
lines changed

15 files changed

+21
-19
lines changed

Diff for: docs/content.zh/docs/concepts/overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Flink Kubernetes Operator 旨在承担人工操作 Flink 部署的职责。 人
4444
- 有状态和无状态应用程序升级
4545
- 保存点的触发和管理
4646
- 处理错误,回滚失败的升级
47-
- 多 Flink 版本支持:v1.15, v1.16, v1.17, v1.18
47+
- 多 Flink 版本支持:v1.16, v1.17, v1.18, v1.19
4848
- [Deployment Modes]({{< ref "docs/custom-resource/overview#application-deployments" >}}):
4949
- Application 集群
5050
- Session 集群

Diff for: docs/content.zh/docs/custom-resource/overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ For example, to support the hadoop fs resource:
207207
```shell script
208208
FROM apache/flink-kubernetes-operator
209209
ENV FLINK_PLUGINS_DIR=/opt/flink/plugins
210-
COPY flink-hadoop-fs-1.15-SNAPSHOT.jar $FLINK_PLUGINS_DIR/hadoop-fs/
210+
COPY flink-hadoop-fs-1.19-SNAPSHOT.jar $FLINK_PLUGINS_DIR/hadoop-fs/
211211
```
212212

213213
Alternatively, if you use helm to install flink-kubernetes-operator, it allows you to specify a postStart hook to download the required plugins.

Diff for: docs/content/docs/concepts/overview.md

+1-1
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.15, v1.16, v1.17, v1.18
39+
- Multiple Flink version support: v1.16, v1.17, v1.18, v1.19
4040
- [Deployment Modes]({{< ref "docs/custom-resource/overview#application-deployments" >}}):
4141
- Application cluster
4242
- Session cluster

Diff for: docs/content/docs/custom-resource/overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ For example, to support the hadoop fs resource:
207207
```shell script
208208
FROM apache/flink-kubernetes-operator
209209
ENV FLINK_PLUGINS_DIR=/opt/flink/plugins
210-
COPY flink-hadoop-fs-1.15-SNAPSHOT.jar $FLINK_PLUGINS_DIR/hadoop-fs/
210+
COPY flink-hadoop-fs-1.19-SNAPSHOT.jar $FLINK_PLUGINS_DIR/hadoop-fs/
211211
```
212212

213213
Alternatively, if you use helm to install flink-kubernetes-operator, it allows you to specify a postStart hook to download the required plugins.

Diff for: docs/content/docs/custom-resource/reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ This serves as a full reference for FlinkDeployment and FlinkSessionJob custom r
9090
| ----- | ---- |
9191
| v1_13 | No longer supported since 1.7 operator release. |
9292
| v1_14 | No longer supported since 1.7 operator release. |
93-
| v1_15 | |
93+
| v1_15 | Deprecated since 1.10 operator release. |
9494
| v1_16 | |
9595
| v1_17 | |
9696
| v1_18 | |

Diff for: examples/flink-beam-example/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
################################################################################
1818

19-
FROM flink:1.15
19+
FROM flink:1.16
2020

2121
RUN mkdir /opt/flink/usrlib
2222
ADD target/flink-beam-example-*.jar /opt/flink/usrlib/beam-runner.jar

Diff for: examples/flink-beam-example/beam-example.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ metadata:
2222
name: beam-example
2323
spec:
2424
image: flink-beam-example:latest
25-
flinkVersion: v1_15
25+
flinkVersion: v1_16
2626
flinkConfiguration:
2727
taskmanager.numberOfTaskSlots: "1"
2828
serviceAccount: flink

Diff for: examples/flink-beam-example/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ under the License.
3333
<!-- Given that this is an example skip maven deployment -->
3434
<properties>
3535
<maven.deploy.skip>true</maven.deploy.skip>
36-
<beam.version>2.43.0</beam.version>
36+
<beam.version>2.47.0</beam.version>
3737
</properties>
3838

3939
<repositories>
@@ -71,7 +71,7 @@ under the License.
7171

7272
<dependency>
7373
<groupId>org.apache.beam</groupId>
74-
<artifactId>beam-runners-flink-1.15</artifactId>
74+
<artifactId>beam-runners-flink-1.16</artifactId>
7575
<version>${beam.version}</version>
7676
</dependency>
7777

Diff for: examples/kubernetes-client-examples/src/main/java/org/apache/flink/examples/Basic.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public static void main(String[] args) {
4444
objectMeta.setName("basic");
4545
flinkDeployment.setMetadata(objectMeta);
4646
FlinkDeploymentSpec flinkDeploymentSpec = new FlinkDeploymentSpec();
47-
flinkDeploymentSpec.setFlinkVersion(FlinkVersion.v1_15);
48-
flinkDeploymentSpec.setImage("flink:1.15");
47+
flinkDeploymentSpec.setFlinkVersion(FlinkVersion.v1_19);
48+
flinkDeploymentSpec.setImage("flink:1.19");
4949
Map<String, String> flinkConfiguration =
5050
Map.ofEntries(entry("taskmanager.numberOfTaskSlots", "2"));
5151
flinkDeploymentSpec.setFlinkConfiguration(flinkConfiguration);

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

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public enum FlinkVersion {
2929
/** No longer supported since 1.7 operator release. */
3030
@Deprecated
3131
v1_14,
32+
/** Deprecated since 1.10 operator release. */
33+
@Deprecated
3234
v1_15,
3335
v1_16,
3436
v1_17,

Diff for: flink-kubernetes-operator/src/test/java/org/apache/flink/kubernetes/operator/TestUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public static TestingMetricRegistry createTestMetricRegistry() {
325325

326326
public static Stream<Arguments> flinkVersionsAndUpgradeModes() {
327327
List<Arguments> args = new ArrayList<>();
328-
for (FlinkVersion version : Set.of(FlinkVersion.v1_15, FlinkVersion.v1_18)) {
328+
for (FlinkVersion version : Set.of(FlinkVersion.v1_16, FlinkVersion.v1_19)) {
329329
for (UpgradeMode upgradeMode : UpgradeMode.values()) {
330330
args.add(arguments(version, upgradeMode));
331331
}
@@ -334,7 +334,7 @@ public static Stream<Arguments> flinkVersionsAndUpgradeModes() {
334334
}
335335

336336
public static Stream<Arguments> flinkVersions() {
337-
return Stream.of(arguments(FlinkVersion.v1_15), arguments(FlinkVersion.v1_18));
337+
return Stream.of(arguments(FlinkVersion.v1_16), arguments(FlinkVersion.v1_19));
338338
}
339339

340340
public static FlinkDeployment createCanaryDeployment() {

Diff for: flink-kubernetes-operator/src/test/java/org/apache/flink/kubernetes/operator/controller/FlinkDeploymentControllerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ public void testInitialSavepointOnError() throws Exception {
10581058

10591059
@Test
10601060
public void testInitialHaError() throws Exception {
1061-
var appCluster = TestUtils.buildApplicationCluster(FlinkVersion.v1_15);
1061+
var appCluster = TestUtils.buildApplicationCluster(FlinkVersion.v1_19);
10621062
appCluster.getSpec().getJob().setUpgradeMode(UpgradeMode.LAST_STATE);
10631063
testController.reconcile(appCluster, context);
10641064
testController.reconcile(appCluster, context);

Diff for: flink-kubernetes-operator/src/test/java/org/apache/flink/kubernetes/operator/reconciler/deployment/ApplicationReconcilerTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -693,12 +693,12 @@ public void testRandomJobResultStorePath() throws Exception {
693693

694694
@Test
695695
public void testAlwaysSavepointOnFlinkVersionChange() throws Exception {
696-
var deployment = TestUtils.buildApplicationCluster(FlinkVersion.v1_14);
696+
var deployment = TestUtils.buildApplicationCluster(FlinkVersion.v1_18);
697697
getJobSpec(deployment).setUpgradeMode(UpgradeMode.LAST_STATE);
698698

699699
reconciler.reconcile(deployment, context);
700700

701-
deployment.getSpec().setFlinkVersion(FlinkVersion.v1_15);
701+
deployment.getSpec().setFlinkVersion(FlinkVersion.v1_19);
702702

703703
var reconStatus = deployment.getStatus().getReconciliationStatus();
704704

Diff for: flink-kubernetes-operator/src/test/java/org/apache/flink/kubernetes/operator/service/NativeFlinkServiceTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public class NativeFlinkServiceTest {
100100
public void setup() {
101101
configuration.set(KubernetesConfigOptions.CLUSTER_ID, TestUtils.TEST_DEPLOYMENT_NAME);
102102
configuration.set(KubernetesConfigOptions.NAMESPACE, TestUtils.TEST_NAMESPACE);
103-
configuration.set(FLINK_VERSION, FlinkVersion.v1_15);
103+
configuration.set(FLINK_VERSION, FlinkVersion.v1_19);
104104
eventRecorder = new EventRecorder(eventCollector);
105105
operatorConfig = FlinkOperatorConfiguration.fromConfiguration(configuration);
106106
executorService = Executors.newDirectExecutorService();

Diff for: flink-kubernetes-operator/src/test/java/org/apache/flink/kubernetes/operator/validation/DefaultValidatorTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -657,15 +657,15 @@ private Consumer<FlinkDeployment> createFlinkVersionChange(
657657
UpgradeMode fromUpgrade, UpgradeMode toUpgrade, JobState fromState) {
658658
return dep -> {
659659
var spec = dep.getSpec();
660-
spec.setFlinkVersion(FlinkVersion.v1_15);
660+
spec.setFlinkVersion(FlinkVersion.v1_19);
661661
spec.getJob().setUpgradeMode(toUpgrade);
662662

663663
var suspendSpec = ReconciliationUtils.clone(spec);
664664

665665
// Stopped with LAST_STATE mode with different Flink Version
666666
suspendSpec.getJob().setUpgradeMode(fromUpgrade);
667667
suspendSpec.getJob().setState(fromState);
668-
suspendSpec.setFlinkVersion(FlinkVersion.v1_14);
668+
suspendSpec.setFlinkVersion(FlinkVersion.v1_18);
669669

670670
dep.getStatus()
671671
.getReconciliationStatus()

0 commit comments

Comments
 (0)