提交 acd82672 编写于 作者: J JJ Asghar 提交者: tekton-robot

Update _index.md

Changed `name` to `generateName` because of the behavior of the `--dry-run` of `tkn`.
Changed the `tkn` command for the logs at the end, because of the `generateName` is different per run.
Signed-off-by: NJJ Asghar <jjasghar@gmail.com>
Signed-off-by: NPaul Czarkowski <username.taken@gmail.com>
上级 9c60f7b5
......@@ -349,7 +349,7 @@ After running the command above, the following `TaskRun` definition should be sh
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: getting-started
generateName: echo-run-
spec:
taskRef:
name: echo
......@@ -373,11 +373,11 @@ tkn task start echo --dry-run > taskRun.yaml
kubectl create -f taskRun.yaml
```
Tekton will now start running your `Task`. To see the logs of the `TaskRun`, run
Tekton will now start running your `Task`. To see the logs of the last `TaskRun`, run
the following `tkn` command:
```shell
tkn taskrun logs getting-started -f
tkn taskrun logs --last -f
```
It may take a few moments before your `Task` completes. When it executes, it should
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册