Documentation
¶
Index ¶
- func AllowAllSchema() *apiextensionsv1.CustomResourceValidation
- func CreateCRDUsingRemovedAPI(etcdClient *clientv3.Client, etcdStoragePrefix string, ...) (*apiextensionsv1.CustomResourceDefinition, error)
- func CreateNewV1CustomResourceDefinition(v1CRD *apiextensionsv1.CustomResourceDefinition, ...) (*apiextensionsv1.CustomResourceDefinition, error)
- func CreateNewV1CustomResourceDefinitionWatchUnsafe(v1CRD *apiextensionsv1.CustomResourceDefinition, ...) (*apiextensionsv1.CustomResourceDefinition, error)
- func CreateNewVersionedScaleClient(crd *apiextensionsv1.CustomResourceDefinition, config *rest.Config, ...) (scale.ScalesGetter, error)
- func DeleteV1CustomResourceDefinition(crd *apiextensionsv1.CustomResourceDefinition, ...) error
- func DeleteV1CustomResourceDefinitions(deleteListOpts metav1.ListOptions, apiExtensionsClient clientset.Interface) error
- func IntegrationEtcdServers() []string
- func NewCurletInstance(namespace, name string) *unstructured.Unstructured
- func NewCurletV1CustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
- func NewMultipleVersionNoxuCRD(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
- func NewNoxu2CustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
- func NewNoxuInstance(namespace, name string) *unstructured.Unstructured
- func NewNoxuV1CustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
- func NewRandomNameMultipleVersionCustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
- func NewRandomNameV1CustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
- func NewVersionedNoxuInstance(namespace, name, version string) *unstructured.Unstructured
- func StartDefaultServer(t servertesting.Logger, flags ...string) (func(), *rest.Config, *options.CustomResourceDefinitionsServerOptions, error)
- func StartDefaultServerWithClients(t servertesting.Logger, extraFlags ...string) (func(), clientset.Interface, dynamic.Interface, error)
- func StartDefaultServerWithClientsAndEtcd(t servertesting.Logger, extraFlags ...string) (func(), clientset.Interface, dynamic.Interface, *clientv3.Client, string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowAllSchema ¶ added in v0.21.0
func AllowAllSchema() *apiextensionsv1.CustomResourceValidation
AllowAllSchema doesn't enforce any schema restrictions
func CreateCRDUsingRemovedAPI ¶ added in v0.21.0
func CreateCRDUsingRemovedAPI(etcdClient *clientv3.Client, etcdStoragePrefix string, betaCRD *apiextensionsv1beta1.CustomResourceDefinition, apiExtensionsClient clientset.Interface, dynamicClientSet dynamic.Interface) (*apiextensionsv1.CustomResourceDefinition, error)
CreateCRDUsingRemovedAPI creates a CRD directly using etcd. This is must *ONLY* be used for checks of compatibility with removed data. Do not use this just because you don't want to update your test to use v1. Only use this when it actually matters.
func CreateNewV1CustomResourceDefinition ¶ added in v0.16.4
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 ¶ added in v0.16.4
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 ¶
func CreateNewVersionedScaleClient(crd *apiextensionsv1.CustomResourceDefinition, config *rest.Config, version string) (scale.ScalesGetter, error)
CreateNewVersionedScaleClient returns a scale client.
func DeleteV1CustomResourceDefinition ¶ added in v0.16.4
func DeleteV1CustomResourceDefinition(crd *apiextensionsv1.CustomResourceDefinition, apiExtensionsClient clientset.Interface) error
DeleteV1CustomResourceDefinition deletes a CRD and waits until it disappears from discovery.
func DeleteV1CustomResourceDefinitions ¶ added in v0.16.4
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 ¶
func IntegrationEtcdServers() []string
IntegrationEtcdServers returns etcd server URLs.
func NewCurletInstance ¶
func NewCurletInstance(namespace, name string) *unstructured.Unstructured
NewCurletInstance returns a Curlet instance.
func NewCurletV1CustomResourceDefinition ¶ added in v0.21.0
func NewCurletV1CustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
NewCurletV1CustomResourceDefinition returns a Curlet CRD.
func NewMultipleVersionNoxuCRD ¶
func NewMultipleVersionNoxuCRD(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
NewMultipleVersionNoxuCRD returns a WishIHadChosenNoxu with multiple versions.
func NewNoxu2CustomResourceDefinition ¶
func NewNoxu2CustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
NewNoxu2CustomResourceDefinition returns a WishIHadChosenNoxu2 CRD.
func NewNoxuInstance ¶
func NewNoxuInstance(namespace, name string) *unstructured.Unstructured
NewNoxuInstance returns a WishIHadChosenNoxu instance for v1beta1.
func NewNoxuV1CustomResourceDefinition ¶ added in v0.16.4
func NewNoxuV1CustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
NewNoxuV1CustomResourceDefinition returns a WishIHadChosenNoxu CRD.
func NewRandomNameMultipleVersionCustomResourceDefinition ¶ added in v0.21.0
func NewRandomNameMultipleVersionCustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
NewRandomNameMultipleCustomResourceDefinition generates a multi version CRD with random name to avoid name conflict in e2e tests
func NewRandomNameV1CustomResourceDefinition ¶ added in v0.16.4
func NewRandomNameV1CustomResourceDefinition(scope apiextensionsv1.ResourceScope) *apiextensionsv1.CustomResourceDefinition
NewRandomNameV1CustomResourceDefinition 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 ¶
func StartDefaultServer(t servertesting.Logger, flags ...string) (func(), *rest.Config, *options.CustomResourceDefinitionsServerOptions, error)
StartDefaultServer starts a test server.
func StartDefaultServerWithClients ¶
func StartDefaultServerWithClients(t servertesting.Logger, extraFlags ...string) (func(), clientset.Interface, dynamic.Interface, error)
StartDefaultServerWithClients starts a test server and returns clients for it.
func StartDefaultServerWithClientsAndEtcd ¶ added in v0.21.0
func StartDefaultServerWithClientsAndEtcd(t servertesting.Logger, extraFlags ...string) (func(), clientset.Interface, dynamic.Interface, *clientv3.Client, string, error)
StartDefaultServerWithClientsAndEtcd starts a test server and returns clients for it.
Types ¶
This section is empty.