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

Update _index.md

Changed from `apply` to `create` due to the declarative nature of `apply`. You can not use `generateName` with `apply`.
The error that happens is:

```
❯ kubectl apply -f taskRun.yml
error: error when retrieving current configuration of:
Resource: "tekton.dev/v1beta1, Resource=taskruns", GroupVersionKind: "tekton.dev/v1beta1, Kind=TaskRun"
Name: "", Namespace: "hello-world-pipeline"
from server for: "taskRun.yml": resource name may not be empty
```
The following is the correct behavior. 
```
❯ kubectl create -f taskRun.yml
taskrun.tekton.dev/echo-run-c5dtm created
```
Please look at:  https://github.com/kubernetes/kubernetes/issues/44501#issuecomment-294255660Signed-off-by: NJJ Asghar <jjasghar@gmail.com>
上级 0e163e10
......@@ -369,8 +369,8 @@ Start with `kubectl`:
```shell
# use tkn's --dry-run option to save the TaskRun to a file
tkn task start echo --dry-run > taskRun.yaml
# apply the TaskRun
kubectl apply -f taskRun.yaml
# create the TaskRun
kubectl create -f taskRun.yaml
```
Tekton will now start running your `Task`. To see the logs of the `TaskRun`, run
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册