From e56a6e678f534fea6c7efb331fa3b4a0d9e591eb Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Tue, 14 Jan 2025 15:03:21 +0000 Subject: [PATCH] diff Signed-off-by: Austin Abro --- pkg/kube/interface.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/kube/interface.go b/pkg/kube/interface.go index 30be37f7c..f8e3c2ee2 100644 --- a/pkg/kube/interface.go +++ b/pkg/kube/interface.go @@ -34,9 +34,6 @@ type Interface interface { // Delete destroys one or more resources. Delete(resources ResourceList) (*Result, []error) - // Update updates one or more resources or creates the resource - // if it doesn't exist. - Update(original, target ResourceList, force bool) (*Result, error) // WatchUntilReady watches the resources given and waits until it is ready. // // This method is mainly for hook implementations. It watches for a resource to @@ -48,6 +45,11 @@ type Interface interface { // error. // TODO: Is watch until ready really behavior we want over the resources actually being ready? WatchUntilReady(resources ResourceList, timeout time.Duration) error + + // Update updates one or more resources or creates the resource + // if it doesn't exist. + Update(original, target ResourceList, force bool) (*Result, error) + // Build creates a resource list from a Reader. // // Reader must contain a YAML stream (one or more YAML documents separated