From ebab53516b6b4f1822e03bc7a11dd95140edfb63 Mon Sep 17 00:00:00 2001 From: lvjiawei Date: Fri, 17 Jan 2020 17:35:40 +0800 Subject: [PATCH] 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. --- docs/install/check-install-version.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/install/check-install-version.md b/docs/install/check-install-version.md index 8ddc53feb14..5e3bc994fc3 100644 --- a/docs/install/check-install-version.md +++ b/docs/install/check-install-version.md @@ -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"}}' ```