From 92d4cac1314aba1b7efe1c301fc2a3ac70232bf3 Mon Sep 17 00:00:00 2001 From: Pengfei Ni Date: Thu, 18 Jan 2024 11:52:59 +0800 Subject: [PATCH] Fix Windows support for 2019 (#47) Switching Windows container image to mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0 so that all Windows container versions are supported. --- kubectl-node_shell | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kubectl-node_shell b/kubectl-node_shell index 80f7a1e..6c754a2 100755 --- a/kubectl-node_shell +++ b/kubectl-node_shell @@ -97,12 +97,10 @@ os="$($kubectl get node $node -o jsonpath="{.metadata.labels.kubernetes\.io/os}" # Set pod configuration per operating system if [ "$os" = "windows" ]; then - image="${KUBECTL_NODE_SHELL_IMAGE_WINDOWS:-mcr.microsoft.com/powershell}" + image="${KUBECTL_NODE_SHELL_IMAGE_WINDOWS:-mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0}" name="pwsh" pod="${name}-$(env LC_ALL=C tr -dc a-z0-9