dsa: fix kubectl command line

Fixed kubectl command line to get allocatable DSA resources

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
This commit is contained in:
Ed Bartosh 2020-12-30 15:37:05 +02:00
parent 005db1b9cb
commit b007dc26f5

View File

@ -124,10 +124,13 @@ You can verify the plugin has been registered with the expected nodes by searchi
resource allocation status on the nodes:
```bash
$ kubectl get nodes -o=jsonpath="{range .items[*]}{.metadata.name}{'\n'}{' i915: '}{.status.allocatable.dsa\.intel\.com/*}{'\n'}"
$ kubectl get nodes -o go-template='{{range .items}}{{.metadata.name}}{{"\n"}}{{range $k,$v:=.status.allocatable}}{{" "}}{{$k}}{{": "}}{{$v}}{{"\n"}}{{end}}{{end}}' | grep '^\([^ ]\)\|\( dsa\)'
master
dsa.intel.com/wq-user-dedicated: 1
dsa.intel.com/wq-user-shared: 1
dsa.intel.com/wq-user-dedicated: 2
dsa.intel.com/wq-user-shared: 8
node1
dsa.intel.com/wq-user-dedicated: 4
dsa.intel.com/wq-user-shared: 20
```
### Testing the plugin