Merge pull request #114404 from hoskeri/discovery-error-check

Check the correct error in d.downloadAPIs
This commit is contained in:
Kubernetes Prow Robot
2022-12-11 00:05:15 -08:00
committed by GitHub

View File

@@ -196,7 +196,7 @@ func (d *DiscoveryClient) GroupsAndMaybeResources() (*metav1.APIGroupList, map[s
} }
// Discovery groups and (possibly) resources downloaded from /apis. // Discovery groups and (possibly) resources downloaded from /apis.
apiGroups, apiResources, aerr := d.downloadAPIs() apiGroups, apiResources, aerr := d.downloadAPIs()
if err != nil { if aerr != nil {
return nil, nil, aerr return nil, nil, aerr
} }
// Merge apis groups into the legacy groups. // Merge apis groups into the legacy groups.