Skip to content
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

Cleanup rs with timebound #1023

Closed
wants to merge 2 commits into from
Closed

Conversation

anuddeeph1
Copy link
Contributor

Description

ReplicaSets serve as an intermediate controller for various Pod controllers like Deployments. When a new version of a Deployment is initiated, it generates a new ReplicaSet with the specified number of replicas and scales down the current one to zero. Consequently, numerous empty ReplicaSets may accumulate in the cluster, leading to clutter and potential false positives in policy reports if enabled. This cleanup policy is designed to remove empty ReplicaSets across the cluster within a specified timeframe, for instance, ReplicaSets created one day ago, ensuring the ability to rollback to previous ReplicaSets in case of deployment issues

Checklist

  • [] I have read the policy contribution guidelines.
  • [] I have added test manifests and resources covering both positive and negative tests that prove this policy works as intended.
  • [] I have added the artifacthub-pkg.yml file and have verified it is complete and correct.

@chipzoller
Copy link
Member

DCO is required here.

@anuddeeph1 anuddeeph1 force-pushed the cleanup-patch branch 3 times, most recently from 2c8f68a to 3cc7658 Compare May 22, 2024 07:14
Anudeep Nalla added 2 commits May 22, 2024 12:45
Signed-off-by: Anudeep Nalla <anudeep.nalla@nirmata.com>
Signed-off-by: Anudeep Nalla <anudeep.nalla@nirmata.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants