Skip to content

Commit

Permalink
Merge pull request #1230 from nader-ziada/1175
Browse files Browse the repository at this point in the history
[backport-release-0.4] Set OsType Linux in ManagedClusterAgentPoolProfileProperties
  • Loading branch information
k8s-ci-robot authored Mar 11, 2021
2 parents ebc75ff + 1411378 commit 091f469
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloud/services/agentpools/agentpools.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func (s *Service) Reconcile(ctx context.Context, spec interface{}) error {
profile := containerservice.AgentPool{
ManagedClusterAgentPoolProfileProperties: &containerservice.ManagedClusterAgentPoolProfileProperties{
VMSize: containerservice.VMSizeTypes(agentPoolSpec.SKU),
OsType: containerservice.Linux,
OsDiskSizeGB: &agentPoolSpec.OSDiskSizeGB,
Count: &agentPoolSpec.Replicas,
Type: containerservice.VirtualMachineScaleSets,
Expand Down Expand Up @@ -87,6 +88,7 @@ func (s *Service) Reconcile(ctx context.Context, spec interface{}) error {
existingProfile := containerservice.AgentPool{
ManagedClusterAgentPoolProfileProperties: &containerservice.ManagedClusterAgentPoolProfileProperties{
VMSize: existingPool.ManagedClusterAgentPoolProfileProperties.VMSize,
OsType: containerservice.Linux,
OsDiskSizeGB: existingPool.ManagedClusterAgentPoolProfileProperties.OsDiskSizeGB,
Count: existingPool.ManagedClusterAgentPoolProfileProperties.Count,
Type: containerservice.VirtualMachineScaleSets,
Expand Down
1 change: 1 addition & 0 deletions cloud/services/agentpools/agentpools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ func TestReconcile(t *testing.T) {
Count: to.Int32Ptr(2),
OsDiskSizeGB: to.Int32Ptr(100),
VMSize: containerservice.VMSizeTypesStandardD2sV3,
OsType: containerservice.Linux,
OrchestratorVersion: to.StringPtr("9.99.9999"),
ProvisioningState: to.StringPtr("Succeeded"),
VnetSubnetID: to.StringPtr(""),
Expand Down

0 comments on commit 091f469

Please sign in to comment.