Skip to content

Commit

Permalink
test: change default windows tests to use ltsc2022 image
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Jul 22, 2024
1 parent e491274 commit 1156f9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deploy/example/windows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
"kubernetes.io/os": windows
containers:
- name: busybox
image: mcr.microsoft.com/windows/servercore:ltsc2019
image: mcr.microsoft.com/windows/servercore:ltsc2022
command:
- "powershell.exe"
- "-Command"
Expand Down
2 changes: 1 addition & 1 deletion deploy/example/windows/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
"kubernetes.io/os": windows
containers:
- name: statefulset-azurefile
image: mcr.microsoft.com/windows/servercore:ltsc2019
image: mcr.microsoft.com/windows/servercore:ltsc2022
command:
- "powershell.exe"
- "-Command"
Expand Down
8 changes: 4 additions & 4 deletions hack/verify-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [[ "$#" -eq 0 ]]; then
exit 1
fi

echo "begin to create deployment examples ..."
echo "begin to create deployment examples with parameter ", $1

kubectl apply -f deploy/example/storageclass-azurefile-csi.yaml

Expand All @@ -47,9 +47,9 @@ if [[ "$1" == "linux" ]]; then
)
fi

if [[ "$1" == "windows-2022" ]]; then
sed -i 's/ltsc2019/ltsc2022/g' deploy/example/windows/deployment.yaml
sed -i 's/ltsc2019/ltsc2022/g' deploy/example/windows/statefulset.yaml
if ! [[ "$1" == "*windows-2022*" ]]; then
sed -i 's/ltsc2022/ltsc2019/g' deploy/example/windows/statefulset.yaml
sed -i 's/ltsc2022/ltsc2019/g' deploy/example/windows/deployment.yaml
fi

if [[ "$1" == *"windows"* ]]; then
Expand Down

0 comments on commit 1156f9f

Please sign in to comment.