Skip to content

Commit 3465059

Browse files
committed
Apply comes first
1 parent a1ba84e commit 3465059

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/client/interfaces.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ type Reader interface {
6161

6262
// Writer knows how to create, delete, and update Kubernetes objects.
6363
type Writer interface {
64+
// Apply applies the given apply configuration to the Kubernetes cluster.
65+
Apply(ctx context.Context, obj runtime.ApplyConfiguration, opts ...ApplyOption) error
66+
6467
// Create saves the object obj in the Kubernetes cluster. obj must be a
6568
// struct pointer so that obj can be updated with the content returned by the Server.
6669
Create(ctx context.Context, obj Object, opts ...CreateOption) error
@@ -78,9 +81,6 @@ type Writer interface {
7881

7982
// DeleteAllOf deletes all objects of the given type matching the given options.
8083
DeleteAllOf(ctx context.Context, obj Object, opts ...DeleteAllOfOption) error
81-
82-
// Apply applies the given apply configuration to the Kubernetes cluster.
83-
Apply(ctx context.Context, obj runtime.ApplyConfiguration, opts ...ApplyOption) error
8484
}
8585

8686
// StatusClient knows how to create a client which can update status subresource

0 commit comments

Comments
 (0)