Skip to content

Commit f203cd0

Browse files
committed
Merging main (release 1.13)
1 parent d62260b commit f203cd0

File tree

141 files changed

+5132
-1350
lines changed

Some content is hidden

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

141 files changed

+5132
-1350
lines changed

.asf.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ github:
2121
release-1.8: {}
2222
release-1.9: {}
2323
release-1.10: {}
24+
release-1.11: {}
25+
release-1.12: {}
2426

2527
notifications:
2628

.github/workflows/ci.yml

Lines changed: 29 additions & 6 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:
@@ -37,7 +37,7 @@ jobs:
3737
name: maven build
3838
strategy:
3939
matrix:
40-
java-version: [ 11, 17, 21 ]
40+
java-version: [ 17, 21 ]
4141
steps:
4242
- uses: actions/checkout@v4
4343
- name: Set up JDK ${{ matrix.java-version }}
@@ -76,7 +76,7 @@ jobs:
7676
strategy:
7777
matrix:
7878
http-client: [ "okhttp", "jdk", "jetty", "vertx" ]
79-
java-version: [ "11", "17", "21" ]
79+
java-version: [ "17", "21" ]
8080
uses: ./.github/workflows/e2e.yaml
8181
with:
8282
java-version: ${{ matrix.java-version }}
@@ -89,7 +89,7 @@ jobs:
8989
strategy:
9090
matrix:
9191
http-client: [ "okhttp" ]
92-
java-version: [ "11", "17"]
92+
java-version: [ "17"]
9393
flink-version:
9494
- "v2_0"
9595
- "v1_20"
@@ -121,19 +121,28 @@ jobs:
121121
- test_multi_sessionjob.sh
122122
- test_autoscaler.sh
123123
- test_dynamic_config.sh
124+
- test_dynamic_flink_conf.sh
124125
exclude:
125126
- mode: standalone
126127
test: test_autoscaler.sh
127128
- mode: standalone
128129
test: test_dynamic_config.sh
130+
- mode: standalone
131+
test: test_dynamic_flink_conf.sh
129132
- flink-version: v1_16
130133
test: test_autoscaler.sh
131134
- flink-version: v1_16
132135
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
133142

134143
uses: ./.github/workflows/e2e.yaml
135144
with:
136-
java-version: 11
145+
java-version: 17
137146
flink-version: ${{ matrix.flink-version }}
138147
test: ${{ matrix.test }}
139148
namespace: "flink"
@@ -156,39 +165,53 @@ jobs:
156165
- test_application_kubernetes_ha.sh
157166
- test_application_operations.sh
158167
- test_dynamic_config.sh
168+
- test_dynamic_flink_conf.sh
159169
- test_sessionjob_kubernetes_ha.sh
160170
- test_sessionjob_operations.sh
161171
- test_autoscaler.sh
162172
- test_flink_operator_ha.sh
163173
- test_snapshot.sh
174+
- test_batch_job.sh
164175
exclude:
165176
- flink-version: v1_16
166177
test: test_autoscaler.sh
167178
- mode: standalone
168179
test: test_autoscaler.sh
169180
- flink-version: v1_16
170181
test: test_dynamic_config.sh
182+
- flink-version: v1_16
183+
test: test_dynamic_flink_conf.sh
171184
- flink-version: v1_16
172185
test: test_flink_operator_ha.sh
173186
- flink-version: v1_16
174187
test: test_snapshot.sh
188+
- flink-version: v1_16
189+
test: test_batch_job.sh
175190
- flink-version: v1_17
176191
test: test_dynamic_config.sh
192+
- flink-version: v1_17
193+
test: test_dynamic_flink_conf.sh
177194
- flink-version: v1_17
178195
test: test_flink_operator_ha.sh
179196
- flink-version: v1_17
180197
test: test_snapshot.sh
198+
- flink-version: v1_17
199+
test: test_batch_job.sh
181200
- flink-version: v1_18
182201
test: test_dynamic_config.sh
202+
- flink-version: v1_18
203+
test: test_dynamic_flink_conf.sh
183204
- flink-version: v1_18
184205
test: test_flink_operator_ha.sh
185206
- flink-version: v1_18
186207
test: test_snapshot.sh
208+
- flink-version: v1_18
209+
test: test_batch_job.sh
187210
- flink-version: v1_19
188211
test: test_snapshot.sh
189212
uses: ./.github/workflows/e2e.yaml
190213
with:
191-
java-version: 11
214+
java-version: 17
192215
flink-version: ${{ matrix.flink-version }}
193216
test: ${{ matrix.test }}
194217
mode: ${{ matrix.mode }}

.github/workflows/docker_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
image: tonistiigi/binfmt:qemu-v7.0.0
4646
platforms: all
4747

48-
- name: Set up Docker Buildx
48+
- name: Set up Docker Build
4949
uses: docker/setup-buildx-action@v3
5050

5151
- name: Log in to the Container registry

.github/workflows/docs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
matrix:
2929
branch:
3030
- main
31-
- release-1.9
32-
- release-1.10
31+
- release-1.11
32+
- release-1.12
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.13" >> ${GITHUB_ENV}
45+
elif [ "${currentBranch}" = "release-1.12" ]; then
4646
echo "flink_alias=stable" >> ${GITHUB_ENV}
4747
else
4848
echo "flink_alias=${currentBranch}" >> ${GITHUB_ENV}

.github/workflows/e2e.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ jobs:
7575
sed -i "s/# kubernetes.operator.leader-election.lease-name: flink-operator-lease/kubernetes.operator.leader-election.lease-name: flink-operator-lease/" helm/flink-kubernetes-operator/conf/flink-conf.yaml
7676
sed -i "s/replicas: 1/replicas: 2/" helm/flink-kubernetes-operator/values.yaml
7777
fi
78+
if [[ "${{ inputs.test }}" == "test_dynamic_config.sh" ]]; then
79+
sed -i "s/flink-conf.yaml: |+/config.yaml: |+/" helm/flink-kubernetes-operator/values.yaml
80+
fi
7881
helm --debug install flink-kubernetes-operator -n ${{ inputs.namespace }} helm/flink-kubernetes-operator --set image.repository=flink-kubernetes-operator --set image.tag=ci-latest ${{ steps.namespace-creator.outputs.EXTRA_HELM_INSTALL_ARGS }}
7982
kubectl wait --for=condition=Available --timeout=120s -n ${{ inputs.namespace }} deploy/flink-kubernetes-operator
8083
kubectl get pods -n ${{ inputs.namespace }}
@@ -88,6 +91,8 @@ jobs:
8891
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"
8992
if [[ ${{ inputs.flink-version }} == v2* ]]; then
9093
EXAMPLES_JAR="https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming/2.0-preview1/flink-examples-streaming-2.0-preview1.jar"
94+
elif [[ "${{ inputs.test }}" == "test_batch_job.sh" ]]; then
95+
EXAMPLES_JAR="https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming/1.20.1/flink-examples-streaming-1.20.1.jar"
9196
fi
9297
ESCAPED_EXAMPLES_JAR=$(printf '%s\n' "$EXAMPLES_JAR" | sed -e 's/[\/&]/\\&/g')
9398

.github/workflows/publish_snapshot.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
if: github.repository == 'apache/flink-kubernetes-operator'
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
with:
3333
ref: main
3434
- name: Set up JDK 11
35-
uses: actions/setup-java@v2
35+
uses: actions/setup-java@v4
3636
with:
37-
java-version: '11'
38-
distribution: 'adopt'
37+
java-version: '17'
38+
distribution: 'temurin'
3939
- name: Cache local Maven repository
40-
uses: actions/cache@v3
40+
uses: actions/cache@v4
4141
with:
4242
path: ~/.m2/repository
4343
key: snapshot-maven-${{ hashFiles('**/pom.xml') }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ buildNumber.properties
3636
.idea
3737
*.iml
3838
*.DS_Store
39+
40+
.kube

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# limitations under the License.
1717
################################################################################
1818
# Build
19-
ARG JAVA_VERSION=11
19+
ARG JAVA_VERSION=17
2020
FROM maven:3.8.8-eclipse-temurin-${JAVA_VERSION} AS build
2121
ARG SKIP_TESTS=true
2222
ARG HTTP_CLIENT=okhttp
@@ -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.13-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

docs/config.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ 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.0"
37+
Version = "1.13-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"
41+
VersionTitle = "1.13-SNAPSHOT"
4242

4343
# The branch for this version of the Apache Flink Kubernetes Operator
44-
Branch = "release-1.11"
44+
Branch = "main"
4545

4646
# The github repository for the Apache Flink Kubernetes Operator
4747
Repo = "//github.com/apache/flink-kubernetes-operator"
@@ -63,8 +63,8 @@ pygmentsUseClasses = true
6363
]
6464

6565
PreviousDocs = [
66-
["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"],
66+
["1.12", "https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-1.12"],
67+
["1.11", "https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-1.11"],
6868
]
6969

7070
[markup]

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,13 @@ Flink cluster, includes:
246246

247247
You can start a Flink Streaming job with the following ConfigOptions.
248248

249-
```
250-
# Enable Adaptvie scheduler to play the in-place rescaling.
249+
```yaml
250+
# Enable Adaptive scheduler to play the in-place rescaling.
251251
jobmanager.scheduler : adaptive
252252
253253
# Enable autoscale and scaling
254-
job.autoscaler.enabled : true
255-
job.autoscaler.scaling.enabled : true
254+
job.autoscaler.enabled : "true"
255+
job.autoscaler.scaling.enabled : "true"
256256
job.autoscaler.stabilization.interval : 1m
257257
job.autoscaler.metrics.window : 3m
258258
```

0 commit comments

Comments
 (0)