Documentation ¶
Index ¶
- Variables
- func APIResourceForGVK(client discovery.DiscoveryInterface, gvk schema.GroupVersionKind) (metav1.APIResource, error)
- func CheckAPIVersion(client discovery.DiscoveryInterface, constraint string) (bool, error)
- func ExistsGroupKind(client discovery.DiscoveryInterface, group, kind string) bool
- func ExistsGroupKinds(client discovery.DiscoveryInterface, gk schema.GroupKind, ...) bool
- func ExistsGroupVersionKind(client discovery.DiscoveryInterface, groupVersion, kind string) bool
- func FilterAPISubResources(resources []metav1.APIResource) []metav1.APIResource
- func FilterSubResources(gvrs []schema.GroupVersionResource) []schema.GroupVersionResource
- func GetBaseVersion(client discovery.DiscoveryInterface) (string, error)
- func GetVersion(client discovery.DiscoveryInterface) (string, error)
- func GetVersionInfo(client discovery.DiscoveryInterface) (uint64, uint64, uint64, string, string, error)
- func HasGVK(client discovery.DiscoveryInterface, groupVersion, kind string) (bool, error)
- func IsDefaultSupportedVersion(kc kubernetes.Interface) error
- func IsPreferredAPIResource(client discovery.DiscoveryInterface, groupVersion, kind string) bool
- func IsSupportedVersion(kc kubernetes.Interface, constraint string, ...) error
- func ListAPIVersions(c discovery.DiscoveryInterface, group, kind string) ([]string, error)
- func NewRestMapper(client discovery.DiscoveryInterface) meta.RESTMapper
- func ResourceForGVK(client discovery.DiscoveryInterface, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
- type KnownBug
- type ResourceMapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultConstraint = ">= 1.11.0" DefaultBlackListedVersions = map[string]error{ "1.16.0": err83778_K1_16, "1.16.1": err83778_K1_16, } DefaultBlackListedMultiMasterVersions = map[string]error{ "1.9.0": err62649_K1_9, "1.9.1": err62649_K1_9, "1.9.2": err62649_K1_9, "1.9.3": err62649_K1_9, "1.9.4": err62649_K1_9, "1.9.5": err62649_K1_9, "1.9.6": err62649_K1_9, "1.9.7": err62649_K1_9, "1.10.0": err62649_K1_10, "1.10.1": err62649_K1_10, } )
Functions ¶
func APIResourceForGVK ¶
func APIResourceForGVK(client discovery.DiscoveryInterface, gvk schema.GroupVersionKind) (metav1.APIResource, error)
func CheckAPIVersion ¶
func CheckAPIVersion(client discovery.DiscoveryInterface, constraint string) (bool, error)
func ExistsGroupKind ¶
func ExistsGroupKind(client discovery.DiscoveryInterface, group, kind string) bool
func ExistsGroupKinds ¶
func ExistsGroupVersionKind ¶
func ExistsGroupVersionKind(client discovery.DiscoveryInterface, groupVersion, kind string) bool
func FilterAPISubResources ¶
func FilterAPISubResources(resources []metav1.APIResource) []metav1.APIResource
func FilterSubResources ¶
func FilterSubResources(gvrs []schema.GroupVersionResource) []schema.GroupVersionResource
func GetBaseVersion ¶
func GetBaseVersion(client discovery.DiscoveryInterface) (string, error)
func GetVersion ¶
func GetVersion(client discovery.DiscoveryInterface) (string, error)
func GetVersionInfo ¶
func HasGVK ¶ added in v0.25.5
func HasGVK(client discovery.DiscoveryInterface, groupVersion, kind string) (bool, error)
func IsDefaultSupportedVersion ¶
func IsDefaultSupportedVersion(kc kubernetes.Interface) error
func IsPreferredAPIResource ¶
func IsPreferredAPIResource(client discovery.DiscoveryInterface, groupVersion, kind string) bool
func IsSupportedVersion ¶
func ListAPIVersions ¶ added in v0.25.5
func ListAPIVersions(c discovery.DiscoveryInterface, group, kind string) ([]string, error)
func NewRestMapper ¶
func NewRestMapper(client discovery.DiscoveryInterface) meta.RESTMapper
func ResourceForGVK ¶
func ResourceForGVK(client discovery.DiscoveryInterface, gvk schema.GroupVersionKind) (schema.GroupVersionResource, error)
Types ¶
type ResourceMapper ¶
type ResourceMapper interface { ResourceIDForGVK(gvk schema.GroupVersionKind) (*kmapi.ResourceID, error) ResourceIDForGVR(gvr schema.GroupVersionResource) (*kmapi.ResourceID, error) GVR(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error) TypeMeta(gvr schema.GroupVersionResource) (metav1.TypeMeta, error) GVK(gvr schema.GroupVersionResource) (schema.GroupVersionKind, error) IsGVRNamespaced(gvr schema.GroupVersionResource) (bool, error) IsGVKNamespaced(gvk schema.GroupVersionKind) (bool, error) IsPreferred(gvr schema.GroupVersionResource) (bool, error) Preferred(gvr schema.GroupVersionResource) (schema.GroupVersionResource, error) ExistsGVR(gvr schema.GroupVersionResource) (bool, error) ExistsGVK(gvk schema.GroupVersionKind) (bool, error) Reset() }
func NewDynamicResourceMapper ¶
func NewDynamicResourceMapper(cfg *rest.Config, opts ...apiutil.DynamicRESTMapperOption) (ResourceMapper, error)
func NewResourceMapper ¶
func NewResourceMapper(mapper meta.RESTMapper) ResourceMapper
Click to show internal directories.
Click to hide internal directories.