Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
updates for ciprod02232021 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ganga1980 committed Mar 16, 2021
1 parent c2b1548 commit 49efb3a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions pkg/api/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ func (cs *ContainerService) setAddonsConfig(isUpgrade bool) {
kubernetesImageBase = o.KubernetesConfig.KubernetesImageBase
}
k8sComponents := GetK8sComponentsByVersionMap(o.KubernetesConfig)[o.OrchestratorVersion]
omsagentImage := "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod01112021"
omsagentWinImage := "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-ciprod01112021"
omsagentImage := "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod02232021"
omsagentWinImage := "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-ciprod02232021"
var workspaceDomain string
if cs.Properties.IsCustomCloudProfile() {
dependenciesLocation := string(cs.Properties.CustomCloudProfile.DependenciesLocation)
workspaceDomain = helpers.GetLogAnalyticsWorkspaceDomain(dependenciesLocation)
if strings.EqualFold(dependenciesLocation, "china") {
omsagentImage = "mcr.azk8s.cn/azuremonitor/containerinsights/ciprod:ciprod01112021"
omsagentWinImage = "mcr.azk8s.cn/azuremonitor/containerinsights/ciprod:win-ciprod01112021"
omsagentImage = "mcr.azk8s.cn/azuremonitor/containerinsights/ciprod:ciprod02232021"
omsagentWinImage = "mcr.azk8s.cn/azuremonitor/containerinsights/ciprod:win-ciprod02232021"
}
} else {
workspaceDomain = helpers.GetLogAnalyticsWorkspaceDomain(cloudSpecConfig.CloudName)
if strings.EqualFold(cloudSpecConfig.CloudName, "AzureChinaCloud") {
omsagentImage = "mcr.azk8s.cn/azuremonitor/containerinsights/ciprod:ciprod01112021"
omsagentWinImage = "mcr.azk8s.cn/azuremonitor/containerinsights/ciprod:win-ciprod01112021"
omsagentImage = "mcr.azk8s.cn/azuremonitor/containerinsights/ciprod:ciprod02232021"
omsagentWinImage = "mcr.azk8s.cn/azuremonitor/containerinsights/ciprod:win-ciprod02232021"
}
}
workspaceDomain = base64.StdEncoding.EncodeToString([]byte(workspaceDomain))
Expand Down Expand Up @@ -230,7 +230,7 @@ func (cs *ContainerService) setAddonsConfig(isUpgrade bool) {
Enabled: to.BoolPtr(DefaultContainerMonitoringAddonEnabled && !cs.Properties.IsAzureStackCloud()),
Config: map[string]string{
"omsAgentVersion": "1.10.0.1",
"dockerProviderVersion": "12.0.0-0",
"dockerProviderVersion": "13.0.0-0",
"schema-versions": "v1",
"clusterName": clusterDNSPrefix,
"workspaceDomain": workspaceDomain,
Expand Down
8 changes: 4 additions & 4 deletions pkg/api/addons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ func TestSetAddonsConfig(t *testing.T) {
Enabled: to.BoolPtr(true),
Config: map[string]string{
"omsAgentVersion": "1.10.0.1",
"dockerProviderVersion": "12.0.0-0",
"dockerProviderVersion": "13.0.0-0",
"schema-versions": "v1",
"clusterName": "aks-engine-cluster",
"workspaceDomain": "b3BpbnNpZ2h0cy5henVyZS5jb20=",
Expand All @@ -1483,21 +1483,21 @@ func TestSetAddonsConfig(t *testing.T) {
MemoryRequests: "225Mi",
CPULimits: "500m",
MemoryLimits: "600Mi",
Image: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod01112021",
Image: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod02232021",
},
{
Name: "omsagent-rs",
CPURequests: "150m",
MemoryRequests: "250Mi",
CPULimits: "1",
MemoryLimits: "1Gi",
Image: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod01112021",
Image: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod02232021",
},
{
Name: "omsagent-win",
CPULimits: "200m",
MemoryLimits: "600Mi",
Image: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-ciprod01112021",
Image: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-ciprod02232021",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func TestAssignDefaultAddonImages(t *testing.T) {
common.DashboardAddonName: k8sComponents[common.DashboardAddonName],
common.MetricsServerAddonName: specConfig.MCRKubernetesImageBase + k8sComponents[common.MetricsServerAddonName],
common.NVIDIADevicePluginAddonName: specConfig.NVIDIAImageBase + k8sComponents[common.NVIDIADevicePluginAddonName],
common.ContainerMonitoringAddonName: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod01112021",
common.ContainerMonitoringAddonName: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod02232021",
common.IPMASQAgentAddonName: specConfig.MCRKubernetesImageBase + k8sComponents[common.IPMASQAgentAddonName],
common.AzureCNINetworkMonitorAddonName: specConfig.AzureCNIImageBase + k8sComponents[common.AzureCNINetworkMonitorAddonName],
common.CalicoAddonName: specConfig.CalicoImageBase + k8sComponents[common.CalicoTyphaComponentName],
Expand Down
6 changes: 3 additions & 3 deletions pkg/engine/testdata/key-vault-certs/kubernetes.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,23 +131,23 @@
"containers": [
{
"name": "omsagent",
"image": "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod01112021",
"image": "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod02232021",
"cpuRequests": "150m",
"memoryRequests": "250Mi",
"cpuLimits": "1",
"memoryLimits": "750Mi"
},
{
"name": "omsagentWin",
"image": "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-ciprod01112021",
"image": "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-ciprod02232021",
"cpuRequests": "150m",
"memoryRequests": "250Mi",
"cpuLimits": "1",
"memoryLimits": "750Mi"
}
],
"config": {
"dockerProviderVersion": "12.0.0-0",
"dockerProviderVersion": "13.0.0-0",
"omsAgentVersion": "1.10.0.1"
}
},
Expand Down

0 comments on commit 49efb3a

Please sign in to comment.