Skip to content

Commit b60ebc8

Browse files
Fix #6652: Default global operator to camel namespace
1 parent 2a06608 commit b60ebc8

21 files changed

Lines changed: 63 additions & 55 deletions

File tree

‎.github/actions/registry-setting/action.yml‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,18 @@ runs:
3939
# --docker-server $KAMEL_INSTALL_REGISTRY \
4040
# --docker-username admin \
4141
# --docker-password password \
42-
# -n camel-k
42+
# -n camel
4343
44+
kubectl create ns camel --dry-run=client -o yaml | kubectl apply -f -
4445
kubectl create configmap camel-k-operator-configmap-configuration \
4546
--from-literal=REGISTRY_ADDRESS="$DEV_REGISTRY" \
46-
-n camel-k
47+
-n camel
48+
# Also configure camel-k namespace if present (used in upgrade tests from previous releases)
49+
if kubectl get ns camel-k >/dev/null 2>&1; then
50+
kubectl create configmap camel-k-operator-configmap-configuration \
51+
--from-literal=REGISTRY_ADDRESS="$DEV_REGISTRY" \
52+
-n camel-k
53+
fi
4754
# Uncomment to provide a push secret
4855
# --from-literal=REGISTRY_SECRET="my-registry"
49-
56+

‎.github/workflows/cert-manager.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ jobs:
7575
- name: Install operator
7676
shell: bash
7777
run: |
78-
kubectl create ns camel-k
78+
kubectl create ns camel
7979
kubectl apply -k install/overlays/all-namespaces/ --server-side --force-conflicts
80-
kubectl wait --for=condition=available deployment/camel-k-operator -n camel-k --timeout=60s
80+
kubectl wait --for=condition=available deployment/camel-k-operator -n camel --timeout=60s
8181
8282
- name: Run test
8383
shell: bash

‎.github/workflows/common.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,22 @@ jobs:
7373
- name: Install operator
7474
shell: bash
7575
run: |
76-
kubectl create ns camel-k
76+
kubectl create ns camel
7777
# the extra configuration is required to run the container registry with secret
7878
kubectl create configmap camel-k-operator-configmap-configuration \
7979
--from-literal=ENABLE_DEV_REGISTRY_SECRET="true" \
8080
--from-literal=MAVEN_REPOSITORIES_ALLOWED="https://maven.repository.redhat.com/ga@id=redhat" \
81-
-n camel-k
81+
-n camel
8282
# make the test aware that each Integration requires a pull secret
8383
E2E_TEST_REGISTRY_SECRET_COPY=true
8484
echo "E2E_TEST_REGISTRY_SECRET_COPY=$E2E_TEST_REGISTRY_SECRET_COPY" >> $GITHUB_ENV
8585
echo "Setting E2E_TEST_REGISTRY_SECRET_COPY=true in order to automate the copy of the pull secret and the setting in each test"
8686
8787
kubectl apply -k install/overlays/all-namespaces/ --server-side --force-conflicts
88-
kubectl wait --for=condition=available deployment/camel-k-operator -n camel-k --timeout=60s
88+
kubectl wait --for=condition=available deployment/camel-k-operator -n camel --timeout=60s
8989
# Install Apache Kamelets catalog
9090
mvn -q dependency:copy -Dartifact=org.apache.camel.kamelets:camel-kamelets:4.22.0:jar -Dmdep.useBaseVersion=true -DoutputDirectory=/tmp
91-
unzip /tmp/camel-kamelets-4.22.0.jar -d /tmp && kubectl apply -f /tmp/kamelets -n camel-k
91+
unzip /tmp/camel-kamelets-4.22.0.jar -d /tmp && kubectl apply -f /tmp/kamelets -n camel
9292
9393
- name: Run test
9494
shell: bash

‎.github/workflows/gateway.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ jobs:
7575
- name: Install operator
7676
shell: bash
7777
run: |
78-
kubectl create ns camel-k
78+
kubectl create ns camel
7979
kubectl apply -k install/overlays/all-namespaces/ --server-side --force-conflicts
80-
kubectl wait --for=condition=available deployment/camel-k-operator -n camel-k --timeout=60s
80+
kubectl wait --for=condition=available deployment/camel-k-operator -n camel --timeout=60s
8181
8282
- name: Run test
8383
shell: bash

‎.github/workflows/kafka.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ jobs:
7575
- name: Install operator
7676
shell: bash
7777
run: |
78-
kubectl create ns camel-k
78+
kubectl create ns camel
7979
kubectl apply -k install/overlays/all-namespaces/ --server-side --force-conflicts
80-
kubectl wait --for=condition=available deployment/camel-k-operator -n camel-k --timeout=60s
80+
kubectl wait --for=condition=available deployment/camel-k-operator -n camel --timeout=60s
8181
8282
- name: Run test
8383
shell: bash

‎.github/workflows/knative.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ jobs:
7575
- name: Install operator
7676
shell: bash
7777
run: |
78-
kubectl create ns camel-k
78+
kubectl create ns camel
7979
kubectl apply -k install/overlays/all-namespaces/ --server-side --force-conflicts
80-
kubectl wait --for=condition=available deployment/camel-k-operator -n camel-k --timeout=60s
80+
kubectl wait --for=condition=available deployment/camel-k-operator -n camel --timeout=60s
8181
# Install Apache Kamelets catalog
8282
mvn -q dependency:copy -Dartifact=org.apache.camel.kamelets:camel-kamelets:4.18.1:jar -Dmdep.useBaseVersion=true -DoutputDirectory=/tmp
83-
unzip /tmp/camel-kamelets-4.18.1.jar -d /tmp && kubectl apply -f /tmp/kamelets -n camel-k
83+
unzip /tmp/camel-kamelets-4.18.1.jar -d /tmp && kubectl apply -f /tmp/kamelets -n camel
8484
8585
- name: Run test
8686
shell: bash

‎.github/workflows/native.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ jobs:
7676
- name: Install operator
7777
shell: bash
7878
run: |
79-
kubectl create ns camel-k
79+
kubectl create ns camel
8080
kubectl apply -k install/overlays/all-namespaces/ --server-side --force-conflicts
81-
kubectl wait --for=condition=available deployment/camel-k-operator -n camel-k --timeout=60s
81+
kubectl wait --for=condition=available deployment/camel-k-operator -n camel --timeout=60s
8282
# Install Apache Kamelets catalog
8383
mvn -q dependency:copy -Dartifact=org.apache.camel.kamelets:camel-kamelets:4.18.1:jar -Dmdep.useBaseVersion=true -DoutputDirectory=/tmp
84-
unzip /tmp/camel-kamelets-4.18.1.jar -d /tmp && kubectl apply -f /tmp/kamelets -n camel-k
84+
unzip /tmp/camel-kamelets-4.18.1.jar -d /tmp && kubectl apply -f /tmp/kamelets -n camel
8585
8686
- name: Run test
8787
shell: bash

‎.github/workflows/nightly-multi.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ jobs:
5454
THIS_VERSION="$(make get-version)"
5555
VERSION="$(make get-version | sed s/-SNAPSHOT//)-nightly"
5656
sed -i "s#apache/camel-k:$THIS_VERSION#testcamelk/camel-k:$VERSION#g" install/base/config/manager/operator-deployment.yaml
57-
kubectl create ns camel-k
57+
kubectl create ns camel
5858
kubectl create configmap camel-k-operator-configmap-configuration \
5959
--from-literal=MAVEN_REPOSITORIES_ALLOWED="https://maven.repository.redhat.com/ga@id=redhat" \
60-
-n camel-k
60+
-n camel
6161
kubectl apply -k install/overlays/all-namespaces/ --server-side --force-conflicts
62-
kubectl wait --for=condition=available deployment/camel-k-operator -n camel-k --timeout=60s
62+
kubectl wait --for=condition=available deployment/camel-k-operator -n camel --timeout=60s
6363
# Install Apache Kamelets catalog
6464
mvn -q dependency:copy -Dartifact=org.apache.camel.kamelets:camel-kamelets:4.18.1:jar -Dmdep.useBaseVersion=true -DoutputDirectory=/tmp
65-
unzip /tmp/camel-kamelets-4.18.1.jar -d /tmp && kubectl apply -f /tmp/kamelets -n camel-k
65+
unzip /tmp/camel-kamelets-4.18.1.jar -d /tmp && kubectl apply -f /tmp/kamelets -n camel
6666
6767
- name: Run test
6868
shell: bash
@@ -94,15 +94,15 @@ jobs:
9494
run: |
9595
VERSION="$(make get-version | sed s/-SNAPSHOT//)-nightly-21-jdk"
9696
CUSTOM_IMAGE=testcamelk/camel-k CUSTOM_VERSION=$VERSION make bundle
97-
kubectl create ns camel-k
97+
kubectl create ns camel
9898
kubectl create configmap camel-k-operator-configmap-configuration \
9999
--from-literal=MAVEN_REPOSITORIES_ALLOWED="https://maven.repository.redhat.com/ga@id=redhat" \
100-
-n camel-k
100+
-n camel
101101
kubectl apply -k install/overlays/all-namespaces/ --server-side --force-conflicts
102-
kubectl wait --for=condition=available deployment/camel-k-operator -n camel-k --timeout=60s
102+
kubectl wait --for=condition=available deployment/camel-k-operator -n camel --timeout=60s
103103
# Install Apache Kamelets catalog
104104
mvn -q dependency:copy -Dartifact=org.apache.camel.kamelets:camel-kamelets:4.18.1:jar -Dmdep.useBaseVersion=true -DoutputDirectory=/tmp
105-
unzip /tmp/camel-kamelets-4.18.1.jar -d /tmp && kubectl apply -f /tmp/kamelets -n camel-k
105+
unzip /tmp/camel-kamelets-4.18.1.jar -d /tmp && kubectl apply -f /tmp/kamelets -n camel
106106
107107
- name: Run test
108108
shell: bash

‎.github/workflows/telemetry.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ jobs:
7070
- name: Install operator
7171
shell: bash
7272
run: |
73-
kubectl create ns camel-k
73+
kubectl create ns camel
7474
kubectl apply -k install/overlays/all-namespaces/ --server-side --force-conflicts
75-
kubectl wait --for=condition=available deployment/camel-k-operator -n camel-k --timeout=60s
75+
kubectl wait --for=condition=available deployment/camel-k-operator -n camel --timeout=60s
7676
7777
- name: Install OTLP Collector
7878
uses: ./.github/actions/install-otlp-collector

‎.github/workflows/upgrade.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ jobs:
7171
- name: Infra setting
7272
uses: ./.github/actions/infra-setting
7373

74-
- name: Create upgrade test namespace
74+
- name: Create upgrade test namespaces
7575
shell: bash
7676
run: |
7777
kubectl create ns camel-k
78+
kubectl create ns camel
7879
7980
- name: Registry setting
8081
uses: ./.github/actions/registry-setting

0 commit comments

Comments
 (0)