Documentation ¶
Index ¶
- func CreateOrPatch(c dynamic.Interface, gvr schema.GroupVersionResource, meta metav1.ObjectMeta, ...) (*unstructured.Unstructured, kutil.VerbType, error)
- func DetectWorkload(config *rest.Config, resource schema.GroupVersionResource, ...) (*unstructured.Unstructured, schema.GroupVersionResource, error)
- func EnsureOwnerReferenceForItems(c dynamic.Interface, gvr schema.GroupVersionResource, namespace string, ...) error
- func EnsureOwnerReferenceForSelector(c dynamic.Interface, gvr schema.GroupVersionResource, namespace string, ...) error
- func Patch(c dynamic.Interface, gvr schema.GroupVersionResource, ...) (*unstructured.Unstructured, kutil.VerbType, error)
- func PatchObject(c dynamic.Interface, gvr schema.GroupVersionResource, ...) (*unstructured.Unstructured, kutil.VerbType, error)
- func RemoveOwnerReferenceForItems(c dynamic.Interface, gvr schema.GroupVersionResource, namespace string, ...) error
- func RemoveOwnerReferenceForSelector(c dynamic.Interface, gvr schema.GroupVersionResource, namespace string, ...) error
- func TryUpdate(c dynamic.Interface, gvr schema.GroupVersionResource, meta metav1.ObjectMeta, ...) (result *unstructured.Unstructured, err error)
- func UntilHasAnnotation(config *rest.Config, gvk schema.GroupVersionKind, namespace, name string, ...) (out string, err error)
- func UntilHasLabel(config *rest.Config, gvk schema.GroupVersionKind, namespace, name string, ...) (out string, err error)
- func WaitUntilDeleted(ri dynamic.ResourceInterface, stopCh <-chan struct{}, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrPatch ¶
func CreateOrPatch( c dynamic.Interface, gvr schema.GroupVersionResource, meta metav1.ObjectMeta, transform func(*unstructured.Unstructured) *unstructured.Unstructured, ) (*unstructured.Unstructured, kutil.VerbType, error)
func DetectWorkload ¶
func DetectWorkload(config *rest.Config, resource schema.GroupVersionResource, namespace, name string) (*unstructured.Unstructured, schema.GroupVersionResource, error)
func EnsureOwnerReferenceForItems ¶
func EnsureOwnerReferenceForItems( c dynamic.Interface, gvr schema.GroupVersionResource, namespace string, items []string, ref *core.ObjectReference, ) error
func EnsureOwnerReferenceForSelector ¶
func EnsureOwnerReferenceForSelector( c dynamic.Interface, gvr schema.GroupVersionResource, namespace string, selector labels.Selector, ref *core.ObjectReference, ) error
func Patch ¶
func Patch( c dynamic.Interface, gvr schema.GroupVersionResource, cur *unstructured.Unstructured, transform func(*unstructured.Unstructured) *unstructured.Unstructured, ) (*unstructured.Unstructured, kutil.VerbType, error)
func PatchObject ¶
func PatchObject( c dynamic.Interface, gvr schema.GroupVersionResource, cur, mod *unstructured.Unstructured, ) (*unstructured.Unstructured, kutil.VerbType, error)
func RemoveOwnerReferenceForItems ¶
func RemoveOwnerReferenceForItems( c dynamic.Interface, gvr schema.GroupVersionResource, namespace string, items []string, ref *core.ObjectReference, ) error
func RemoveOwnerReferenceForSelector ¶
func RemoveOwnerReferenceForSelector( c dynamic.Interface, gvr schema.GroupVersionResource, namespace string, selector labels.Selector, ref *core.ObjectReference, ) error
func TryUpdate ¶
func TryUpdate( c dynamic.Interface, gvr schema.GroupVersionResource, meta metav1.ObjectMeta, transform func(*unstructured.Unstructured) *unstructured.Unstructured) (result *unstructured.Unstructured, err error, )
func UntilHasAnnotation ¶
func UntilHasLabel ¶
func WaitUntilDeleted ¶
func WaitUntilDeleted(ri dynamic.ResourceInterface, stopCh <-chan struct{}, name string, subresources ...string) error
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package apply is a dynamic, client-side substitute for `kubectl apply` that tries to guess the right thing to do without any type-specific knowledge.
|
Package apply is a dynamic, client-side substitute for `kubectl apply` that tries to guess the right thing to do without any type-specific knowledge. |
Click to show internal directories.
Click to hide internal directories.