-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resources are pruned if using ApplySets #592
Comments
I recognise this behaviour is configurable with the |
Deployment tools like kubectl ApplySets use labels to keep track of objects they manage. Propagating those labels where a tool is actively pruning resources will cause resources managed by the operator to be pruned also. https://kubernetes.io/blog/2023/05/09/introducing-kubectl-applyset-pruning/ Fixes spotahome#592
This issue is stale because it has been open for 45 days with no activity. |
Closing an issue due to age isn't helpful for anyone. |
This issue is stale because it has been open for 45 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Expected behaviour
Kubernetes has introduced ApplySets, an improvement to server side apply and pruning.
https://kubernetes.io/blog/2023/05/09/introducing-kubectl-applyset-pruning/
ApplySets work by applying labels to objects it manages.
The applyset label should not be inherited, or else the created resources are pruned.
Actual behaviour
Steps to reproduce the behaviour
Create a
RedisFailover
object withKUBECTL_APPLYSET=true kubectl apply --server-side --applyset=some-apply-set --prune -f -
. Wait for the resources to be created, and then observe they are pruned when the original custom resource is applied again.Environment
How are the pieces configured?
Logs
N/A
The text was updated successfully, but these errors were encountered: