aks-engine icon indicating copy to clipboard operation
aks-engine copied to clipboard

Cannot set boolean property from command line using --set

Open mfabiani-av opened this issue 7 years ago • 1 comments

Describe the bug I'm trying to set orchestratorProfile.kubernetesConfig.privateCluster.enabled=true from the command line using --set but I get the following error:

INFO[0000] new api model file has been generated during merge: /tmp/mergedApiModel298698370 Error: loading API model: error parsing the api model: json: cannot unmarshal string into Go struct field Properties.orchestratorProfile of type bool

Steps To Reproduce Run something like this: aks-engine deploy --api-model ./cfg/autoscaler_jump.json --set orchestratorProfile.kubernetesConfig.privateCluster.enabled=true --location uksouth

Expected behavior Override value in my API config file

AKS Engine version 0.39.1

Kubernetes version

Additional context

mfabiani-av avatar Aug 14 '19 15:08 mfabiani-av

Yeah, I've been seeing this as well in some of my test scripts. Fix should be pretty straightforward.

adelina-t avatar Aug 23 '19 16:08 adelina-t