Skip to content

client-go do not cache apis which can get from /apis , but actually do not support #1401

Open
@WeiYongqiang55

Description

when I use helm(v3.13.3)and client-go( 0.28.4)
when somehow get snapshot.storage.k8s.io/v1 from /apis ,
but when call xxx.snapshot.storage.k8s.io/v1 , k8s return 404

in this case , client-go may call the /apis and other API Server interfaces multiple times, leading to performance degradation, which is unnecessary.

and the reason is that:
client-go cache_discovery.go , when get servergroup details, and k8s return 404, then client-go will not write this 404 servergfroup resourcelist to cachefile

discovery/cached/disk/cached_discovery.go:70

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions