From 5b69cdf253c0e6323d8d6ec2570d0dcf49501831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ga=C3=A1l?= Date: Wed, 2 Jul 2025 11:57:52 +0200 Subject: [PATCH] docs: avoid using grep to parse kubectl output (#404) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the installation instructions to use only `kubectl` for displaying the CNPG operator version. Signed-off-by: George Gaál --- web/docs/installation.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/docs/installation.mdx b/web/docs/installation.mdx index 85bd41b..027d1e8 100644 --- a/web/docs/installation.mdx +++ b/web/docs/installation.mdx @@ -23,14 +23,14 @@ plugin. If installed in the default `cnpg-system` namespace, you can verify the version with: ```sh -kubectl get deployment -n cnpg-system cnpg-controller-manager -o yaml \ - | grep ghcr.io/cloudnative-pg/cloudnative-pg +kubectl get deployment -n cnpg-system cnpg-controller-manager \ + -o jsonpath="{.spec.template.spec.containers[*].image}" ``` Example output: ```output -image: ghcr.io/cloudnative-pg/cloudnative-pg:1.26.0 +ghcr.io/cloudnative-pg/cloudnative-pg:1.26.0 ``` The version **must be 1.26 or newer**.