Skip to content

Commit

Permalink
chore: update ciprod to 3.1.25, exclude it from windows 23H2 SKU (#5841)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmy-wright authored Feb 16, 2025
1 parent b2e4d20 commit 66cac9d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
16 changes: 15 additions & 1 deletion parts/common/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,21 @@
"multiArchVersionsV2": [
{
"renovateTag": "registry=https://mcr.microsoft.com, name=azuremonitor/containerinsights/ciprod",
"latestVersion": "3.1.24"
"latestVersion": "3.1.25"
}
],
"windowsVersions": [
{
"comment": "ciprod isn't supported on Win23H2 so is excluded as it makes the VHD too large",
"renovateTag": "registry=https://mcr.microsoft.com, name=azuremonitor/containerinsights/ciprod",
"latestVersion": "3.1.25",
"windowsSkuMatch": "2022*"
},
{
"comment": "ciprod isn't supported on Win23H2 so is excluded as it makes the VHD too large",
"renovateTag": "registry=https://mcr.microsoft.com, name=azuremonitor/containerinsights/ciprod",
"latestVersion": "3.1.25",
"windowsSkuMatch": "2019*"
}
]
},
Expand Down
22 changes: 20 additions & 2 deletions vhdbuilder/packer/windows/components_json_helpers.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,27 @@ Describe 'Tests of components.json ' {
$components | Should -Contain "mcr.microsoft.com/oss/kubernetes/pause:3.9"
}

it 'has the right version of ciprod' {
it 'has the right version of ciprod for win 2019' {
$windowsSku = "2019-containerd"
$components = GetComponentsFromComponentsJson $componentsJson

$components | Should -Contain "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-3.1.25"
}


it 'has the right version of ciprod for win 2022' {
$windowsSku = "2022-containerd"
$components = GetComponentsFromComponentsJson $componentsJson

$components | Should -Contain "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-3.1.24"
$components | Should -Contain "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-3.1.25"
}


it 'has the no version of ciprod for win 23H2' {
$windowsSku = "23H2"
$components = GetComponentsFromComponentsJson $componentsJson

$components | Should -Not -Contain "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-3.1.25"
}

It 'has the latest 2 versions of windows scripts and cgmaplugin' {
Expand Down Expand Up @@ -617,6 +634,7 @@ Describe 'Tests of components.json ' {
$packages["c:\akse-cache\win-vnet-cni\"] | Should -Contain "https://acs-mirror.azureedge.net/azure-cni/v1.6.18/binaries/azure-vnet-cni-windows-amd64-v1.6.18.zip"
$packages["c:\akse-cache\win-vnet-cni\"] | Should -Contain "https://acs-mirror.azureedge.net/azure-cni/v1.4.58/binaries/azure-vnet-cni-swift-windows-amd64-v1.4.58.zip"
$packages["c:\akse-cache\win-vnet-cni\"] | Should -Contain "https://acs-mirror.azureedge.net/azure-cni/v1.4.59/binaries/azure-vnet-cni-swift-windows-amd64-v1.4.59.zip"

$packages["c:\akse-cache\win-vnet-cni\"] | Should -Contain "https://acs-mirror.azureedge.net/azure-cni/v1.4.58/binaries/azure-vnet-cni-overlay-windows-amd64-v1.4.58.zip"
$packages["c:\akse-cache\win-vnet-cni\"] | Should -Contain "https://acs-mirror.azureedge.net/azure-cni/v1.4.59/binaries/azure-vnet-cni-overlay-windows-amd64-v1.4.59.zip"
}
Expand Down

0 comments on commit 66cac9d

Please sign in to comment.