diff options
| author | Irbe Krumina <irbe@tailscale.com> | 2023-11-01 16:15:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-01 16:15:18 +0000 |
| commit | c2b87fcb469b3d3c159e62fd3ebbc642da519ac8 (patch) | |
| tree | f7d03b2130aff889b4890cf485b0cc9c83f52ebc /.github | |
| parent | d0f2c0664b394370face42c183ea79982f4a7bd7 (diff) | |
| download | tailscale-c2b87fcb469b3d3c159e62fd3ebbc642da519ac8.tar.xz tailscale-c2b87fcb469b3d3c159e62fd3ebbc642da519ac8.zip | |
cmd/k8s-operator/deploy/chart,.github/workflows: use helm chart API v2 (#10055)
API v1 is compatible with helm v2 and v2 is not.
However, helm v2 (the Tiller deployment mechanism) was deprecated in 2020
and no-one should be using it anymore.
This PR also adds a CI lint test for helm chart
Updates tailscale/tailscale#9222
Signed-off-by: Irbe Krumina <irbe@tailscale.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/kubemanifests.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/kubemanifests.yaml b/.github/workflows/kubemanifests.yaml new file mode 100644 index 000000000..90902ff75 --- /dev/null +++ b/.github/workflows/kubemanifests.yaml @@ -0,0 +1,24 @@ +name: "Kubernetes manifests" +on: + pull_request: + paths: + - './cmd/k8s-operator/' + - '.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 + uses: actions/checkout@v4 + - 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" |
