Update version label in query command (#5441)

Replace dropped label 'serving.knative.dev/release' with 'app.kuberentes.io/version'
This commit is contained in:
Naveenraj M 2023-02-22 14:48:28 -07:00 committed by GitHub
parent cb705a3f2d
commit d7124a4ac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -6,14 +6,14 @@ depending on whether you installed Knative with YAML or with the Operator.
## If you installed with YAML
To verify the version of the Knative component that you have running on your cluster, query for the
`<component>.knative.dev/release` label.
`app.kubernetes.io/version` label in corresponding component namespace.
=== "Knative Serving"
Check the installed Knative Serving version by running the command:
```bash
{% raw %}
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 "app.kubernetes.io/version"}}'
{% endraw %}
```
@ -29,7 +29,7 @@ To verify the version of the Knative component that you have running on your clu
```bash
{% raw %}
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 "app.kubernetes.io/version"}}'
{% endraw %}
```