Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Output VMSS cloud config settings. #3610

Merged
merged 2 commits into from
Aug 7, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions parts/iaasoutputs.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,13 @@
"primaryAvailabilitySetName": {
"type": "string",
"value": "[variables('primaryAvailabilitySetName')]"
},
"primaryScaleSetName": {
"type": "string",
"value": "[variables('primaryScaleSetName')]"
},
"vmType": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we really dont need this

Copy link
Contributor Author

@JunSun17 JunSun17 Aug 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is originally target to pass the cloud config settings of vmType and primaryScaleSetName to AKS (in the way of exposing it to ARM output). This is the way we used to pass all cloud provider config settings.

I will see if we can build these strings in AKS for its cloud provider config.

"type": "string",
"value": "[variables('vmType')]"
}

4 changes: 2 additions & 2 deletions parts/k8s/kubernetesmastervars.t
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@
"nsgID": "[resourceId('Microsoft.Network/networkSecurityGroups',variables('nsgName'))]",
{{if not AnyAgentUsesVirtualMachineScaleSets}}
"primaryAvailabilitySetName": "[concat('{{ (index .AgentPoolProfiles 0).Name }}-availabilitySet-',variables('nameSuffix'))]",
"primaryScaleSetName": "''",
"primaryScaleSetName": "",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of these changes (from literal '' to empty string)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is set to "''", it will not be an empty string in the output. the output will be ''. We need an empty string as the result.

"vmType": "standard",
{{else}}
"primaryScaleSetName": "[concat(variables('orchestratorName'), '-{{ (index .AgentPoolProfiles 0).Name }}-',variables('nameSuffix'), '-vmss')]",
"primaryAvailabilitySetName": "''",
"primaryAvailabilitySetName": "",
"vmType": "vmss",
{{end}}
{{if not IsHostedMaster }}
Expand Down