harbor-operator
harbor-operator copied to clipboard
Make deployments revisionHistoryLimit configurable in harbor Custom resource
Hello,
By default, deployment parameter revisionHistoryLimit value is set 10 by default. That means that each deployment keeps the 10 last old replicaset.
We would like to reduce it in order to save some ETCD storage.
In Harbor helm chart we can specify it for each component (nginx, portal, core, jobservice...), we would like to have the same parameter in Harbor CR.
WDYT ?
Thomas,
This is the kind of thing that you most probably want to handle globally (if at all) and for that I'd probably write a mutating webhook. The advantage is that you can enforce whatever value you want to use, not just for Harbor.
My two cents.