-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[f-gh-17449] Add lock sdk to documentation and update missing links #18520
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lookin pretty good!
It's difficult to give diagram feedback here, but I wonder if the "run protected function" box might be highlighted some more, to emphasize that it's the primary goal of the code, with everything around it just there to support/protect it. I also don't remember, and the diagram doesn't quite explain: what happens if/when the protected func does return? Does the leaser run it again?
@@ -194,3 +234,5 @@ See [Workload Associated ACL Policies] for more details. | |||
[workload identity]: /nomad/docs/concepts/workload-identity | |||
[Workload Associated ACL Policies]: /nomad/docs/concepts/workload-identity#workload-associated-acl-policies | |||
[ACL policy namespace rules]: /nomad/docs/other-specifications/acl-policy#namespace-rules | |||
[The Chubby Lock Service for Loosely-Coupled Distributed Systems]: https://research.google/pubs/pub27897/ | |||
[`nomad var lock`]: /nomad/docs/commands/var |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple things:
-
this links to
commands/var
, notcommands/var/lock
directly, andcommands/var
has a list of the sub-commands, butlock
is not among them yet -
if the intent is to show implemented usage of the golang lock-lease-function-protector, then that commands/var doc doesn't really get me there. maybe instead link to github instead? right now it could be https://github.com/hashicorp/nomad/blob/f-gh-17449/command/var_lock.go#L240 -- but once we're sure of the release, it might be
https://github.com/hashicorp/nomad/blob/release/1.7.0/command/var_lock.go#L240
Co-authored-by: Daniel Bennett <[email protected]>
Co-authored-by: Daniel Bennett <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe change the PR title to match the added docs, but LGTM! 🎉
No description provided.