Member & Snapshot leases are preserved with now stale information - this is unexpected.
Client and Peer service are preserved - this is unexpected.
ServiceAccount, role and role-bindings are preserved - should we retain these?
ConfigMap is updated to reflect the current state of the etcd cluster - while the update is expected, do we need the CM?
PDB is updated and now has a minAvailable set to 0 - while the update is expected, do we need the PDB?
We should ensure that all resources that are not needed any longer should be removed as well once the etcd cluster is scaled down to 0. If and when the etcd cluster is scale up again, these resources will be created again.
Why is this needed:
To bring harmony across all resource states that are created for a etcd cluster. Today we have mixed behavior.
How to categorize this issue?
/area control-plane /kind enhancement
What would you like to be added: When an etcd cluster is scaled down to 0 then we do the following changes to the resources in the etcd cluster:
We should ensure that all resources that are not needed any longer should be removed as well once the etcd cluster is scaled down to 0. If and when the etcd cluster is scale up again, these resources will be created again.
Why is this needed: To bring harmony across all resource states that are created for a etcd cluster. Today we have mixed behavior.