Skip to content

Commit

Permalink
Add kubectl 1.23 and remove 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
chronicc committed Jan 26, 2022
1 parent 0272ee6 commit 95a372e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2
## Providing different kubectl versions to allow the user to choose
## which to use via environment variables.
##
RUN curl -LO "https://dl.k8s.io/release/v1.19.15/bin/linux/amd64/kubectl" \
&& chmod +x kubectl \
&& mv kubectl /usr/local/bin/kubectl-1.19

RUN curl -LO "https://dl.k8s.io/release/v1.20.11/bin/linux/amd64/kubectl" \
RUN curl -LO "https://dl.k8s.io/release/v1.20.14/bin/linux/amd64/kubectl" \
&& chmod +x kubectl \
&& mv kubectl /usr/local/bin/kubectl-1.20

RUN curl -LO "https://dl.k8s.io/release/v1.21.5/bin/linux/amd64/kubectl" \
RUN curl -LO "https://dl.k8s.io/release/v1.21.8/bin/linux/amd64/kubectl" \
&& chmod +x kubectl \
&& mv kubectl /usr/local/bin/kubectl-1.21

RUN curl -LO "https://dl.k8s.io/release/v1.22.2/bin/linux/amd64/kubectl" \
RUN curl -LO "https://dl.k8s.io/release/v1.22.5/bin/linux/amd64/kubectl" \
&& chmod +x kubectl \
&& mv kubectl /usr/local/bin/kubectl-1.22

RUN curl -LO "https://dl.k8s.io/release/v1.23.2/bin/linux/amd64/kubectl" \
&& chmod +x kubectl \
&& mv kubectl /usr/local/bin/kubectl-1.23

ENV KUBECTL_VERSION=1.22

COPY docker-entrypoint.sh /usr/local/bin/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ On default, the latest available kubectl version is used when running `kubectl`.

Currently available versions are

* `KUBECTL_VERSION=1.19`
* `KUBECTL_VERSION=1.20`
* `KUBECTL_VERSION=1.21`
* `KUBECTL_VERSION=1.22` (default)
* `KUBECTL_VERSION=1.23`

#### Kubernetes Example

Expand Down

0 comments on commit 95a372e

Please sign in to comment.