Skip to content

Commit

Permalink
ci: test against k3s-channel=latest and use k8s-namespace-report
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Jun 12, 2022
1 parent 6903d6d commit a90fb63
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/test_k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,24 @@ jobs:
uses: ./
with:
k3s-version: ""
k3s-channel: ""
k3s-channel: "latest"
helm-version: ""
metrics-enabled: false
traefik-enabled: false
docker-enabled: true

- name: Kubectl
- name: Print kubectl info
run: |
kubectl version
kubectl get deploy,daemonset,pods --all-namespaces
- name: Print docker info
run: |
docker info
docker ps
- name: Verify metrics-server and traefik is installed
run: |
kubectl get --namespace kube-system deploy metrics-server || ret=$?
if [ $ret -eq 0 ]; then
echo "ERROR: metrics-server should be disabled"
Expand All @@ -146,8 +154,19 @@ jobs:
echo "ERROR: traefik should be disabled"
exit 1
fi
docker info
docker ps
# ref: https:/jupyterhub/action-k8s-namespace-report
- name: Kubernetes namespace report
uses: jupyterhub/action-k8s-namespace-report@v1
if: always()
with:
namespace: kube-system
important-workloads: >
ds/calico-node
deploy/calico-kube-controllers
deploy/metrics-server
deploy/traefik
# Provides a single status_all check that can be used in GitHub branch
# protection rules instead of having to list each matrix job
Expand Down

0 comments on commit a90fb63

Please sign in to comment.