Skip to content

Commit

Permalink
Support clusters without windows nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
feiskyer committed Dec 29, 2017
1 parent d7d8601 commit e2da770
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cluster-autoscaler/cloudprovider/azure/azure_agent_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ func (as *AgentPool) preprocessParameters() {
as.parameters["kubeConfigPrivateKey"] = map[string]string{"value": as.config.KubeConfigPrivateKey}
as.parameters["servicePrincipalClientId"] = map[string]string{"value": as.config.AADClientID}
as.parameters["servicePrincipalClientSecret"] = map[string]string{"value": as.config.AADClientSecret}
as.parameters["windowsAdminPassword"] = map[string]string{"value": as.config.WindowsAdminPassword}
if as.config.WindowsAdminPassword != "" {
as.parameters["windowsAdminPassword"] = map[string]string{"value": as.config.WindowsAdminPassword}
}
}

// MinSize returns minimum size of the node group.
Expand Down

0 comments on commit e2da770

Please sign in to comment.