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

[f-gh-17449] Add lock sdk to documentation and update missing links #18520

Merged
merged 11 commits into from
Sep 19, 2023

Conversation

Juanadelacuesta
Copy link
Member

No description provided.

Copy link
Member

@gulducat gulducat left a 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?

website/content/api-docs/variables/index.mdx Outdated Show resolved Hide resolved
website/content/docs/concepts/variables.mdx Outdated Show resolved Hide resolved
website/content/docs/concepts/variables.mdx Outdated Show resolved Hide resolved
website/content/docs/concepts/variables.mdx Outdated Show resolved Hide resolved
@@ -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
Copy link
Member

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, not commands/var/lock directly, and commands/var has a list of the sub-commands, but lock 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

Copy link
Member

@gulducat gulducat left a 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! 🎉

@Juanadelacuesta Juanadelacuesta changed the title [f-gh-17449] Fix missing links in the documentation [f-gh-17449] Add lock sdk to documentation and update missing links Sep 19, 2023
@Juanadelacuesta Juanadelacuesta merged this pull request into f-gh-17449 Sep 19, 2023
@Juanadelacuesta Juanadelacuesta deleted the f-gh-17449-docs-2 branch September 19, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants