Skip to content

[WIP] Default to windows-2025 community gallery images #5635

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
4 changes: 2 additions & 2 deletions azure/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const (
// DefaultLinuxGalleryImageName is the default Linux community gallery image definition.
DefaultLinuxGalleryImageName = "capi-ubun2-2404"
// DefaultWindowsGalleryImageName is the default Windows community gallery image definition.
DefaultWindowsGalleryImageName = "capi-win-2019-containerd"
DefaultWindowsGalleryImageName = "capi-win-2025-containerd"
)

const (
Expand All @@ -72,7 +72,7 @@ const (
const (
// DefaultWindowsOsAndVersion is the default Windows Server version to use when
// generating default images for Windows nodes.
DefaultWindowsOsAndVersion = "windows-2019"
DefaultWindowsOsAndVersion = "windows-2025"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion azure/services/virtualmachineimages/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (s *Service) GetDefaultWindowsImage(ctx context.Context, _, k8sVersion, run
if len(match) != 2 {
return nil, errors.Errorf("unsupported osAndVersion %s", osAndVersion)
}
imageName = strings.Replace(imageName, "2019", match[1], 1)
imageName = strings.Replace(imageName, "2025", match[1], 1)
}

// Use the Azure Marketplace for specific older versions, to keep "clusterctl upgrade" from rolling new machines.
Expand Down
2 changes: 1 addition & 1 deletion docs/book/src/developers/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ With the following environment variables defined, you can build a CAPZ cluster f
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `E2E_ARGS` | `-kubetest.use-ci-artifacts` |
| `KUBERNETES_VERSION` | `latest` - extract Kubernetes version from https://dl.k8s.io/ci/latest.txt (main's HEAD)<br>`latest-1.<MINOR>` - extract Kubernetes version from dl.k8s.io/ci/latest-1.<MINOR>.txt (release branch's HEAD) |
| `WINDOWS_SERVER_VERSION` | Optional, can be `windows-2019` (default) or `windows-2022` |
| `WINDOWS_SERVER_VERSION` | Optional, can be `windows-2025` (default) or `windows-2022` |
| `KUBETEST_WINDOWS_CONFIG` | Default is `upstream-windows.yaml`. CAPZ contains various other configuration recipes in the `test/e2e/data/` directory; you may use any of those by referencing their file names as the value of `KUBETEST_WINDOWS_CONFIG` (e.g., `conformance-fast.yaml`), or you may drop in your own config files into `test/e2e/data/` and reference those. |
| `WINDOWS_CONTAINERD_URL` | Optional, can be any url to a `tar.gz` file containing binaries for containerd in the same format as upstream package |

Expand Down
2 changes: 1 addition & 1 deletion templates/test/ci/cluster-template-prow-ci-version.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
marketplace:
publisher: cncf-upstream
offer: capi-windows
sku: ${WINDOWS_SERVER_VERSION:=windows-2019}-containerd-gen1
sku: ${WINDOWS_SERVER_VERSION:=windows-2025}-containerd-gen1
version: "latest"
identity: UserAssigned
userAssignedIdentities:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
marketplace:
publisher: cncf-upstream
offer: capi-windows
sku: ${WINDOWS_SERVER_VERSION:=windows-2019}-containerd-gen1
sku: ${WINDOWS_SERVER_VERSION:=windows-2025}-containerd-gen1
version: latest
identity: UserAssigned
userAssignedIdentities:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion templates/test/dev/cluster-template-custom-builds.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ spec:
marketplace:
publisher: cncf-upstream
offer: capi-windows
sku: ${WINDOWS_SERVER_VERSION:=windows-2019}-containerd-gen1
sku: ${WINDOWS_SERVER_VERSION:=windows-2025}-containerd-gen1
version: latest
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ spec:
marketplace:
publisher: cncf-upstream
offer: capi-windows
sku: ${WINDOWS_SERVER_VERSION:=windows-2019}-containerd-gen1
sku: ${WINDOWS_SERVER_VERSION:=windows-2025}-containerd-gen1
version: latest
Loading