File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ RUN apk update && apk add curl
44
55RUN curl -o kubectl1.15 -L https://storage.googleapis.com/kubernetes-release/release/v1.15.0/bin/linux/amd64/kubectl
66RUN curl -o kubectl1.14 -L https://storage.googleapis.com/kubernetes-release/release/v1.14.0/bin/linux/amd64/kubectl
7+ RUN curl -o kubectl1.13 -L https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/linux/amd64/kubectl
78RUN curl -o kubectl1.12 -L https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl
89RUN curl -o kubectl1.10 -L https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/linux/amd64/kubectl
910RUN curl -o kubectl1.6 -L https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl
@@ -15,14 +16,15 @@ RUN apk add --update bash
1516# copy all versions of kubectl to switch between them later.
1617COPY --from=builder kubectl1.15 /usr/local/bin/
1718COPY --from=builder kubectl1.14 /usr/local/bin/
19+ COPY --from=builder kubectl1.13 /usr/local/bin/
1820COPY --from=builder kubectl1.12 /usr/local/bin/
1921COPY --from=builder kubectl1.10 /usr/local/bin/
2022COPY --from=builder kubectl1.6 /usr/local/bin/
2123
2224# Set Default
2325COPY --from=builder kubectl1.14 /usr/local/bin/kubectl
2426
25- RUN chmod +x /usr/local/bin/kubectl /usr/local/bin/kubectl1.6 /usr/local/bin/kubectl1.10 /usr/local/bin/kubectl1.12 /usr/local/bin/kubectl1.14 /usr/local/bin/kubectl1.15
27+ RUN chmod +x /usr/local/bin/kubectl /usr/local/bin/kubectl1.6 /usr/local/bin/kubectl1.10 /usr/local/bin/kubectl1.12 /usr/local/bin/kubectl1.13 /usr/local/bin/kubectl1. 14 /usr/local/bin/kubectl1.15
2628
2729WORKDIR /
2830
Original file line number Diff line number Diff line change 7373# Determine appropriate kubectl version
7474if [[ " ${SERVER_VERSION} " -eq " 15" ]]; then
7575 KUBE_CTL=" 15"
76- elif [[ " ${SERVER_VERSION} " -le " 14" && " ${SERVER_VERSION} " -ge " 13 " ]]; then
76+ elif [[ " ${SERVER_VERSION} " -eq " 14" ]]; then
7777 KUBE_CTL=" 14"
78+ elif [[ " ${SERVER_VERSION} " -eq " 13" ]]; then
79+ KUBE_CTL=" 13"
7880elif [[ " ${SERVER_VERSION} " -le " 12" && " ${SERVER_VERSION} " -ge " 11" ]]; then
7981 KUBE_CTL=" 12"
8082elif [[ " ${SERVER_VERSION} " -le " 10" && " ${SERVER_VERSION} " -ge " 9" ]]; then
You can’t perform that action at this time.
0 commit comments