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

Refactor and new feature of dailyclean.py #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

David-Crty
Copy link

Refactor and new feature of dailyclean.py

This PR introduces enhancements and refactors to improve script readability, maintainability, and a new functionality.

Changes:

  1. Refactoring: The script has been refactored with more functions, making it more readable and easier to maintain.
  2. Label Selector for stateful_set: The label_selector for stateful_set has been modified. It now uses axa.com/dailyclean!=false to be consistent with the deployment label_selector.
  3. New Feature: Added functionality to handle the metadata label axa.com/dailyclean-start-replicas. If this label is set on a deployment or stateful_set, its value will be utilized when the start script is executed.

We have already tested this script.
Kindly review and provide feedback or modifications if required.

Thank you!

The script has been refactored with additional functions, making it more readable and easier to maintain.

The `label_selector` for `stateful_set` has been modified. It now uses `axa.com/dailyclean!=false` to be consistent with the `deployment label_selector`.

Added functionality to handle the metadata label `axa.com/dailyclean-start-replicas`. If this label is set on a deployment or stateful_set, its value will be utilized when the start script is executed.
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.

1 participant