Merge pull request #67 from MikeSpreitzer/more-agent-values #126
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
name: E2E tests | |
on: | |
workflow_call: | |
# So we can trigger manually if needed | |
workflow_dispatch: | |
# To confirm any changes to docs build successfully, without deploying them | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
jobs: | |
test-workstatus-operations: | |
name: Test workstatus operations | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: v1.20 | |
cache: true | |
- name: Install kubectl | |
uses: azure/setup-kubectl@v4 | |
id: install | |
- name: Install and setup ko | |
uses: ko-build/[email protected] | |
env: | |
KO_DOCKER_REPO: ko.local | |
- name: Install clusteradm | |
run: | | |
curl -L https://raw.githubusercontent.com/open-cluster-management-io/clusteradm/main/install.sh | bash | |
- name: Run test | |
run: | | |
test/e2e/run.sh | |
- name: Show docker images | |
if: always() | |
run: docker images | |
- name: Show kubeconfig contexts | |
if: always() | |
run: kubectl config get-contexts | |
- name: Show clustermanagementaddons | |
if: always() | |
run: kubectl --context kind-hub get clustermanagementaddons | |
- name: Show managedclusteraddons | |
if: always() | |
run: kubectl --context kind-hub get managedclusteraddons -A | |
- name: Show Deployment objects in hub | |
if: always() | |
run: | | |
kubectl --context kind-hub get deploy -A | |
echo $'\n================================================================\n' | |
kubectl --context kind-hub get deploy -A -o yaml | |
- name: Show Pod objects in the hub | |
if: always() | |
run: kubectl --context kind-hub get pods -A | |
- name: Show controller log | |
if: always() | |
run: kubectl --context kind-hub logs -n open-cluster-management deployment/addon-status-controller | |
- name: Show manifestworks in hub | |
if: always() | |
run: kubectl --context kind-hub get manifestwork -oyaml -A | |
- name: Show agent | |
if: always() | |
run: kubectl --context kind-cluster1 get pods -n open-cluster-management-agent-addon -o yaml | |
- name: Show workloads in cluster1 | |
if: always() | |
run: kubectl --context kind-cluster1 get all -A | |
- name: Show logs of the agent in cluster1 | |
if: always() | |
run: kubectl --context kind-cluster1 -n open-cluster-management-agent-addon logs deployment.apps/status-agent | |
- name: Show workstatus objects in hub | |
if: always() | |
run: kubectl --context kind-hub get workstatus -oyaml -A |