kubemanifests.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. name: "Kubernetes manifests"
  2. on:
  3. pull_request:
  4. paths:
  5. - 'cmd/k8s-operator/**'
  6. - 'k8s-operator/**'
  7. - '.github/workflows/kubemanifests.yaml'
  8. # Cancel workflow run if there is a newer push to the same PR for which it is
  9. # running
  10. concurrency:
  11. group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
  12. cancel-in-progress: true
  13. jobs:
  14. testchart:
  15. runs-on: [ ubuntu-latest ]
  16. steps:
  17. - name: Check out code
  18. uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
  19. - name: Build and lint Helm chart
  20. run: |
  21. eval `./tool/go run ./cmd/mkversion`
  22. ./tool/helm package --app-version="${VERSION_SHORT}" --version=${VERSION_SHORT} './cmd/k8s-operator/deploy/chart'
  23. ./tool/helm lint "tailscale-operator-${VERSION_SHORT}.tgz"
  24. - name: Verify that static manifests are up to date
  25. run: |
  26. make kube-generate-all
  27. echo
  28. echo
  29. git diff --name-only --exit-code || (echo "Generated files for Tailscale Kubernetes operator are out of date. Please run 'make kube-generate-all' and commit the diff."; exit 1)