<p align="center">
<a href="https://github.com/yokawasa/action-setup-kube-tools/actions"><img alt="action-setup-kube-tools status" src="https://github.com/yokawasa/action-setup-kube-tools/workflows/build-test/badge.svg"></a>
</p>
# action-setup-kube-tools
A GitHub Action that setup Kubernetes tools (kubectl, kustomize, helm, kubeval, conftest, yq, rancher) and cache them on the runner. It is like a typescript version of [stefanprodan/kube-tools](https://github.com/stefanprodan/kube-tools) with no command input param, but as compared with [it](https://github.com/stefanprodan/kube-tools), it's **very fast** as it installs the tools asynchronously.
## Usage
### Inputs
|Parameter|Required|Default Value|Description|
|:--:|:--:|:--:|:--|
|`kubectl`|`false`|`1.18.2`| kubectl version. kubectl vesion can be found [here](https://github.com/kubernetes/kubernetes/releases)|
|`kustomize`|`false`|`3.5.5`| kustomize version. kustomize vesion can be found [here](https://github.com/kubernetes-sigs/kustomize/releases)|
|`helm`|`false`|`2.16.7`| helm version. helm vesion can be found [here](https://github.com/helm/helm/releases)|
|`helmv3`|`false`|`3.2.1`| helm v3 version. helm v3 vesion can be found [here](https://github.com/helm/helm/releases)|
|`kubeval`|`false`|`0.15.0`| kubeval version. kubeval vesion can be found [here](https://github.com/instrumenta/kubeval/releases)|
|`conftest`|`false`|`0.19.0`| conftest version. conftest vesion can be found [here](https://github.com/open-policy-agent/conftest/releases)|
|`rancher`|`false`|`2.4.10`| Rancher CLI version. Rancher CLI vesion can be found [here](https://github.com/rancher/cli/releases)|
> Supported Environments: Linux
### Outputs
|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 |
|`rancher_path`| rancher command path |
### Sample Workflow
Specific versions for the commands can be setup by adding inputs parameters like this:
```yaml
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: yokawasa/action-setup-kube-tools@v0.3.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'
rancher: '2.4.10'
id: setup
- run: |
kubectl version --client
kustomize version
helm version --client
helmv3 version
kubeval --version
conftest --version
yq --version
rancher --version
```
Default versions for the commands will be setup if you don't give any inputs like this:
```yaml
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: yokawasa/action-setup-kube-tools@v0.3.0
id: setup
- run: |
kubectl version --client
kustomize version
helm version --client
helmv3 version
kubeval --version
conftest --version
yq --version
rancher --version
```
## Developing the action
Install the dependencies
```bash
npm install
```
Build the typescript and package it for distribution by running [ncc](https://github.com/zeit/ncc)
```bash
npm run build && npm run pack
```
Finally push the resutls
```
git add dist
git commit -a -m "prod dependencies"
git push origin releases/v0.3.0
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/yokawasa/action-setup-kube-tools
没有合适的资源?快使用搜索试试~ 我知道了~
action-setup-kube-tools:Github操作,可非常快速地安装Kubernetes工具(kubectl,ku...
共15个文件
json:5个
md:2个
yml:2个
需积分: 9 1 下载量 167 浏览量
2021-02-09
21:25:19
上传
评论
收藏 87KB ZIP 举报
温馨提示
动作设置库工具 一个GitHub动作,用于设置Kubernetes工具(kubectl,kustomize,helm,kubeval,conftest,yq,rancher)并将其缓存在运行器上。 它就像没有命令输入参数的的打字稿版本,但是与之相比,异步安装工具非常快。 用法 输入项 参数 需要 默认值 描述 kubectl false 1.18.2 kubectl版本。 可以在找到kubectl vesion kustomize false 3.5.5 kustomize版本。 kustomize vesion可以在找到 helm false 2.16.7 头盔版本。 掌舵版可以在找到 helmv3 false 3.2.1 头盔v3版本。 头盔v3 vesion可以在找到 kubeval false 0.15.0 kubeval版本。 kubeval ve
资源详情
资源评论
资源推荐
收起资源包目录
action-setup-kube-tools-master.zip (15个子文件)
action-setup-kube-tools-master
package.json 1KB
.eslintrc.json 3KB
.github
workflows
test.yml 2KB
.prettierignore 24B
action.yml 1KB
LICENSE 1KB
package-lock.json 137KB
dist
index.js 180KB
src
main.ts 5KB
tsconfig.json 247B
.gitignore 1KB
CHANGELOG.md 481B
README.md 4KB
.eslintignore 24B
.prettierrc.json 225B
共 15 条
- 1
长迦
- 粉丝: 37
- 资源: 4659
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0