apiextensions-apiserver: k8s.io/apiextensions-apiserver/test/integration/fixtures Index | Files

package fixtures

import "k8s.io/apiextensions-apiserver/test/integration/fixtures"

Index

Package Files

resources.go server.go

func CreateNewCustomResourceDefinition Uses

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 Uses

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 CreateNewV1CustomResourceDefinition Uses

func CreateNewV1CustomResourceDefinition(v1CRD *apiextensionsv1.CustomResourceDefinition, apiExtensionsClient clientset.Interface, dynamicClientSet dynamic.Interface) (*apiextensionsv1.CustomResourceDefinition, error)

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

func CreateNewV1CustomResourceDefinitionWatchUnsafe Uses

func CreateNewV1CustomResourceDefinitionWatchUnsafe(v1CRD *apiextensionsv1.CustomResourceDefinition, apiExtensionsClient clientset.Interface) (*apiextensionsv1.CustomResourceDefinition, error)

CreateNewV1CustomResourceDefinitionWatchUnsafe 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 CreateNewV1CustomResourceDefinition if you need to watch the CR.

func CreateNewVersionedScaleClient Uses

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

CreateNewVersionedScaleClient returns a scale client.

func DeleteCustomResourceDefinition Uses

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

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

func DeleteCustomResourceDefinitions Uses

func DeleteCustomResourceDefinitions(deleteListOpts metav1.ListOptions, apiExtensionsClient clientset.Interface) error

DeleteCustomResourceDefinitions deletes all CRD matching the provided deleteListOpts and waits until all the CRDs disappear from discovery.

func DeleteV1CustomResourceDefinition Uses

func DeleteV1CustomResourceDefinition(crd *apiextensionsv1.CustomResourceDefinition, apiExtensionsClient clientset.Interface) error

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

func DeleteV1CustomResourceDefinitions Uses

func DeleteV1CustomResourceDefinitions(deleteListOpts metav1.ListOptions, apiExtensionsClient clientset.Interface) error

DeleteV1CustomResourceDefinitions deletes all CRD matching the provided deleteListOpts and waits until all the CRDs disappear from discovery.

func IntegrationEtcdServers Uses

func IntegrationEtcdServers() []string

IntegrationEtcdServers returns etcd server URLs.

func NewCurletCustomResourceDefinition Uses

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

NewCurletCustomResourceDefinition returns a Curlet CRD.

func NewCurletInstance Uses

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

NewCurletInstance returns a Curlet instance.

func NewMultipleVersionNoxuCRD Uses

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

NewMultipleVersionNoxuCRD returns a WishIHadChosenNoxu with multiple versions.

func NewNoxu2CustomResourceDefinition Uses

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

NewNoxu2CustomResourceDefinition returns a WishIHadChosenNoxu2 CRD.

func NewNoxuCustomResourceDefinition Uses

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

NewNoxuCustomResourceDefinition returns a WishIHadChosenNoxu CRD.

func NewNoxuInstance Uses

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

NewNoxuInstance returns a WishIHadChosenNoxu instance for v1beta1.

func NewNoxuV1CustomResourceDefinition Uses

func NewNoxuV1CustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition

NewNoxuV1CustomResourceDefinition returns a WishIHadChosenNoxu CRD.

func NewRandomNameCustomResourceDefinition Uses

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

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

func NewRandomNameV1CustomResourceDefinition Uses

func NewRandomNameV1CustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition

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

func NewVersionedNoxuInstance Uses

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

NewVersionedNoxuInstance returns a WishIHadChosenNoxu instance for a given version

func StartDefaultServer Uses

func StartDefaultServer(t servertesting.Logger, flags ...string) (func(), *rest.Config, *options.CustomResourceDefinitionsServerOptions, error)

StartDefaultServer starts a test server.

func StartDefaultServerWithClients Uses

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

StartDefaultServerWithClients starts a test server and returns clients for it.

Package fixtures imports 24 packages (graph) and is imported by 62 packages. Updated 2019-08-29. Refresh now. Tools for package owners.