Skip to content

Commit

Permalink
fix: changed jq to built-in go-templates format of kubectl output
Browse files Browse the repository at this point in the history
  • Loading branch information
Iaroslav Ivchenkov committed Dec 30, 2024
1 parent 193da4e commit 2e1a2a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Please make sure that docker is installed on your machine! It's required to run
```
The Demos in this repo require at least 2A v0.0.5 or newer. You can change the version of 2A by specifying the `HMC_VERSION` environment variable.
3. Monitor the installation of 2A (you probably will need to install `jq` to execute this command):
3. Monitor the installation of 2A:
```
PATH=$PATH:./bin kubectl get management hmc -o json | jq -r '.status.components | to_entries[] | "\(.key): \(.value.success // .value.error)"'
PATH=$PATH:./bin kubectl get management hmc -o go-template='{{range $key, $value := .status.components}}{{$key}}: {{if $value.success}}{{$value.success}}{{else}}{{$value.error}}{{end}}{{"\n"}}{{end}}'
```
If the installation of 2a succeeded, the output should look as follows
```
Expand Down

0 comments on commit 2e1a2a8

Please sign in to comment.