Skip to content

Commit 2db4892

Browse files
gecubemnencia
authored andcommitted
Update installation.mdx
fix the kubectl command to not depend in external grep Signed-off-by: George Gaál <[email protected]>
1 parent 2a75d40 commit 2db4892

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/docs/installation.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ plugin. If installed in the default `cnpg-system` namespace, you can verify the
2323
version with:
2424

2525
```sh
26-
kubectl get deployment -n cnpg-system cnpg-controller-manager -o yaml \
27-
| grep ghcr.io/cloudnative-pg/cloudnative-pg
26+
kubectl get deployment -n cnpg-system cnpg-controller-manager \
27+
-o jsonpath="{.spec.template.spec.containers[*].image}"
2828
```
2929

3030
Example output:
3131

3232
```output
33-
image: ghcr.io/cloudnative-pg/cloudnative-pg:1.26.0
33+
ghcr.io/cloudnative-pg/cloudnative-pg:1.26.0
3434
```
3535

3636
The version **must be 1.26 or newer**.

0 commit comments

Comments
 (0)