mirror of https://github.com/knative/docs.git
Update check version cmd (#2110)
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:
parent
e25657f2cd
commit
89c0c6bddc
|
@ -11,13 +11,11 @@ To obtain the version of the Knative component that you have running on your clu
|
|||
* Knative Serving
|
||||
|
||||
```bash
|
||||
kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels
|
||||
"serving.knative.dev/release"}}'
|
||||
kubectl get namespace knative-serving -o 'go-template={{index .metadata.labels "serving.knative.dev/release"}}'
|
||||
```
|
||||
|
||||
* Knative Eventing
|
||||
|
||||
```bash
|
||||
kubectl get namespace knative-eventing -o 'go-template={{index .metadata.labels
|
||||
"eventing.knative.dev/release"}}'
|
||||
kubectl get namespace knative-eventing -o 'go-template={{index .metadata.labels "eventing.knative.dev/release"}}'
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue