Update check version cmd ()

The previous one will meet error if user copy and paste the cmd directly.
This one is more convenient for user to test the cmd.
This commit is contained in:
Lv Jiawei 2020-01-18 03:39:03 +08:00 committed by Knative Prow Robot
parent e25657f2cd
commit 89c0c6bddc
1 changed files with 2 additions and 4 deletions

View File

@ -11,13 +11,11 @@ To obtain the version of the Knative component that you have running on your clu
* Knative Serving * Knative Serving
```bash ```bash
kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "serving.knative.dev/release"}}'
"serving.knative.dev/release"}}'
``` ```
* Knative Eventing * Knative Eventing
```bash ```bash
kubectl get namespace knative-eventing -o 'go-template={{index .metadata.labels kubectl get namespace knative-eventing -o 'go-template={{index .metadata.labels "eventing.knative.dev/release"}}'
"eventing.knative.dev/release"}}'
``` ```