testrestmapper

package
v0.22.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestOnlyStaticRESTMapper

func TestOnlyStaticRESTMapper(scheme *runtime.Scheme, versionPatterns ...schema.GroupVersion) meta.RESTMapper

TestOnlyStaticRESTMapper returns a union RESTMapper of all known types with priorities chosen in the following order:

  1. legacy kube group preferred version, extensions preferred version, metrics preferred version, legacy kube any version, extensions any version, metrics any version, all other groups alphabetical preferred version, all other groups alphabetical.

TODO callers of this method should be updated to build their own specific restmapper based on their scheme for their tests TODO the things being tested are related to whether various cases are handled, not tied to the particular types being checked.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL