GoogleCloudPlatform/gke-terraform-generator

IntialNode Count MaxCount MinCount Validation

Opened this issue · 2 comments

The validation for initialNodeCount: 2 working weird.

This works

  nodePools:
    - metadata:
        name: my-node-pool
      spec:
        minCount: 2
        maxCount: 2
        initialNodeCount: 2

This does not work:

  nodePools:
    - metadata:
        name: my-node-pool
      spec:
        minCount: 2
        initialNodeCount: 2

This does not work:

  nodePools:
    - metadata:
        name: my-node-pool
      spec:
        initialNodeCount: 2

We need to decide exactly how it should work. If initialNodeCount is set, but min and max are not set, what do we set them to?? How does this impact autoscaling??

@bgeesaman @robinpercy @wripley

My thoughts:

If min and max are not set, no autoscaling is to be enabled OR, set min and max to same as initialnodecount and warn?
If only min is set, validation error for not providing max.