A GitHub Action that setup Kubernetes tools (kubectl, kustomize, helm, kubeval, conftest, yq) and cache them on the runner. It is like a typescript version of stefanprodan/kube-tools with no command input param, but it's very fast as it installs the tools asynchronously.
Parameter | Required | Default Value | Description |
---|---|---|---|
kubectl |
false |
1.20.1 |
kubectl version. kubectl vesion can be found here |
kustomize |
false |
3.8.8 |
kustomize version. kustomize vesion can be found here |
helm |
false |
2.16.7 |
helm version. helm vesion can be found here |
helmv3 |
false |
3.5.1 |
helm v3 version. helm v3 vesion can be found here |
kubeval |
false |
0.15.0 |
kubeval version. kubeval vesion can be found here |
conftest |
false |
0.23.0 |
conftest version. conftest vesion can be found here |
Supported Environments: Linux
Parameter | Description |
---|---|
kubectl_path |
kubectl command path |
kustomize_path |
kustomize command path |
helm_path |
helm command path |
helmv3_path |
helm v3 command path |
kubeval_path |
kubeval command path |
conftest_path |
conftest command path |
yq_path |
yq command path |
Specific versions for the commands can be setup by adding inputs parameters like this:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: yokawasa/action-setup-kube-tools@v0.2.0
with:
kubectl: '1.17.1'
kustomize: '3.7.0'
helm: '2.16.7'
helmv3: '3.2.4'
kubeval: '0.14.0'
conftest: '0.18.2'
id: setup
- run: |
kubectl version --client
kustomize version
helm version --client
helmv3 version
kubeval --version
conftest --version
yq --version
Default versions for the commands will be setup if you don't give any inputs like this:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: yokawasa/action-setup-kube-tools@v0.2.0
id: setup
- run: |
kubectl version --client
kustomize version
helm version --client
helmv3 version
kubeval --version
conftest --version
yq --version
Install the dependencies
npm install
Build the typescript and package it for distribution by running ncc
npm run build && npm run pack
Finally push the resutls
git add dist
git commit -a -m "prod dependencies"
git push origin releases/v0.2.0
Bug reports and pull requests are welcome on GitHub at https://github.com/yokawasa/action-setup-kube-tools