Skip to content

Commit 09a0a20

Browse files
committed
[FLINK-36332] fix namespace setup
1 parent f3754f2 commit 09a0a20

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
flink-version: ${{ matrix.flink-version }}
114114
test: ${{ matrix.test }}
115115
namespace: "flink"
116+
create-namespace: true
116117
mode: ${{ matrix.mode }}
117118
e2e_ci:
118119
needs: e2e_smoke_test

.github/workflows/e2e.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
test:
2525
required: true
2626
type: string
27+
create-namespace:
28+
type: boolean
29+
default: false
2730

2831
jobs:
2932
e2e_test:
@@ -55,9 +58,16 @@ jobs:
5558
HTTP_CLIENT=${{ inputs.http-client }}
5659
docker build --progress=plain --no-cache -f ./Dockerfile -t flink-kubernetes-operator:ci-latest --progress plain --build-arg JAVA_VERSION="${JAVA_VERSION:-11}" --build-arg HTTP_CLIENT="${HTTP_CLIENT:-okhttp}" .
5760
docker images
61+
- name: Create ${{ inputs.namespace }} == ${{ inputs.create-namespace }}
62+
if: inputs.create_namespace
63+
run: |
64+
source e2e-tests/utils.sh
65+
create_namespace flink
66+
echo JAVA_VERSION=${JAVA_VERSION:out of scope}
67+
export EXTRA_HELM_INSTALL_ARGS="--set "watchNamespaces={default,flink}""
5868
- name: Start the operator
5969
run: |
60-
helm --debug install flink-kubernetes-operator -n ${{ inputs.namespace }} helm/flink-kubernetes-operator --set image.repository=flink-kubernetes-operator --set image.tag=ci-latest
70+
helm --debug install flink-kubernetes-operator -n ${{ inputs.namespace }} helm/flink-kubernetes-operator --set image.repository=flink-kubernetes-operator --set image.tag=ci-latest ${EXTRA_HELM_INSTALL_ARGS}
6171
kubectl wait --for=condition=Available --timeout=120s -n ${{ inputs.namespace }} deploy/flink-kubernetes-operator
6272
kubectl get pods -n ${{ inputs.namespace }}
6373
- name: Run Flink e2e tests

0 commit comments

Comments
 (0)