Test k8s helm chart #307
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: Test k8s helm chart | |
on: | |
pull_request: | |
workflow_run: | |
workflows: ["Package & Release Charts"] | |
branches: [main] | |
types: | |
- completed | |
jobs: | |
build: | |
name: Test k8s helm chart | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
- uses: engineerd/[email protected] | |
with: | |
version: "v0.12.0" | |
- name: Testing | |
run: | | |
NO_START_KIND=1 CI_ENABLED=1 IMAGE_TAG=edge bash -x ./scripts/setup-kind.sh | |
# make sure we get the example collector in a reasonable time. | |
timeout 10m /bin/bash -c "until echo 'config set fix.worker fixworker.collector=[example]; workflows run collect; kind' | kubectl exec -i deploy/fixinventory-fixcore -- resh --stdin | grep example; do sleep 1; done" | |
- name: Debug info on failure | |
if: ${{ failure() }} | |
run: | | |
echo "Nodes:" | |
kubectl get nodes -o wide | |
echo "Cluster state:" | |
kubectl describe all | |
echo "Core logs:" | |
kubectl logs deploy/fixinventory-fixcore | |
echo "Worker logs:" | |
kubectl logs deploy/fixinventory-fixworker | |
echo "Metrics logs:" | |
kubectl logs deploy/fixinventory-fixmetrics |