util

package
v0.24.7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientForClientsetAndResource

func ClientForClientsetAndResource(clientset *fake.Clientset, cache kube.SharedCache, crd crd.Crd, res resources.InputResource, namespaces []string, podNamespace string) *kube.ResourceClient

func CreateMockResource

func CreateMockResource(ctx context.Context, cs *fake.Clientset, namespace, name, dumbFieldValue string) error

func CreateMockResourceWithMetadata added in v0.20.10

func CreateMockResourceWithMetadata(ctx context.Context, cs *fake.Clientset, metadata *core.Metadata, dumbFieldValue string) error

func CreateV2Alpha1MockResource added in v0.10.3

func CreateV2Alpha1MockResource(ctx context.Context, cs *fake.Clientset, namespace, name, dumbFieldValue string) error

func DeleteMockResource

func DeleteMockResource(ctx context.Context, cs *fake.Clientset, namespace, name string) error

func MockClientForNamespace

func MockClientForNamespace(cache kube.SharedCache, namespaces []string, podNamespace string) *kube.ResourceClient

func ZeroResourceVersion

func ZeroResourceVersion(resource resources.Resource)

func ZeroResourceVersions

func ZeroResourceVersions(resources ...resources.Resource)

Types

This section is empty.

Jump to

Keyboard shortcuts

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