Skip to content

Commit

Permalink
change kubectl download url, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalyska authored Oct 4, 2024
1 parent 5fe3850 commit d692acf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Specific versions for the commands can be setup by adding inputs parameters like
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: yokawasa/action-setup-kube-tools@v0.11.1
- uses: yokawasa/action-setup-kube-tools@v0.12.0
with:
kubectl: '1.25'
kustomize: '5.0.0'
Expand Down Expand Up @@ -82,7 +82,7 @@ Default versions for the commands will be setup if you don't give any inputs lik
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: yokawasa/action-setup-kube-tools@v0.11.1
- uses: yokawasa/action-setup-kube-tools@v0.12.0
- run: |
kubectl version --client
kustomize version
Expand All @@ -103,7 +103,7 @@ By specifying setup-tools you can choose which tools the action setup. Supported
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: yokawasa/action-setup-kube-tools@v0.11.1
- uses: yokawasa/action-setup-kube-tools@v0.12.0
with:
setup-tools: |
kubectl
Expand All @@ -127,7 +127,7 @@ By specifying arch-type you can choose the processor architecture type of the to
test:
steps:
- uses: actions/checkout@v4
- uses: yokawasa/action-setup-kube-tools@v0.11.1
- uses: yokawasa/action-setup-kube-tools@v0.12.0
with:
arch-type: 'arm64'
setup-tools: |
Expand Down Expand Up @@ -163,7 +163,7 @@ Finally push the results
```
git add dist
git commit -a -m "prod dependencies"
git push origin releases/v0.11.1
git push origin releases/v0.12.0
```
## References
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function getDownloadURL(commandName, version, archType) {
switch (commandName) {
case 'kubectl':
urlFormat =
'https://storage.googleapis.com/kubernetes-release/release/v{ver}/bin/linux/{arch}/kubectl';
'https://dl.k8s.io/release/v{ver}/bin/linux/{arch}/kubectl';
break;
case 'kustomize':
urlFormat =
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "action-setup-kube-tools",
"version": "0.11.0",
"version": "0.12.0",
"private": true,
"description": "Github Action that install Kubernetes tools (kubectl, kustomize, helm, kubeconform, conftest, yq, etc.) and cache them on the runner",
"main": "lib/main.js",
Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ function getDownloadURL(
let urlFormat = ''
switch (commandName) {
case 'kubectl':
urlFormat =
'https://storage.googleapis.com/kubernetes-release/release/v{ver}/bin/linux/{arch}/kubectl'
urlFormat = 'https://dl.k8s.io/release/v{ver}/bin/linux/{arch}/kubectl'
break
case 'kustomize':
urlFormat =
Expand Down

0 comments on commit d692acf

Please sign in to comment.