From b007dc26f572b1f6884036edc13e221ef0d0c94a Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 30 Dec 2020 15:37:05 +0200 Subject: [PATCH] dsa: fix kubectl command line Fixed kubectl command line to get allocatable DSA resources Signed-off-by: Ed Bartosh --- cmd/dsa_plugin/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd/dsa_plugin/README.md b/cmd/dsa_plugin/README.md index 78a62271..acfb9f9f 100644 --- a/cmd/dsa_plugin/README.md +++ b/cmd/dsa_plugin/README.md @@ -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