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: New Downscaler/Grace-Period Annotation To Override Global Grace Period for Individual Resources #74

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

samuel-esp
Copy link
Collaborator

Motivation

This feature introduces the ability to override the global grace period defined by the --grace-period argument in the main deployment. By using the new downscaler/grace-period annotation, you can set a specific grace period for individual resources.

Important: The annotation will only override the global grace period if the value specified in the annotation is shorter than the globally defined grace period. This ensures that the feature cannot be misused by users to extend the grace period beyond the intended limit.

Changes

  • a new annotation was introduced: downscaler/grace-period
  • within_grace_period and within_grace_period_namespace functions where refactored to implement the logic described above

Tests done

Unit tests inside test_grace_period.py

TODO

  • I've assigned myself to this PR

Copy link
Member

@JTaeuber JTaeuber 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 3dcdd6e into caas-team:main Jul 22, 2024
1 check passed
JTaeuber pushed a commit that referenced this pull request Jul 22, 2024
…l Grace Period for Individual Resources (#74)

* added downscaler/grace-period annotation support

* added grace period annotation unit tests

* refactored documentations

* refactored docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants