-
Notifications
You must be signed in to change notification settings - Fork 7
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
b6c0a52
commit 6f84a61
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 |
---|---|---|
|
@@ -39,6 +39,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 | ||
|
@@ -87,13 +88,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 |
---|---|---|
|
@@ -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 | ||
|
@@ -81,13 +82,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 | ||
|
@@ -113,6 +120,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 | ||
|
@@ -161,13 +169,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 | ||
|