-
Notifications
You must be signed in to change notification settings - Fork 0
KAAP-657: Remove pf9 cluster label as a part of scaling down or byoh cluster deletion #38
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
base: main
Are you sure you want to change the base?
Conversation
… cluster deletion
Code Review Agent Run #26d9d5Actionable Suggestions - 0Additional Suggestions - 2
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Changelist by BitoThis pull request implements the following key changes.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -20,6 +20,8 @@ const ( | |||
AttachedByoMachineLabel = "byoh.infrastructure.cluster.x-k8s.io/byomachine-name" | |||
// BundleLookupBaseRegistryAnnotation annotation used to store the base registry for the bundle lookup | |||
BundleLookupBaseRegistryAnnotation = "byoh.infrastructure.cluster.x-k8s.io/bundle-registry" | |||
// ClusterLabel label is used to mark a cluster where it is attached to | |||
ClusterLabel = "kaapi.pf9.io/cluster-name" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this a constant defined in a common global module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
UI adds a label
kaapi.pf9.io/cluster-name
on the byohost object whenever it is selected or is a part of some cluster.Whenever cluster is deleted or that specific byohost is scaled down, the respective byomachine is deleted and byohost is cleaned up and ready to attach to other cluster. Removing
kaapi.pf9.io/cluster-name
as a part of this.Summary by Bito
This PR updates the management of cluster labels for byohost objects by introducing a standardized cluster label constant and improving the cleanup process in the byomachine controller. These changes ensure proper removal of unwanted cluster labels during scaling down or deletion, enhancing overall cluster state management reliability.Unit tests added: False
Estimated effort to review (1-5, lower is better): 1