-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Wait for operator pod to start
Stabilize the CI workflow and avoid errors due to tests running before operator has completely started
- Loading branch information
1 parent
73bd89b
commit 607beb0
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ jobs: | |
YAKS_VERSION: 0.15.1 | ||
YAKS_IMAGE_NAME: "docker.io/citrusframework/yaks" | ||
YAKS_RUN_OPTIONS: "--timeout=15m" | ||
KUBECTL_WAIT_TIMEOUT: "180s" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
@@ -85,13 +86,19 @@ jobs: | |
export KAMEL_INSTALL_REGISTRY_INSECURE=true | ||
kamel install | ||
# Wait for operator to start | ||
kubectl wait pod -l app=camel-k --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} | ||
- name: YAKS tools | ||
uses: citrusframework/[email protected] | ||
with: | ||
version: v${{ env.YAKS_VERSION }} | ||
- name: Install YAKS | ||
run: | | ||
yaks install --operator-image $YAKS_IMAGE_NAME:$YAKS_VERSION | ||
# Wait for operator to start | ||
kubectl wait pod -l app=yaks --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} | ||
- name: YAKS Tests | ||
run: | | ||
# Then run integration tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ jobs: | |
YAKS_VERSION: 0.15.1 | ||
YAKS_IMAGE_NAME: "docker.io/citrusframework/yaks" | ||
YAKS_RUN_OPTIONS: "--timeout=15m" | ||
KUBECTL_WAIT_TIMEOUT: "180s" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
@@ -86,13 +87,19 @@ jobs: | |
export KAMEL_INSTALL_REGISTRY_INSECURE=true | ||
kamel install --maven-repository=https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@snapshots | ||
# Wait for operator to start | ||
kubectl wait pod -l app=camel-k --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} | ||
- name: YAKS tools | ||
uses: citrusframework/[email protected] | ||
with: | ||
version: v${{ env.YAKS_VERSION }} | ||
- name: Install YAKS | ||
run: | | ||
yaks install --operator-image $YAKS_IMAGE_NAME:$YAKS_VERSION | ||
# Wait for operator to start | ||
kubectl wait pod -l app=yaks --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} | ||
- name: YAKS Tests | ||
run: | | ||
# Then run integration tests | ||
|
@@ -118,6 +125,7 @@ jobs: | |
YAKS_VERSION: 0.15.1 | ||
YAKS_IMAGE_NAME: "docker.io/citrusframework/yaks" | ||
YAKS_RUN_OPTIONS: "--timeout=15m" | ||
KUBECTL_WAIT_TIMEOUT: "180s" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
@@ -170,13 +178,19 @@ jobs: | |
export KAMEL_INSTALL_REGISTRY_INSECURE=true | ||
kamel install | ||
# Wait for operator to start | ||
kubectl wait pod -l app=camel-k --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} | ||
- name: YAKS tools | ||
uses: citrusframework/[email protected] | ||
with: | ||
version: v${{ env.YAKS_VERSION }} | ||
- name: Install YAKS | ||
run: | | ||
yaks install --operator-image $YAKS_IMAGE_NAME:$YAKS_VERSION | ||
# Wait for operator to start | ||
kubectl wait pod -l app=yaks --for condition=Ready --timeout=${{ env.KUBECTL_WAIT_TIMEOUT }} | ||
- name: YAKS Tests | ||
run: | | ||
# Then run integration tests | ||
|