@@ -14,12 +14,8 @@ permissions:
1414 contents : read
1515
1616jobs :
17- e2e-test :
17+ authorize :
1818 runs-on : ubuntu-latest
19- strategy :
20- fail-fast : false
21- matrix :
22- cloud_provider : [azure, coreweave, aws]
2319 steps :
2420 - name : Check authorization
2521 env :
@@ -57,10 +53,19 @@ jobs:
5753 echo "::error::xKS e2e tests required. A maintainer must add the 'run-xks-e2e' label after reviewing the code."
5854 exit 1
5955
56+ e2e-test :
57+ needs : authorize
58+ runs-on : ubuntu-latest
59+ strategy :
60+ fail-fast : false
61+ matrix :
62+ cloud_provider : [azure, coreweave, aws]
63+ steps :
6064 - name : Checkout
6165 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6266 with :
6367 ref : ${{ github.event.pull_request.head.sha || github.sha }}
68+ persist-credentials : false
6469
6570 - name : Setup Helm
6671 uses : azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
@@ -98,3 +103,55 @@ jobs:
98103 echo "=== AWSKubernetesEngine CR ==="
99104 kubectl get awskubernetesengines.infrastructure.opendatahub.io -A -o yaml 2>/dev/null || echo "No AWSKubernetesEngine CRs found"
100105 fi
106+
107+ upgrade-test :
108+ needs : authorize
109+ runs-on : ubuntu-latest
110+ strategy :
111+ fail-fast : false
112+ matrix :
113+ cloud_provider : [azure, coreweave, aws]
114+ steps :
115+ - name : Checkout
116+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
117+ with :
118+ ref : ${{ github.event.pull_request.head.sha || github.sha }}
119+ persist-credentials : false
120+
121+ - name : Setup Helm
122+ uses : azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
123+
124+ - name : Create kind cluster
125+ uses : helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0
126+
127+ - name : Upgrade test
128+ timeout-minutes : 30
129+ env :
130+ RHAI_PULL_SECRET : ${{ secrets.RHAI_PULL_SECRET }}
131+ run : |
132+ set -euo pipefail
133+ PULL_SECRET_FILE="$(mktemp)"
134+ trap 'rm -f "${PULL_SECRET_FILE}"' EXIT
135+ chmod 600 "${PULL_SECRET_FILE}"
136+ printf '%s' "${RHAI_PULL_SECRET}" > "${PULL_SECRET_FILE}"
137+ HELM_REGISTRY_CONFIG="${PULL_SECRET_FILE}" \
138+ make helm-upgrade-verify-xks \
139+ XKS_CLOUD_PROVIDER=${{ matrix.cloud_provider }} \
140+ XKS_PULL_SECRET="${PULL_SECRET_FILE}"
141+
142+ - name : Dump custom resources on failure
143+ if : failure()
144+ run : |
145+ echo "=== KServe CR ==="
146+ kubectl get kserves.components.platform.opendatahub.io -A -o yaml 2>/dev/null || echo "No KServe CRs found"
147+ echo ""
148+ if [ "${{ matrix.cloud_provider }}" = "azure" ]; then
149+ echo "=== AzureKubernetesEngine CR ==="
150+ kubectl get azurekubernetesengines.infrastructure.opendatahub.io -A -o yaml 2>/dev/null || echo "No AzureKubernetesEngine CRs found"
151+ elif [ "${{ matrix.cloud_provider }}" = "coreweave" ]; then
152+ echo "=== CoreWeaveKubernetesEngine CR ==="
153+ kubectl get coreweavekubernetesengines.infrastructure.opendatahub.io -A -o yaml 2>/dev/null || echo "No CoreWeaveKubernetesEngine CRs found"
154+ elif [ "${{ matrix.cloud_provider }}" = "aws" ]; then
155+ echo "=== AWSKubernetesEngine CR ==="
156+ kubectl get awskubernetesengines.infrastructure.opendatahub.io -A -o yaml 2>/dev/null || echo "No AWSKubernetesEngine CRs found"
157+ fi
0 commit comments