plantbuild
plantbuild copied to clipboard
Changing image_to_url replicas back to 1 does not update HPA
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