Documentation ¶
Index ¶
- func CreateNewCustomResourceDefinition(crd *apiextensionsv1beta1.CustomResourceDefinition, ...) (*apiextensionsv1beta1.CustomResourceDefinition, error)
- func CreateNewCustomResourceDefinitionWatchUnsafe(crd *apiextensionsv1beta1.CustomResourceDefinition, ...) (*apiextensionsv1beta1.CustomResourceDefinition, error)
- func CreateNewScaleClient(crd *apiextensionsv1beta1.CustomResourceDefinition, config *rest.Config) (scale.ScalesGetter, error)
- func DeleteCustomResourceDefinition(crd *apiextensionsv1beta1.CustomResourceDefinition, ...) error
- func IntegrationEtcdServers() []string
- func NewCurletCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
- func NewCurletInstance(namespace, name string) *unstructured.Unstructured
- func NewMultipleVersionNoxuCRD(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
- func NewNoxu2CustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
- func NewNoxuCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
- func NewNoxuInstance(namespace, name string) *unstructured.Unstructured
- func NewRandomNameCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
- func NewVersionedNoxuInstance(namespace, name, version string) *unstructured.Unstructured
- func StartDefaultServer(t servertesting.Logger) (func(), *rest.Config, *options.CustomResourceDefinitionsServerOptions, error)
- func StartDefaultServerWithClients(t servertesting.Logger) (func(), clientset.Interface, dynamic.Interface, error)
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 CreateNewScaleClient ¶
func CreateNewScaleClient(crd *apiextensionsv1beta1.CustomResourceDefinition, config *rest.Config) (scale.ScalesGetter, error)
CreateNewScaleClient 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 ¶
func NewMultipleVersionNoxuCRD(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
NewMultipleVersionNoxuCRD returns a WishIHadChosenNoxu with multiple versions.
func NewNoxu2CustomResourceDefinition ¶
func NewNoxu2CustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
NewNoxu2CustomResourceDefinition returns a WishIHadChosenNoxu2 CRD.
func NewNoxuCustomResourceDefinition ¶
func NewNoxuCustomResourceDefinition(scope apiextensionsv1beta1.ResourceScope) *apiextensionsv1beta1.CustomResourceDefinition
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 ¶
func StartDefaultServer(t servertesting.Logger) (func(), *rest.Config, *options.CustomResourceDefinitionsServerOptions, error)
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.