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

New Feature - Downscaling PodDisruptionBudgets #43

Merged
merged 2 commits into from
May 23, 2024

Conversation

samuel-esp
Copy link
Collaborator

Motivation

This Pull Request will align the PodDisruptionBudgets values with the replicas present inside the Deployments / StatefulSets at downtime. This feature is useful when PDB are massively used inside the Cluster, It will help the Cluster Autoscaler or Karpenter to better organize node scaling and consolidation

Note: this PR was originally made on Codeberg by sheogorath, however I added a couple of tests inside scaler.py in order to increase the coverage

Changes

  • implemented the same logic already present with Deployments/StatefulSets to also downscale and upscale PodDisruptionBudgets
  • added tests inside test_scaler.py and test_autoscale_resource.py

Tests done

tests inside test_scaler.py and test_autoscale_resource.py

TODO

  • I've assigned myself to this PR

Copy link
Member

@eumel8 eumel8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JTaeuber JTaeuber merged commit 00be0b4 into caas-team:main May 23, 2024
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.

4 participants