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

KO-165: Added support for simultaneous scale-down and rolling restart SC cluster #233

Merged
merged 7 commits into from
Oct 3, 2023

Conversation

abhishekdwivedi3060
Copy link
Collaborator

  • Added support for simultaneous scale-down and rolling restart SC cluster

return nil, err
}

addSCNamespaces, err := r.addedSCNamespaces(allHostConns)
Copy link
Contributor

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

Copy link
Collaborator Author

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


func (r *SingleClusterReconciler) getIgnorableNamespaces(allHostConns []*deployment.HostConn) (
sets.Set[string], error) {
removedNSes, err := r.removedNamespaces(allHostConns)
Copy link
Contributor

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.

@sud82 sud82 merged commit 8445508 into master Oct 3, 2023
4 checks passed
@abhishekdwivedi3060 abhishekdwivedi3060 deleted the KO-165 branch December 27, 2023 11:53
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.

3 participants