plantbuild icon indicating copy to clipboard operation
plantbuild copied to clipboard

Changing image_to_url replicas back to 1 does not update HPA

Open geckofu opened this issue 2 years ago • 2 comments

How to replicate:

Passing replicas=2 to an image_to_url() function, this will create an HPA along with other resources. Then set the replicas argument to 1, the deployment replica is updated but not the HPA.

Relevant code: https://github.com/theplant/plantbuild/blob/82324bb7ffefc9f46853a5c91426a9717ffd4d67/jsonnetlib/k8s.jsonnet#L358

geckofu avatar Jul 21 '21 04:07 geckofu