Skip to content

Commit cb03872

Browse files
authored
feat!: update kubectl to 1.35 (#90)
* update kubectl to 1.35 * fix typo * bump major version
1 parent 224036c commit cb03872

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
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
33
RUN busybox --install
44
COPY --chown=nonroot --chmod=775 cf-deploy-kubernetes.sh /cf-deploy-kubernetes
55
COPY --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
89
COPY --chown=nonroot --chmod=775 --from=octopusdeploy/dhi-kubectl:1.34-debian13 /usr/local/bin/kubectl /usr/local/bin/kubectl1.34
910
COPY --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

1414
WORKDIR /
1515
USER nonroot

cf-deploy-kubernetes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ else
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;
5656
fi
5757

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 17.0.4
1+
version: 18.0.0

0 commit comments

Comments
 (0)