-
Notifications
You must be signed in to change notification settings - Fork 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
KO-165: Added support for simultaneous scale-down and rolling restart SC cluster #233
Conversation
abhishekdwivedi3060
commented
Jul 10, 2023
- Added support for simultaneous scale-down and rolling restart SC cluster
controllers/strong_consistency.go
Outdated
return nil, err | ||
} | ||
|
||
addSCNamespaces, err := r.addedSCNamespaces(allHostConns) |
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.
Is it ok to get sc namespaces from all the hosts even if there are some entries in r.aeroCluster.Spec.RosterNodeBlockList
? similarly in validateSCClusterState
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.
As per discussion, not much useful. So skipping extra checks for RosterNodeBlockList
controllers/strong_consistency.go
Outdated
|
||
func (r *SingleClusterReconciler) getIgnorableNamespaces(allHostConns []*deployment.HostConn) ( | ||
sets.Set[string], error) { | ||
removedNSes, err := r.removedNamespaces(allHostConns) |
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.
we call deployment.GetClusterNamespaces
in both removedNamespaces
as well as r.addedSCNamespaces
, see if we can reduce calls here.