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
4
4
5
5
RUN curl -o kubectl1.15 -L https://storage.googleapis.com/kubernetes-release/release/v1.15.0/bin/linux/amd64/kubectl
6
6
RUN 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
7
8
RUN curl -o kubectl1.12 -L https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl
8
9
RUN curl -o kubectl1.10 -L https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/linux/amd64/kubectl
9
10
RUN 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
15
16
# copy all versions of kubectl to switch between them later.
16
17
COPY --from=builder kubectl1.15 /usr/local/bin/
17
18
COPY --from=builder kubectl1.14 /usr/local/bin/
19
+ COPY --from=builder kubectl1.13 /usr/local/bin/
18
20
COPY --from=builder kubectl1.12 /usr/local/bin/
19
21
COPY --from=builder kubectl1.10 /usr/local/bin/
20
22
COPY --from=builder kubectl1.6 /usr/local/bin/
21
23
22
24
# Set Default
23
25
COPY --from=builder kubectl1.14 /usr/local/bin/kubectl
24
26
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
26
28
27
29
WORKDIR /
28
30
Original file line number Diff line number Diff line change 73
73
# Determine appropriate kubectl version
74
74
if [[ " ${SERVER_VERSION} " -eq " 15" ]]; then
75
75
KUBE_CTL=" 15"
76
- elif [[ " ${SERVER_VERSION} " -le " 14" && " ${SERVER_VERSION} " -ge " 13 " ]]; then
76
+ elif [[ " ${SERVER_VERSION} " -eq " 14" ]]; then
77
77
KUBE_CTL=" 14"
78
+ elif [[ " ${SERVER_VERSION} " -eq " 13" ]]; then
79
+ KUBE_CTL=" 13"
78
80
elif [[ " ${SERVER_VERSION} " -le " 12" && " ${SERVER_VERSION} " -ge " 11" ]]; then
79
81
KUBE_CTL=" 12"
80
82
elif [[ " ${SERVER_VERSION} " -le " 10" && " ${SERVER_VERSION} " -ge " 9" ]]; then
You can’t perform that action at this time.
0 commit comments