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

Implement get_stale_profiles and delete_stale_profiles #23

Merged
merged 8 commits into from
Jan 14, 2025

Conversation

mvlassis
Copy link
Collaborator

@mvlassis mvlassis commented Jan 13, 2025

Closes #20

This PR is a substep of #8. It adds the following 2 functions:

  • get_stale_profiles, which returns a dictionary of the profiles that exist in the cluster but not in the PMR
  • delete_stale_profiles, which deletes all stale profiles from the cluster

Tests

2 integration tests have been added, under tests/integration/profile_management to tests that the 2 function work as expected.

@mvlassis mvlassis requested a review from a team as a code owner January 13, 2025 18:09
Copy link
Contributor

@kimwnasptd kimwnasptd left a comment

Choose a reason for hiding this comment

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

Nice work @mvlassis!

src/profiles_management/get_stale.py Outdated Show resolved Hide resolved
src/profiles_management/get_stale.py Outdated Show resolved Hide resolved
src/profiles_management/get_stale.py Outdated Show resolved Hide resolved
@kimwnasptd kimwnasptd merged commit b92f601 into main Jan 14, 2025
6 checks passed
@kimwnasptd kimwnasptd deleted the kf-6721-implement-stale-profiles branch January 14, 2025 12:49
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.

Implement list_stale_profiles and delete_stale_profiles
2 participants