File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# DHI source: https://hub.docker.com/repository/docker/octopusdeploy/dhi-debian-base/customizations/8303889275873263714
2- FROM octopusdeploy/dhi-debian-base:trixie_cf-classic-deploy-kubernetes-debian13@sha256:b7736403612d28976e9b706e9674f2ec1e19ff496729eb4ea2073a0187227840 AS prod
2+ FROM octopusdeploy/dhi-debian-base:trixie_cf-classic-deploy-kubernetes-debian13@sha256:3f82944a29b024d6277026ebb16e43186af1a88c9e3e9bba7dc07a661643309d AS prod
33RUN busybox --install
44COPY --chown=nonroot --chmod=775 cf-deploy-kubernetes.sh /cf-deploy-kubernetes
55COPY --chown=nonroot --chmod=775 template.sh /template.sh
66# ⚠️ We support 3 most recent minor versions: https://kubernetes.io/releases/
77# Please update `./cf-deploy-kubernetes.sh` accordingly.
8+ COPY --chown=nonroot --chmod=775 --from=octopusdeploy/dhi-kubectl:1.35-debian13 /usr/local/bin/kubectl /usr/local/bin/kubectl1.35
89COPY --chown=nonroot --chmod=775 --from=octopusdeploy/dhi-kubectl:1.34-debian13 /usr/local/bin/kubectl /usr/local/bin/kubectl1.34
910COPY --chown=nonroot --chmod=775 --from=octopusdeploy/dhi-kubectl:1.33-debian13 /usr/local/bin/kubectl /usr/local/bin/kubectl1.33
10- COPY --chown=nonroot --chmod=775 --from=octopusdeploy/dhi-kubectl:1.32-debian13 /usr/local/bin/kubectl /usr/local/bin/kubectl1.32
1111# ⚠️ Defaults to the latest version. Please update with new versions as needed.
12- RUN ln -s /usr/local/bin/kubectl1.34 /usr/local/bin/kubectl
12+ RUN ln -s /usr/local/bin/kubectl1.35 /usr/local/bin/kubectl
1313
1414WORKDIR /
1515USER nonroot
Original file line number Diff line number Diff line change 4949 # check the cluster version and decide which version of kubectl to use:
5050 SERVER_VERSION=$( kubectl version --context " ${KUBECONTEXT} " | grep -i server | cut -d ' :' -f2 | cut -d ' .' -f2 | sed ' s/[^0-9]*//g' )
5151 echo " Server minor version: $SERVER_VERSION "
52- if (( "$SERVER_VERSION " >= "32 " )) ; then cp -f /usr/local/bin/kubectl1.32 /usr/local/bin/kubectl; fi 2> /dev/null
5352 if (( "$SERVER_VERSION " >= "33 " )) ; then cp -f /usr/local/bin/kubectl1.33 /usr/local/bin/kubectl; fi 2> /dev/null
5453 if (( "$SERVER_VERSION " >= "34 " )) ; then cp -f /usr/local/bin/kubectl1.34 /usr/local/bin/kubectl; fi 2> /dev/null
54+ if (( "$SERVER_VERSION " >= "35 " )) ; then cp -f /usr/local/bin/kubectl1.35 /usr/local/bin/kubectl; fi 2> /dev/null
5555 [ ! -f " ${deployment_file} " ] && echo " Couldn't find $deployment_file file at $( pwd) " && exit 1;
5656fi
5757
Original file line number Diff line number Diff line change 1- version : 17 .0.4
1+ version : 18 .0.0
You can’t perform that action at this time.
0 commit comments