Skip to content
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-2022-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-2022"
)

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, "2022", match[1], 1)
}

// Use the Azure Marketplace for specific older versions, to keep "clusterctl upgrade" from rolling new machines.
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.

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-2022}-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-2022}-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-2022}-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-2022}-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.

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-2022}-containerd-gen1
version: latest
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-2022}-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-2022}-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-2022}-containerd-gen1
version: latest
2 changes: 1 addition & 1 deletion test/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ func resolveKubernetesVersions(config *clusterctl.E2EConfig) {
windowsRequired := testWindows == "true"

if windowsRequired {
windowsVersions := getVersionsInCommunityGallery(ctx, os.Getenv(AzureLocation), capiCommunityGallery, "capi-win-2019-containerd")
windowsVersions := getVersionsInCommunityGallery(ctx, os.Getenv(AzureLocation), capiCommunityGallery, "capi-win-2022-containerd")
for k, v := range linuxVersions {
if _, ok := windowsVersions[k]; ok {
versions = append(versions, v)
Expand Down
Loading