mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 10:19:54 +00:00
update cluster creation action in regression-test.yaml (#1932)
This commit is contained in:
23
.github/workflows/regression-test.yaml
vendored
23
.github/workflows/regression-test.yaml
vendored
@@ -29,19 +29,10 @@ jobs:
|
|||||||
run: mkdir -p test/output
|
run: mkdir -p test/output
|
||||||
|
|
||||||
- name: Create k3s cluster
|
- name: Create k3s cluster
|
||||||
id: create-cluster
|
id: k3s
|
||||||
uses: replicatedhq/compatibility-actions/create-cluster@v1
|
uses: replicatedhq/action-k3s@main
|
||||||
with:
|
with:
|
||||||
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
|
version: v1.31.2-k3s1
|
||||||
kubernetes-distribution: k3s
|
|
||||||
cluster-name: regression-${{ github.run_id }}-${{ github.run_attempt }}
|
|
||||||
ttl: 25m
|
|
||||||
timeout-minutes: 5
|
|
||||||
|
|
||||||
- name: Configure kubeconfig
|
|
||||||
run: |
|
|
||||||
echo "${{ steps.create-cluster.outputs.cluster-kubeconfig }}" > $GITHUB_WORKSPACE/kubeconfig.yaml
|
|
||||||
echo "KUBECONFIG=$GITHUB_WORKSPACE/kubeconfig.yaml" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Verify cluster access
|
- name: Verify cluster access
|
||||||
run: kubectl get nodes -o wide
|
run: kubectl get nodes -o wide
|
||||||
@@ -284,10 +275,4 @@ jobs:
|
|||||||
git push
|
git push
|
||||||
|
|
||||||
# 6. CLEANUP
|
# 6. CLEANUP
|
||||||
- name: Remove cluster
|
# Note: k3s cluster cleanup is handled automatically by the action
|
||||||
if: always()
|
|
||||||
uses: replicatedhq/compatibility-actions/remove-cluster@v1
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
|
|
||||||
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user