Skip to content

Commit

Permalink
Check that the appVersion matches version returned by /api/version
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuderman committed Jul 10, 2024
1 parent 382f839 commit 8d97fa1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,21 @@ jobs:
- name: Print workflow handler log
run: bash -c "kubectl logs -n galaxy $(kubectl -n galaxy get pods | grep -o '[^ ]*galaxy-workflow[^ ]*')"
if: always()
- name: Print service info
run: kubectl get svc -n galaxy
if: always()
- name: Print nginx service info
run: kubectl describe svc -n galaxy galaxy-nginx
if: always()
- name: Check appVersion
if: always()
run: |
appVersion=$(cat galaxy/Chart.yaml | grep ^appVersion: | awk '{print $2}' | tr -d '"')
address=$(kubectl get svc -n galaxy galaxy-nginx -o jsonpath="http://{.spec.clusterIP}:{.spec.ports[0].port}/galaxy/api/version")
echo "Address is $address"
apiVersion=$(curl $address | jq -r '"\(.version_major).\(.version_minor)"')
echo "appVersion: $appVersion"
echo "apiVersion: $apiVersion"
if [ "$appVersion" != "$apiVersion" ]; then
exit 1
fi

0 comments on commit 8d97fa1

Please sign in to comment.