Skip to content

Unexpected failover behavior in karmada #5309

Answered by NickYadance
NickYadance asked this question in Q&A
Discussion options

You must be logged in to vote

Found a possible explanation for this related to getAPIEnablements returning partial results.

// getAPIEnablements returns the list of API enablement(supported groups and resources).
// The returned lists might be non-nil with partial results even in the case of non-nil error.
func getAPIEnablements(clusterClient *util.ClusterClient) ([]clusterv1alpha1.APIEnablement, error) {
_, apiResourceList, err := clusterClient.KubeClient.Discovery().ServerGroupsAndResources()
if len(apiResourceList) == 0 {
return nil, err
}
var apiEnablements []clusterv1alpha1.A…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@whitewindmills
Comment options

Answer selected by NickYadance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants