Closed sanposhiho closed 4 months ago
Hi @sanposhiho as this is not production ready can we just change it ?
/assign
No. It's mentioned as "not production ready" for now though, actually in order to evaluate tortoise's recommendation logic in real world, our company already started to use it in the dev cluster widely and even some workloads in prod. Also, either way, regardless of our company, given it's open-source, we should try not to bring any breaking changes as much as possible.
So, I do believe we have to follow the gradual migration of the annotation, like the way I proposed at the top.
thanks for clearing . will work on it 😊
https://github.com/mercari/tortoise/pull/359 removed the tortoise name annotation itself. Closing this.
Problem
This issue is raised at https://github.com/mercari/tortoise/pull/308.
https://github.com/mercari/tortoise/blob/main/pkg/annotation/annotation.go
We have annotations starting from
tortoises.autoscaling.mercari.com/
and fromtortoise.autoscaling.mercari.com/
. We should unify it withtortoise.autoscaling.mercari.com/*
ideally.Proposal
So, basically what we have to do is rename
"tortoises.autoscaling.mercari.com/tortoise-name"
to"tortoise.autoscaling.mercari.com/tortoise-name"
.But, it cannot be done simply because if we just rename the annotation, it'd break existing tortoises working in the cluster.
We have to migrate the annotation gradually.
First step
"tortoise.autoscaling.mercari.com/tortoise-name"
. HPAs for new tortoises will get this annotation instead of the old one."tortoises.autoscaling.mercari.com/tortoise-name"
. We mark"tortoises.autoscaling.mercari.com/tortoise-name"
(old one) as deprecated."tortoise.autoscaling.mercari.com/tortoise-name"
, we try to look at"tortoises.autoscaling.mercari.com/tortoise-name"
.Second step
It should be done enough time passed after the first step.