Skip to content

Commit 48349d2

Browse files
committed
Merge branch 'main' into support-config-yaml
2 parents 6679cba + 0e65a5a commit 48349d2

File tree

201 files changed

+5778
-1128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+5778
-1128
lines changed

.asf.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ github:
2121
release-1.8: {}
2222
release-1.9: {}
2323
release-1.10: {}
24+
release-1.11: {}
2425

2526
notifications:
2627

.github/workflows/ci.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on:
2828
- release-*
2929
pull_request:
3030
concurrency:
31-
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
31+
group: ${{ github.workflow }}-${{ github.ref_name }}
3232
cancel-in-progress: true
3333

3434
jobs:
@@ -83,17 +83,36 @@ jobs:
8383
flink-version: "v1_20"
8484
http-client: ${{ matrix.http-client }}
8585
test: test_application_operations.sh
86+
java_runtimes:
87+
name: Java runtimes smoke test
88+
needs: e2e_smoke_test
89+
strategy:
90+
matrix:
91+
http-client: [ "okhttp" ]
92+
java-version: [ "11", "17"]
93+
flink-version:
94+
- "v2_0"
95+
- "v1_20"
96+
- "v1_19"
97+
- "v1_18"
98+
uses: ./.github/workflows/e2e.yaml
99+
with:
100+
java-version: ${{ matrix.java-version }}
101+
flink-version: ${{ matrix.flink-version }}
102+
http-client: ${{ matrix.http-client }}
103+
test: test_application_operations.sh
104+
append-java-version: true
86105
e2e_namespace_tests:
87106
name: Alternative namespace tests
88107
needs: e2e_smoke_test
89108
strategy:
90109
matrix:
91110
flink-version:
111+
- "v2_0"
92112
- "v1_20"
93-
- "v1_18"
94113
- "v1_19"
114+
- "v1_18"
95115
- "v1_17"
96-
- "v1_16"
97116
mode:
98117
- "native"
99118
- "standalone"
@@ -125,11 +144,11 @@ jobs:
125144
strategy:
126145
matrix:
127146
flink-version:
147+
- "v2_0"
128148
- "v1_20"
129149
- "v1_18"
130150
- "v1_19"
131151
- "v1_17"
132-
- "v1_16"
133152
mode:
134153
- "native"
135154
- "standalone"
@@ -142,6 +161,7 @@ jobs:
142161
- test_autoscaler.sh
143162
- test_flink_operator_ha.sh
144163
- test_snapshot.sh
164+
- test_batch_job.sh
145165
exclude:
146166
- flink-version: v1_16
147167
test: test_autoscaler.sh
@@ -153,18 +173,24 @@ jobs:
153173
test: test_flink_operator_ha.sh
154174
- flink-version: v1_16
155175
test: test_snapshot.sh
176+
- flink-version: v1_16
177+
test: test_batch_job.sh
156178
- flink-version: v1_17
157179
test: test_dynamic_config.sh
158180
- flink-version: v1_17
159181
test: test_flink_operator_ha.sh
160182
- flink-version: v1_17
161183
test: test_snapshot.sh
184+
- flink-version: v1_17
185+
test: test_batch_job.sh
162186
- flink-version: v1_18
163187
test: test_dynamic_config.sh
164188
- flink-version: v1_18
165189
test: test_flink_operator_ha.sh
166190
- flink-version: v1_18
167191
test: test_snapshot.sh
192+
- flink-version: v1_18
193+
test: test_batch_job.sh
168194
- flink-version: v1_19
169195
test: test_snapshot.sh
170196
uses: ./.github/workflows/e2e.yaml

.github/workflows/docker_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Set up QEMU
4343
uses: docker/setup-qemu-action@v3
4444
with:
45-
image: tonistiigi/binfmt:latest
45+
image: tonistiigi/binfmt:qemu-v7.0.0
4646
platforms: all
4747

4848
- name: Set up Docker Buildx

.github/workflows/docs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
matrix:
2929
branch:
3030
- main
31-
- release-1.9
3231
- release-1.10
32+
- release-1.11
3333
steps:
3434
- uses: actions/checkout@v3
3535
with:
@@ -41,8 +41,8 @@ jobs:
4141
echo "flink_branch=${currentBranch}"
4242
echo "flink_branch=${currentBranch}" >> ${GITHUB_ENV}
4343
if [ "${currentBranch}" = "main" ]; then
44-
echo "flink_alias=release-1.11" >> ${GITHUB_ENV}
45-
elif [ "${currentBranch}" = "release-1.10" ]; then
44+
echo "flink_alias=release-1.12" >> ${GITHUB_ENV}
45+
elif [ "${currentBranch}" = "release-1.11" ]; then
4646
echo "flink_alias=stable" >> ${GITHUB_ENV}
4747
else
4848
echo "flink_alias=${currentBranch}" >> ${GITHUB_ENV}

.github/workflows/e2e.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
create-namespace:
2828
type: boolean
2929
default: false
30+
append-java-version:
31+
type: boolean
32+
default: false
3033

3134
jobs:
3235
e2e_test:
@@ -78,10 +81,24 @@ jobs:
7881
- name: Run Flink e2e tests
7982
run: |
8083
FLINK_IMAGE=$(sed --regexp-extended 's/v([0-9]+)_([0-9]+)/flink:\1.\2/g' <<< ${{ inputs.flink-version }} )
84+
if [[ "${{ inputs.append-java-version }}" == "true" ]]; then
85+
FLINK_IMAGE=${FLINK_IMAGE}-java${{ inputs.java-version }}
86+
fi
87+
88+
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"
89+
if [[ ${{ inputs.flink-version }} == v2* ]]; then
90+
EXAMPLES_JAR="https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming/2.0-preview1/flink-examples-streaming-2.0-preview1.jar"
91+
elif [[ "${{ inputs.test }}" == "test_batch_job.sh" ]]; then
92+
EXAMPLES_JAR="https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming/1.20.1/flink-examples-streaming-1.20.1.jar"
93+
fi
94+
ESCAPED_EXAMPLES_JAR=$(printf '%s\n' "$EXAMPLES_JAR" | sed -e 's/[\/&]/\\&/g')
95+
8196
echo FLINK_IMAGE=${FLINK_IMAGE}
97+
echo EXAMPLES_JAR=${EXAMPLES_JAR}
8298
sed -i "s/image: flink:.*/image: ${FLINK_IMAGE}/" e2e-tests/data/*.yaml
8399
sed -i "s/flinkVersion: .*/flinkVersion: ${{ inputs.flink-version }}/" e2e-tests/data/*.yaml
84100
sed -i "s/mode: .*/mode: ${{ inputs.mode }}/" e2e-tests/data/*.yaml
101+
sed -i "s/STREAMING_EXAMPLES_JAR_URL/${ESCAPED_EXAMPLES_JAR}/" e2e-tests/data/*.yaml
85102
git diff HEAD
86103
echo "Running e2e-tests/$test"
87104
bash e2e-tests/${{ inputs.test }} || exit 1

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RUN cd /app/tools/license; mkdir jars; cd jars; \
3838
FROM eclipse-temurin:${JAVA_VERSION}-jre-jammy
3939
ENV FLINK_HOME=/opt/flink
4040
ENV FLINK_PLUGINS_DIR=$FLINK_HOME/plugins
41-
ENV OPERATOR_VERSION=1.11-SNAPSHOT
41+
ENV OPERATOR_VERSION=1.12-SNAPSHOT
4242
ENV OPERATOR_JAR=flink-kubernetes-operator-$OPERATOR_VERSION-shaded.jar
4343
ENV WEBHOOK_JAR=flink-kubernetes-webhook-$OPERATOR_VERSION-shaded.jar
4444
ENV KUBERNETES_STANDALONE_JAR=flink-kubernetes-standalone-$OPERATOR_VERSION.jar

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Apache Flink Kubernetes Operator (flink-kubernetes-operator)
2-
Copyright 2014-2024 The Apache Software Foundation
2+
Copyright 2014-2025 The Apache Software Foundation
33

44
This product includes software developed at
55
The Apache Software Foundation (http://www.apache.org/).

docs/config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ pygmentsUseClasses = true
3434
# we change the version for the complete docs when forking of a release branch
3535
# etc.
3636
# The full version string as referenced in Maven (e.g. 1.2.1)
37-
Version = "1.11-SNAPSHOT"
37+
Version = "1.12-SNAPSHOT"
3838

3939
# For stable releases, leave the bugfix version out (e.g. 1.2). For snapshot
4040
# release this should be the same as the regular version
41-
VersionTitle = "1.11-SNAPSHOT"
41+
VersionTitle = "1.12-SNAPSHOT"
4242

4343
# The branch for this version of the Apache Flink Kubernetes Operator
4444
Branch = "main"
@@ -63,8 +63,8 @@ pygmentsUseClasses = true
6363
]
6464

6565
PreviousDocs = [
66+
["1.11", "https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-1.11"],
6667
["1.10", "https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-1.10"],
67-
["1.9", "https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-1.9"],
6868
]
6969

7070
[markup]

docs/content.zh/docs/custom-resource/autoscaler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ We suggest setting this based on your actual objective, such us 10,30,60 minutes
177177
### Basic configuration example
178178
```yaml
179179
...
180-
flinkVersion: v1_17
180+
flinkVersion: v1_20
181181
flinkConfiguration:
182182
job.autoscaler.enabled: "true"
183183
job.autoscaler.stabilization.interval: 1m

docs/content.zh/docs/custom-resource/job-management.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ kind: FlinkDeployment
111111
metadata:
112112
name: basic-checkpoint-ha-example
113113
spec:
114-
image: flink:1.17
115-
flinkVersion: v1_17
114+
image: flink:1.20
115+
flinkVersion: v1_20
116116
flinkConfiguration:
117117
taskmanager.numberOfTaskSlots: "2"
118118
state.savepoints.dir: file:///flink-data/savepoints

0 commit comments

Comments
 (0)