Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewCustomResourceDefinition

func CreateNewCustomResourceDefinition(crd *apiextensionsv1beta1.CustomResourceDefinition, apiExtensionsClient clientset.Interface, dynamicClientSet dynamic.Interface) (*apiextensionsv1beta1.CustomResourceDefinition, error)

CreateNewCustomResourceDefinition creates the given CRD and makes sure its watch cache is primed on the server.

func CreateNewCustomResourceDefinitionWatchUnsafe

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 CreateNewVersionedScaleClient

func CreateNewVersionedScaleClient(crd *apiextensionsv1beta1.CustomResourceDefinition, config *rest.Config, version string) (scale.ScalesGetter, error)

CreateNewVersionedScaleClient returns a scale client.

func DeleteCustomResourceDefinition

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

DeleteCustomResourceDefinition deletes a CRD and waits until it disappears from discovery.

func IntegrationEtcdServers

func IntegrationEtcdServers() []string

IntegrationEtcdServers returns etcd server URLs.

func NewCurletCustomResourceDefinition

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

NewCurletCustomResourceDefinition returns a Curlet CRD.

func NewCurletInstance

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

NewCurletInstance returns a Curlet instance.

func NewMultipleVersionNoxuCRD

NewMultipleVersionNoxuCRD returns a WishIHadChosenNoxu with multiple versions.

func NewNoxu2CustomResourceDefinition

NewNoxu2CustomResourceDefinition returns a WishIHadChosenNoxu2 CRD.

func NewNoxuCustomResourceDefinition

NewNoxuCustomResourceDefinition returns a WishIHadChosenNoxu CRD.

func NewNoxuInstance

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

NewNoxuInstance returns a WishIHadChosenNoxu instance for v1beta1.

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

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

NewVersionedNoxuInstance returns a WishIHadChosenNoxu instance for a given version

func StartDefaultServer

StartDefaultServer starts a test server.

func StartDefaultServerWithClients

func StartDefaultServerWithClients(t servertesting.Logger) (func(), clientset.Interface, dynamic.Interface, error)

StartDefaultServerWithClients starts a test server and returns clients for it.

Types

This section is empty.