Skip to content

Commit d692acf

Browse files
authored
change kubectl download url, update README
1 parent 5fe3850 commit d692acf

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Specific versions for the commands can be setup by adding inputs parameters like
5151
runs-on: ubuntu-latest
5252
steps:
5353
- uses: actions/checkout@v2
54-
- uses: yokawasa/action-setup-kube-tools@v0.11.1
54+
- uses: yokawasa/action-setup-kube-tools@v0.12.0
5555
with:
5656
kubectl: '1.25'
5757
kustomize: '5.0.0'
@@ -82,7 +82,7 @@ Default versions for the commands will be setup if you don't give any inputs lik
8282
runs-on: ubuntu-latest
8383
steps:
8484
- uses: actions/checkout@v2
85-
- uses: yokawasa/action-setup-kube-tools@v0.11.1
85+
- uses: yokawasa/action-setup-kube-tools@v0.12.0
8686
- run: |
8787
kubectl version --client
8888
kustomize version
@@ -103,7 +103,7 @@ By specifying setup-tools you can choose which tools the action setup. Supported
103103
runs-on: ubuntu-latest
104104
steps:
105105
- uses: actions/checkout@v2
106-
- uses: yokawasa/action-setup-kube-tools@v0.11.1
106+
- uses: yokawasa/action-setup-kube-tools@v0.12.0
107107
with:
108108
setup-tools: |
109109
kubectl
@@ -127,7 +127,7 @@ By specifying arch-type you can choose the processor architecture type of the to
127127
test:
128128
steps:
129129
- uses: actions/checkout@v4
130-
- uses: yokawasa/action-setup-kube-tools@v0.11.1
130+
- uses: yokawasa/action-setup-kube-tools@v0.12.0
131131
with:
132132
arch-type: 'arm64'
133133
setup-tools: |
@@ -163,7 +163,7 @@ Finally push the results
163163
```
164164
git add dist
165165
git commit -a -m "prod dependencies"
166-
git push origin releases/v0.11.1
166+
git push origin releases/v0.12.0
167167
```
168168
169169
## References

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function getDownloadURL(commandName, version, archType) {
144144
switch (commandName) {
145145
case 'kubectl':
146146
urlFormat =
147-
'https://storage.googleapis.com/kubernetes-release/release/v{ver}/bin/linux/{arch}/kubectl';
147+
'https://dl.k8s.io/release/v{ver}/bin/linux/{arch}/kubectl';
148148
break;
149149
case 'kustomize':
150150
urlFormat =

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "action-setup-kube-tools",
3-
"version": "0.11.0",
3+
"version": "0.12.0",
44
"private": true,
55
"description": "Github Action that install Kubernetes tools (kubectl, kustomize, helm, kubeconform, conftest, yq, etc.) and cache them on the runner",
66
"main": "lib/main.js",

src/main.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ function getDownloadURL(
128128
let urlFormat = ''
129129
switch (commandName) {
130130
case 'kubectl':
131-
urlFormat =
132-
'https://storage.googleapis.com/kubernetes-release/release/v{ver}/bin/linux/{arch}/kubectl'
131+
urlFormat = 'https://dl.k8s.io/release/v{ver}/bin/linux/{arch}/kubectl'
133132
break
134133
case 'kustomize':
135134
urlFormat =

0 commit comments

Comments
 (0)