Skip to content

kube client: proper handle of result from ServerPreferredResources #142

@diafour

Description

@diafour

The problem is occured if kubernetes binding has no apiVersion field and there are problems with custom APIs in cluster:

kubernetes[0]: Cannot get GroupVersionResource info for
apiVersion '' kind 'secret' from api-server.
Possibly CRD is not created before informers are started.
Error was: unable to retrieve the complete list of server APIs:
custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request,
external.metrics.k8s.io/v1beta1: the server is currently unable to handle the request,
metrics.k8s.io/v1beta1: the server is currently unable to handle the request

ServerPreferredResources result list should be checked first even if error is occured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions