add LB Service to ResourceRef docs (#2126) #28
This file contains hidden or 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: Chainsaw | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| - '**.svg' | |
| - '**.drawio' | |
| - '.spelling' | |
| pull_request: | |
| branches: | |
| - master | |
| # The specific activity types are listed here to include "labeled" and "unlabeled" | |
| # (which are not included by default for the "pull_request" trigger). | |
| types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | |
| paths-ignore: | |
| - '**.md' | |
| - '**.svg' | |
| - '**.drawio' | |
| - '.spelling' | |
| permissions: | |
| contents: read | |
| jobs: | |
| skip-check: | |
| runs-on: ubuntu-latest | |
| name: Skip the job? | |
| outputs: | |
| should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 | |
| with: | |
| egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
| - id: skip_check | |
| uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1 | |
| with: | |
| skip_after_successful_duplicate: 'true' | |
| do_not_skip: '["workflow_dispatch", "schedule"]' | |
| chainsaw: | |
| runs-on: ubuntu-24.04 | |
| needs: skip-check | |
| if: ${{ needs.skip-check.outputs.should_skip != 'true' }} && !contains( github.event.pull_request.labels.*.name, 'renovate') | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Chainsaw | |
| uses: kyverno/action-install-chainsaw@6354895e0f99ab23d3e38d85cf5c71b5dc21d727 # v0.2.13 | |
| with: | |
| release: v0.2.12 | |
| - name: Check install | |
| run: chainsaw version | |
| - name: Setup golang | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version-file: ./go.mod | |
| - name: Setup helm | |
| uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1 | |
| with: | |
| version: v3.18.4 | |
| - name: Build artifacts | |
| uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0 | |
| with: | |
| version: v2.12.7 | |
| args: release --clean --skip=publish,validate,sbom,sign --snapshot | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create edgeDNS k3s Cluster | |
| uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 | |
| with: | |
| cluster-name: "edgedns" | |
| args: -c k3d/edge-dns.yaml | |
| - name: Create 1st k3s Cluster | |
| uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 | |
| with: | |
| cluster-name: "test-gslb1" | |
| args: -c k3d/test-gslb1.yaml | |
| - name: Create 2nd k3s Cluster | |
| uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 | |
| with: | |
| cluster-name: "test-gslb2" | |
| args: -c k3d/test-gslb2.yaml | |
| - name: K8GB deployment | |
| run: | | |
| make deploy-test-version list-running-pods | |
| echo "Cluster 1 (eu):" | |
| kubectl get no -owide --context=k3d-test-gslb1 | |
| echo "Cluster 2 (us):" | |
| kubectl get no -owide --context=k3d-test-gslb2 | |
| - name: Run Chainsaw | |
| run: make chainsaw | |
| - name: Print debug info | |
| if: always() | |
| uses: ./.github/actions/print-chainsaw-debug | |
| - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| if: always() | |
| with: | |
| name: chainsaw-logs | |
| path: ${{ github.workspace }}/tmp/chainsaw |