Version mismatch when updating the scheduledStaler
Red-C opened this issue · 1 comments
Red-C commented
2020-10-19T09:40:00.020992184Z I1019 09:40:00.020573 1 scaling-controller.go:122] FAILED TO UPDATE SCHEDULED SCALER STATUS: test-server - Operation cannot be fulfilled on scheduledscalers.scaling.k8s.restdev.com "test-server": the object has been modified; please apply your changes to the latest version and try again
the current logic fetches ss config only once, and keeps updating the min & max with the cached object. api returns the error above due to stale version in the request. maybe we can do a fetch before update in the logic?
ericuldall commented
0.0.4 is now available in the official repo on dockerhub and I'll be updating helm chart shortly.