Honor minSize/maxSize for ASGs for master

Normally we expect the size to be 1, but it turns out there is an
exception - in the case when we want to suspend a cluster.  So honor the
values if the user sets them.

Thanks for spotting @sekka1

Fix #403
This commit is contained in:
Justin Santa Barbara 2016-09-17 23:17:18 -04:00
parent 3aa3a0e857
commit 352bc52a9f
1 changed files with 3 additions and 3 deletions

View File

@ -16,9 +16,9 @@ launchConfiguration/{{ $m.Name }}.masters.{{ ClusterName }}:
spotPrice: "{{ $m.Spec.MaxPrice }}"
{{ end }}
autoscalingGroup/{{ $m.Name}}.masters.{{ ClusterName }}:
minSize: 1
maxSize: 1
autoscalingGroup/{{ $m.Name }}.masters.{{ ClusterName }}:
minSize: {{ $m.Spec.MinSize }}
maxSize: {{ $m.Spec.MaxSize }}
subnets:
{{ range $z := $m.Spec.Zones }}
- subnet/{{ $z }}.{{ ClusterName }}