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

The terms in the hello-world docs need to be explained better #120

Closed
alexellis opened this issue May 18, 2020 · 5 comments
Closed

The terms in the hello-world docs need to be explained better #120

alexellis opened this issue May 18, 2020 · 5 comments
Labels
kind/documentation Categorizes issue or PR as related to documentation.

Comments

@alexellis
Copy link
Contributor

alexellis commented May 18, 2020

When reading the hello-world docs (a link is shown from setup.sh at the end) - there are a few confusing references that could be explained better for new users.

1) Unexplained literal value in example

$ tink workflow create -t <template-uuid> -r ‘{“device_1”:“mac/IP”}’ <- is that the literal value, or does this need elaborating to say that you can replace it with the MAC or IP?

Screenshot 2020-05-18 at 13 35 19

2) No context given on what the hardware UUID is or how it's meant to be generated

A few details to note:
* id is the hardware UUID

With the id - there is no explanation on what this is supposed to be used for. Is it just meant to be a randomly generated UUID with no relationship to anything? If so, why not provide that information to the user and a command to generate a uuid? i.e. uuid | tr "[:upper:]" "[:lower:]"

3) Is the link at the end of setup.sh still correct?

Also, should this be linking to somewhere on https://tinkerbell.org or to the docs here on GitHub?

We also have a rouge \n which should be removed

Screenshot 2020-05-18 at 13 44 05

4) What does device_1 mean?

Initial impressions - is device_1 a magic or hard-coded reference? I can't see it mentioned anywhere in the blog post.

Potential solution, quote the template in the post, so that people can see that device_1 will be injected:

version: '0.1'
name: hello_world_workflow
global_timeout: 600
tasks:
- name: "hello world"
  worker: "{{.device_1}}"
  actions:
  - name: "hello_world"
    image: hello-world
    timeout: 60

At the same time, you could explain what the workflow does

https://github.com/tinkerbell/tink/blob/master/docs/examples/hello-world.tmpl

@alexellis alexellis changed the title hardware id / UUID docs are confusing The terms in the hello-world docs need to be explained better May 18, 2020
@vishal-biyani vishal-biyani added the kind/documentation Categorizes issue or PR as related to documentation. label May 19, 2020
parauliya pushed a commit to infracloudio/tink that referenced this issue May 20, 2020
Following are the changes:
1. Removed the rougue "\n"
2. Replace the link of hello-world example from github docs to the tinkerbell.org website
gauravgahlot added a commit that referenced this issue May 20, 2020
mmlb pushed a commit to mmlb/tinkerbell-tink that referenced this issue May 21, 2020
Following are the changes:
1. Removed the rougue "\n"
2. Replace the link of hello-world example from github docs to the tinkerbell.org website
parauliya pushed a commit to infracloudio/tink that referenced this issue May 22, 2020
Following are the changes:
1. Removed the rougue "\n"
2. Replace the link of hello-world example from github docs to the tinkerbell.org website
@gauravgahlot
Copy link
Contributor

@alexellis I believe this can be closed now. Could you please verify?

@alexellis
Copy link
Contributor Author

Which PRs fixed this? Can you link me to them so that I can verify it?

@parauliya
Copy link
Contributor

parauliya commented May 28, 2020

@alexellis , The links are provided by @gauravgahlot fixed the same. You can go through them.
But most importantly, the link which was provided at the end of setup.sh has changed now. So you should go to the new link for the Hello world example (https://tinkerbell.org/examples/hello-world/) and see if everything, explained there are well descripted.

@gianarb
Copy link
Contributor

gianarb commented Aug 4, 2020

Thanks Alex!
@DailyAlice updated the example and I think it is now 100 times better! if you have any suggestions feel free to open a PR!

@gianarb gianarb closed this as completed Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

No branches or pull requests

5 participants