Skip to content

Commit 8ad090e

Browse files
authored
Merge pull request #2017 from matteoolivi/add_comment_on_struct_pointer_to_create
📖 Advertise struct pointer requirement for Create
2 parents 7399a3a + 371f601 commit 8ad090e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/client/interfaces.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ type Reader interface {
6060

6161
// Writer knows how to create, delete, and update Kubernetes objects.
6262
type Writer interface {
63-
// Create saves the object obj in the Kubernetes cluster.
63+
// Create saves the object obj in the Kubernetes cluster. obj must be a
64+
// struct pointer so that obj can be updated with the content returned by the Server.
6465
Create(ctx context.Context, obj Object, opts ...CreateOption) error
6566

6667
// Delete deletes the given obj from Kubernetes cluster.

0 commit comments

Comments
 (0)