Add Apply and ApplyStatus methods to dynamic ResourceInterface

Kubernetes-commit: 581ac7f4465ed97ddc5c62f04376ac427e121601
This commit is contained in:
Kevin Delgado
2022-04-12 20:24:15 +00:00
committed by Kubernetes Publisher
parent 2cf1a8ffd6
commit 4eab6be14c
3 changed files with 89 additions and 0 deletions

View File

@@ -40,6 +40,8 @@ type ResourceInterface interface {
List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, options metav1.PatchOptions, subresources ...string) (*unstructured.Unstructured, error)
Apply(ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions, subresources ...string) (*unstructured.Unstructured, error)
ApplyStatus(ctx context.Context, name string, obj *unstructured.Unstructured, options metav1.ApplyOptions) (*unstructured.Unstructured, error)
}
type NamespaceableResourceInterface interface {