docs: avoid using grep to parse kubectl output (#404)

Updated the installation instructions to use only `kubectl`
for displaying the CNPG operator version.

Signed-off-by: George Gaál <gb12335@gmail.com>
This commit is contained in:
George Gaál 2025-07-02 11:57:52 +02:00 committed by GitHub
parent 2a75d40356
commit 5b69cdf253
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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**.