Skip to content

Commit

Permalink
refactor/docs: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-lloyd authored and k8s-infra-cherrypick-robot committed Jun 3, 2024
1 parent a5c2d24 commit 0285054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ const (
// Microsoft.Compute/galleries/AKSWindows gallery
VmssWindows2019ImageGalleryName = "windows-2019-containerd"
// Windows2019OSBuildVersion is the official build version of Windows Server 2019
// https://learn.microsoft.com/en-us/windows-server/get-started/windows-server-release-info
Windows2019OSBuildVersion = "17763"

// TagsDelimiter is the delimiter of tags
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/azure_vmss.go
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ func isWindows2019(vmss *compute.VirtualMachineScaleSet) bool {
if storageProfile.ImageReference == nil || storageProfile.ImageReference.ID == nil {
return false
}
// example: /subscriptions/109a5e88-712a-48ae-9078-9ca8b3c81345/resourceGroups/AKS-Windows/providers/Microsoft.Compute/galleries/AKSWindows/images/windows-2019-containerd/versions/17763.5820.240516
// example: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AKS-Windows/providers/Microsoft.Compute/galleries/AKSWindows/images/windows-2019-containerd/versions/17763.5820.240516
imageRef := *storageProfile.ImageReference.ID
parts := strings.Split(imageRef, "/")
if len(parts) < 4 {
Expand Down

0 comments on commit 0285054

Please sign in to comment.