kubecost / cluster-turndown

Automated turndown of Kubernetes clusters on specific schedules.
Apache License 2.0
259 stars 23 forks source link

Fix panic if EKS node group has no ASG #60

Closed michaelmdresser closed 1 year ago

michaelmdresser commented 1 year ago

Tested by running into this case on an EKS cluster when using Cluster Controller's /update endpoint. The cluster had one node pool without an ASG, causing the panic. After this change, a rebuilt Cluster Controller succeeds operations and does not panic.