Md Irshad Sheikh 2f3fa42168 Add functionality for intel gpu device plugin
Pods of intel gpu device plugin will only be created on
nodes with label “intelgpu: enabled” which support intel
gpus with driver i915

In this commit, sysinv agent will check host GPU device
driver. once detected supported device, sysinv agent would
send request to sysinv conductor, and conductor would set
kubernetes label “intelgpu: enabled” for specific node if
file “/opt/platform/config/22.12/enabled_kube_plugins” exists and
"intelgpu" is in the file.

TEST PLAN:
PASS:  verified “intelgpu: enabled" using
      "kubectl get nodes controller-0 --show-labels" command.
PASS: checked whether daemonset pods are running or not, using command
      "kubectl get ds -A | grep 'gpu-plugin'"
Note: No GPU hardware is available, so all testing is done using commands.

Story: 2010604
Task: 47854

Depends-On: https://review.opendev.org/c/starlingx/ansible-playbooks/+/884395
Signed-off-by: Md Irshad Sheikh <mdirshad.sheikh@windriver.com>
Change-Id: I0f6498dc473ddadacfa361ffdcabdbce6c839eba
2023-05-31 10:25:05 -04:00
..