Skip to content

Commit

Permalink
[doc] fix io.WithOptimisticLock typo (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
harveyxia authored Nov 14, 2024
1 parent d516430 commit 4fe0f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/sdk-apply-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ To use the resource lock, do the following:
```golang
import "github.snooguts.net/reddit/achilles-sdk/pkg/io"

out.Apply(obj, io.WithResourceLock())
out.Apply(obj, io.WithOptimisticLock())
```

**Deleting key-value pairs from map types**
Expand All @@ -196,7 +196,7 @@ import "github.snooguts.net/reddit/achilles-sdk/pkg/io"
out.Apply(obj, io.AsUpdate())
```

If this is a 3rd party CRD, you will likely need to pair the usage of `AsUpdate()` with `WithResourceLock()` to avoid
If this is a 3rd party CRD, you will likely need to pair the usage of `AsUpdate()` with `WithOptimisticLock()` to avoid
overwriting fields your controller does not manage.

**Custom Management of Owner References**
Expand Down

0 comments on commit 4fe0f62

Please sign in to comment.