Default AssociatePublicIP to true

If AssociatePublicIP is nil, treat that as true.

The full fix is likely to version InstanceGroups, but this is also
"defense in depth".
This commit is contained in:
Justin Santa Barbara 2016-09-09 10:12:26 -04:00
parent 9ee663764f
commit 8c1cbec9b6
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ launchConfiguration/{{ $m.Name }}.masters.{{ ClusterName }}:
iamInstanceProfile: iamInstanceProfile/masters.{{ ClusterName }}
imageId: {{ $m.Spec.Image }}
instanceType: {{ $m.Spec.MachineType }}
associatePublicIP: {{ $m.Spec.AssociatePublicIP }}
associatePublicIP: {{ or $m.Spec.AssociatePublicIP true }}
userData: resources/nodeup.sh _kubernetes_master
rootVolumeSize: {{ or $m.Spec.RootVolumeSize "20" }}
rootVolumeType: {{ or $m.Spec.RootVolumeType "gp2" }}

View File

@ -52,7 +52,7 @@ launchConfiguration/{{ $nodeset.Name }}.{{ ClusterName }}:
iamInstanceProfile: iamInstanceProfile/nodes.{{ ClusterName }}
imageId: {{ $nodeset.Spec.Image }}
instanceType: {{ $nodeset.Spec.MachineType }}
associatePublicIP: {{ $nodeset.Spec.AssociatePublicIP }}
associatePublicIP: {{ or $nodeset.Spec.AssociatePublicIP true }}
userData: resources/nodeup.sh _kubernetes_pool
rootVolumeSize: {{ or $nodeset.Spec.RootVolumeSize "20" }}
rootVolumeType: {{ or $nodeset.Spec.RootVolumeType "gp2" }}