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
commit 47d58265ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.