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 HPAs and VPAs created by tortoise when deleting tortoises #96

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

sanposhiho
Copy link
Collaborator

@sanposhiho sanposhiho commented Aug 10, 2023

What this PR does / why we need it:

DeletionPolicy is the policy how the controller deletes associated HPA and VPAs when tortoise is removed.
If "DeleteAll", tortoise deletes all associated HPA and VPAs, created by tortoise. If the associated HPA is not created by tortoise,
which is associated by spec.targetRefs.horizontalPodAutoscalerName, tortoise never delete the HPA.
If "NoDelete", tortoise doesn't delete any associated HPA and VPAs.

"DeleteAll" is the default value.

Which issue(s) this PR fixes:

Fixes #58

Special notes for your reviewer:

@sanposhiho sanposhiho merged commit 20bf26a into main Aug 10, 2023
3 checks passed
@sanposhiho sanposhiho deleted the ownerref branch August 10, 2023 03:31
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.

VPAs and HPA created by the controller should be deleted after tortoise gets deleted
1 participant