testserver

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0, Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewCustomResourceDefinitionWatchUnsafe added in v1.9.0

func CreateNewCustomResourceDefinitionWatchUnsafe(crd *apiextensionsv1beta1.CustomResourceDefinition, apiExtensionsClient clientset.Interface) (*apiextensionsv1beta1.CustomResourceDefinition, error)

CreateNewCustomResourceDefinitionWatchUnsafe creates the CRD and makes sure the apiextension apiserver has installed the CRD. But it's not safe to watch the created CR. Please call CreateNewCustomResourceDefinition if you need to watch the CR.

func CreateNewScaleClient added in v1.10.0

func CreateNewScaleClient(crd *apiextensionsv1beta1.CustomResourceDefinition, config *rest.Config) (scale.ScalesGetter, error)

func DefaultServerConfig

func DefaultServerConfig() (*extensionsapiserver.Config, error)

func DeleteCustomResourceDefinition

func DeleteCustomResourceDefinition(crd *apiextensionsv1beta1.CustomResourceDefinition, apiExtensionsClient clientset.Interface) error

func NewCurletInstance

func NewCurletInstance(namespace, name string) *unstructured.Unstructured

func NewNoxuInstance

func NewNoxuInstance(namespace, name string) *unstructured.Unstructured

func NewRandomNameCustomResourceDefinition

func NewRandomNameCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition

NewRandomNameCustomResourceDefinition generates a CRD with random name to avoid name conflict in e2e tests

func NewVersionedNoxuInstance added in v1.11.0

func NewVersionedNoxuInstance(namespace, name, version string) *unstructured.Unstructured

func StartDefaultServer

func StartDefaultServer() (chan struct{}, *rest.Config, error)

func StartDefaultServerWithClients added in v1.10.0

func StartDefaultServerWithClients() (chan struct{}, clientset.Interface, dynamic.Interface, error)

func StartServer

func StartServer(config *extensionsapiserver.Config) (chan struct{}, *rest.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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