Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade default tools version #44

Merged
merged 1 commit into from
Feb 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ A GitHub Action that setup Kubernetes tools (kubectl, kustomize, helm, kubeconfo
|:--:|:--:|:--:|:--|
|`fail-fast`|`false`|`true`| the action immediately fails when it fails to download (ie. due to a bad version) |
|`setup-tools`|`false`|`""`|List of tool name to setup. By default, the action download and setup all supported Kubernetes tools. By specifying `setup-tools` you can choose which tools the action setup. Supported separator is `return` in multi-line string. Supported tools are `kubectl`, `kustomize`, `helm`, `helmv3`, `kubeval`, `conftest`, `yq`, `rancher`, `tilt`, `skaffold`, `kube-score`|
|`kubectl`|`false`|`1.20.2`| kubectl version. kubectl vesion can be found [here](https://github.com/kubernetes/kubernetes/releases)|
|`kustomize`|`false`|`4.5.7`| kustomize version. kustomize vesion can be found [here](https://github.com/kubernetes-sigs/kustomize/releases)|
|`helm`|`false`|`3.6.3`| helm v3 version. helm vesion can be found [here](https://github.com/helm/helm/releases)|
|`kubectl`|`false`|`1.24.10`| kubectl version. kubectl vesion can be found [here](https://github.com/kubernetes/kubernetes/releases)|
|`kustomize`|`false`|`5.0.0`| kustomize version. kustomize vesion can be found [here](https://github.com/kubernetes-sigs/kustomize/releases)|
|`helm`|`false`|`3.11.1`| helm v3 version. helm vesion can be found [here](https://github.com/helm/helm/releases)|
|`helmv2`|`false`|`2.17.0`| helm v2 version. helm v3 vesion can be found [here](https://github.com/helm/helm/releases)|
|`kubeval`|`false`|`0.16.1`| kubeval version (must be **0.16.1+**). kubeval vesion can be found [here](https://github.com/instrumenta/kubeval/releases).<br> NOTE: this parameter is deprecating as `kubeval` is no longer maintained. A good replacement is [kubeconform](https://github.com/yannh/kubeconform). See also [this](https://github.com/instrumenta/kubeval) for more details.|
|`kubeconform`|`false`|`0.5.0`| kubeconform version. kubeconform vesion can be found [here](https://github.com/yannh/kubeconform/releases)|
|`conftest`|`false`|`0.19.0`| conftest version. conftest vesion can be found [here](https://github.com/open-policy-agent/conftest/releases)|
|`yq`|`false`|`4.7.1`| yq version. yq vesion can be found [here](https://github.com/mikefarah/yq/releases/)|
|`rancher`|`false`|`2.4.10`| Rancher CLI version. Rancher CLI vesion can be found [here](https://github.com/rancher/cli/releases)|
|`tilt`|`false`|`0.18.11`| Tilt version. Tilt vesion can be found [here](https://github.com/tilt-dev/tilt/releases)|
|`skaffold`|`false`|`1.20.0`| Skaffold version. Skaffold vesion can be found [here](https://github.com/GoogleContainerTools/skaffold/releases)|
|`kube-score`|`false`|`1.10.1`| kube-score version. kube-score vesion can be found [here](https://github.com/zegl/kube-score/releases)|
|`conftest`|`false`|`0.39.0`| conftest version. conftest vesion can be found [here](https://github.com/open-policy-agent/conftest/releases)|
|`yq`|`false`|`4.30.7`| yq version. yq vesion can be found [here](https://github.com/mikefarah/yq/releases/)|
|`rancher`|`false`|`2.7.0`| Rancher CLI version. Rancher CLI vesion can be found [here](https://github.com/rancher/cli/releases)|
|`tilt`|`false`|`0.31.2`| Tilt version. Tilt vesion can be found [here](https://github.com/tilt-dev/tilt/releases)|
|`skaffold`|`false`|`2.1.0`| Skaffold version. Skaffold vesion can be found [here](https://github.com/GoogleContainerTools/skaffold/releases)|
|`kube-score`|`false`|`1.16.1`| kube-score version. kube-score vesion can be found [here](https://github.com/zegl/kube-score/releases)|

> - Supported Environments: Linux
> - From v0.7.0, the action supports tool version 'v' prefix. Prior to v0.7.0, the action only accept the tool version without 'v' prefix but from v0.7.0 the action automatically add/remove the prefix as necessary
Expand Down Expand Up @@ -147,5 +147,19 @@ git commit -a -m "prod dependencies"
git push origin releases/v0.9.2
```

## References

- https://kubernetes.io/releases/
- https://github.com/kubernetes-sigs/kustomize/releases
- https://github.com/helm/helm/releases
- https://helm.sh/docs/topics/version_skew/
- https://github.com/instrumenta/kubeval/releases
- https://github.com/open-policy-agent/conftest/releases
- https://github.com/mikefarah/yq/releases
- https://github.com/rancher/cli/releases
- https://github.com/tilt-dev/tilt/releases
- https://github.com/GoogleContainerTools/skaffold/releases
- https://github.com/zegl/kube-score/releases

## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/yokawasa/action-setup-kube-tools
18 changes: 9 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ inputs:
description: 'List of tool name to setup. By default, the action download and setup all supported Kubernetes tools. By specifying "setup-tools" you can choose which tools the action setup. Supported separator is return in multi-line string. Supported tools are "kubectl", "kustomize", "helm", "helmv3", "kubeval", "conftest", "yq", "rancher", "tilt", "skaffold", "kube-score"'
kubectl:
required: false
default: '1.20.2'
default: '1.24.10'
description: 'kubectl version'
kustomize:
required: false
default: '4.5.7'
default: '5.0.0'
description: 'kustomize version'
helm:
required: false
default: '3.6.3'
default: '3.11.1'
description: 'helm v3 version'
helmv2:
required: false
Expand All @@ -36,27 +36,27 @@ inputs:
description: 'kubeconform version'
conftest:
required: false
default: '0.19.0'
default: '0.39.0'
description: 'conftest version'
yq:
required: false
default: '4.7.1'
default: '4.30.7'
description: 'yq version'
rancher:
required: false
default: '2.4.10'
default: '2.7.0'
description: 'rancher cli version'
tilt:
required: false
default: '0.18.11'
default: '0.31.2'
description: 'tilt version'
skaffold:
required: false
default: '1.20.0'
default: '2.1.0'
description: 'skaffold version'
kube-score:
required: false
default: '1.10.1'
default: '1.16.1'
description: 'kube-score version'
outputs:
kubectl-path:
Expand Down
51 changes: 34 additions & 17 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,57 @@

"use strict";

var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
const os = __importStar(__nccwpck_require__(2037));
const path = __importStar(__nccwpck_require__(1017));
const util = __importStar(__nccwpck_require__(3837));
const fs = __importStar(__nccwpck_require__(7147));
const toolCache = __importStar(__nccwpck_require__(7784));
const core = __importStar(__nccwpck_require__(2186));
const defaultKubectlVersion = '1.20.2';
const defaultKustomizeVersion = '4.5.7';
const defaultHelmVersion = '3.6.3';
const defaultKubectlVersion = '1.24.10';
const defaultKustomizeVersion = '5.0.0';
const defaultHelmVersion = '3.11.1';
const defaultHelmv2Version = '2.17.0';
const defaultKubevalVersion = '0.16.1';
const defaultKubeconformVersion = '0.5.0';
const defaultConftestVersion = '0.19.0';
const defaultYqVersion = '4.7.1';
const defaultRancherVersion = '2.4.10';
const defaultTiltVersion = '0.18.11';
const defaultSkaffoldVersion = '1.20.0';
const defaultKubeScoreVersion = '1.10.1';
const defaultConftestVersion = '0.39.0';
const defaultYqVersion = '4.30.7';
const defaultRancherVersion = '2.7.0';
const defaultTiltVersion = '0.31.2';
const defaultSkaffoldVersion = '2.1.0';
const defaultKubeScoreVersion = '1.16.1';
const Tools = [
{
name: 'kubectl',
Expand Down
18 changes: 9 additions & 9 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ import * as fs from 'fs'
import * as toolCache from '@actions/tool-cache'
import * as core from '@actions/core'

const defaultKubectlVersion = '1.20.2'
const defaultKustomizeVersion = '4.5.7'
const defaultHelmVersion = '3.6.3'
const defaultKubectlVersion = '1.24.10'
const defaultKustomizeVersion = '5.0.0'
const defaultHelmVersion = '3.11.1'
const defaultHelmv2Version = '2.17.0'
const defaultKubevalVersion = '0.16.1'
const defaultKubeconformVersion = '0.5.0'
const defaultConftestVersion = '0.19.0'
const defaultYqVersion = '4.7.1'
const defaultRancherVersion = '2.4.10'
const defaultTiltVersion = '0.18.11'
const defaultSkaffoldVersion = '1.20.0'
const defaultKubeScoreVersion = '1.10.1'
const defaultConftestVersion = '0.39.0'
const defaultYqVersion = '4.30.7'
const defaultRancherVersion = '2.7.0'
const defaultTiltVersion = '0.31.2'
const defaultSkaffoldVersion = '2.1.0'
const defaultKubeScoreVersion = '1.16.1'

interface Tool {
name: string
Expand Down