2023-11-01 16:15:18 +00:00
name : "Kubernetes manifests"
on :
pull_request :
paths :
2024-03-25 19:44:30 +00:00
- 'cmd/k8s-operator/**'
- 'k8s-operator/**'
2023-11-01 16:15:18 +00:00
- '.github/workflows/kubemanifests.yaml'
# Cancel workflow run if there is a newer push to the same PR for which it is
# running
concurrency :
group : ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
cancel-in-progress : true
jobs :
testchart :
runs-on : [ ubuntu-latest ]
steps :
- name : Check out code
2024-09-23 20:52:19 +00:00
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2023-11-01 16:15:18 +00:00
- name : Build and lint Helm chart
run : |
eval `./tool/go run ./cmd/mkversion`
./tool/helm package --app-version="${VERSION_SHORT}" --version=${VERSION_SHORT} './cmd/k8s-operator/deploy/chart'
./tool/helm lint "tailscale-operator-${VERSION_SHORT}.tgz"
2023-12-04 10:18:07 +00:00
- name : Verify that static manifests are up to date
run : |
2023-12-14 13:51:59 +00:00
make kube-generate-all
2023-12-04 10:18:07 +00:00
echo
echo
2023-12-14 13:51:59 +00:00
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)