client-go: kmodules.xyz/client-go/dynamic Index | Files | Directories

package dynamic

import "kmodules.xyz/client-go/dynamic"

Index

Package Files

kubernetes.go unstructured.go

func CreateOrPatch Uses

func CreateOrPatch(
    ctx context.Context,
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    meta metav1.ObjectMeta,
    transform func(*unstructured.Unstructured) *unstructured.Unstructured,
    opts metav1.PatchOptions,
) (*unstructured.Unstructured, kutil.VerbType, error)

func DetectWorkload Uses

func DetectWorkload(ctx context.Context, config *rest.Config, resource schema.GroupVersionResource, namespace, name string) (*unstructured.Unstructured, schema.GroupVersionResource, error)

func EnsureOwnerReferenceForItems Uses

func EnsureOwnerReferenceForItems(
    ctx context.Context,
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    namespace string,
    items []string,
    owner *metav1.OwnerReference,
) error

func EnsureOwnerReferenceForSelector Uses

func EnsureOwnerReferenceForSelector(
    ctx context.Context,
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    namespace string,
    selector labels.Selector,
    owner *metav1.OwnerReference,
) error

func Patch Uses

func Patch(
    ctx context.Context,
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    cur *unstructured.Unstructured,
    transform func(*unstructured.Unstructured) *unstructured.Unstructured,
    opts metav1.PatchOptions,
) (*unstructured.Unstructured, kutil.VerbType, error)

func PatchObject Uses

func PatchObject(
    ctx context.Context,
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    cur, mod *unstructured.Unstructured,
    opts metav1.PatchOptions,
) (*unstructured.Unstructured, kutil.VerbType, error)

func RemoveOwnerReferenceForItems Uses

func RemoveOwnerReferenceForItems(
    ctx context.Context,
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    namespace string,
    items []string,
    owner metav1.Object,
) error

func RemoveOwnerReferenceForSelector Uses

func RemoveOwnerReferenceForSelector(
    ctx context.Context,
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    namespace string,
    selector labels.Selector,
    owner metav1.Object,
) error

func ResourceExists Uses

func ResourceExists(
    ctx context.Context,
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    namespace string,
    name string,
) (bool, error)

func ResourcesExists Uses

func ResourcesExists(
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    namespace string,
    names ...string,
) (bool, error)

func ResourcesNotExists Uses

func ResourcesNotExists(
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    namespace string,
    names ...string,
) (bool, error)

func TryUpdate Uses

func TryUpdate(
    ctx context.Context,
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    meta metav1.ObjectMeta,
    transform func(*unstructured.Unstructured) *unstructured.Unstructured,
    opts metav1.UpdateOptions,
) (result *unstructured.Unstructured, err error)

func UntilHasAnnotation Uses

func UntilHasAnnotation(config *rest.Config, gvk schema.GroupVersionKind, namespace, name string, key string, value *string, timeout time.Duration) (out string, err error)

func UntilHasLabel Uses

func UntilHasLabel(config *rest.Config, gvk schema.GroupVersionKind, namespace, name string, key string, value *string, timeout time.Duration) (out string, err error)

func UpdateStatus Uses

func UpdateStatus(
    ctx context.Context,
    c dynamic.Interface,
    gvr schema.GroupVersionResource,
    in *unstructured.Unstructured,
    transform func(*unstructured.Unstructured) *unstructured.Unstructured,
    opts metav1.UpdateOptions,
) (result *unstructured.Unstructured, err error)

func WaitUntilDeleted Uses

func WaitUntilDeleted(ri dynamic.ResourceInterface, stopCh <-chan struct{}, name string, subresources ...string) error

Directories

PathSynopsis
applyPackage apply is a dynamic, client-side substitute for `kubectl apply` that tries to guess the right thing to do without any type-specific knowledge.
clientset
discovery
informer
lister
object

Package dynamic imports 27 packages (graph) and is imported by 46 packages. Updated 2020-09-30. Refresh now. Tools for package owners.