Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: change default windows tests to use ltsc2022 image #2004

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
9 changes: 5 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,10 @@ 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
echo "switch to use ltsc2019 image in example test"
sed -i 's/ltsc2022/ltsc2019/g' deploy/example/windows/deployment.yaml
sed -i 's/ltsc2022/ltsc2019/g' deploy/example/windows/statefulset.yaml
fi

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