Skip to content

Commit

Permalink
Don't set resourceVersion for objects to be created
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Dec 10, 2024
1 parent 479c379 commit 142fd18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func CreateOrPatchE(ctx context.Context, c client.Client, obj client.Object, tra
if err != nil {
return kutil.VerbUnchanged, err
}
mod.SetResourceVersion("")
err = c.Create(ctx, mod, createOpts...)
if err != nil {
return kutil.VerbUnchanged, err
Expand Down

0 comments on commit 142fd18

Please sign in to comment.