Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] fix io.WithOptimisticLock typo #7

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading