intel-device-plugins-for-ku.../cmd
Eero Tamminen c15feea1f8 Add code for generating fake GPU sysfs + devfs files
To facilitate GPU plugin scalability testing on a real cluster.

Pre-existing (fake) sysfs & devfs content needs to be removed first:

* Fake devfs directory is mounted from host so OCI runtime can "mount"
  device files also to workloads requesting fake devices. This means
  that those files can persist over fake GPU plugin life-time, and
  earlier files need to be removed, as they may not match

* DaemonSet restarts failing init containers, so errors about content
  created on previous generator run would prevent getting logs of the
  real error on first generator run

* Before removal, check that removed directory content is as expected,
  to avoid accidentally removing host sysfs/devfs content (in case
  container was erronously granted access to the real thing)

Container runtime requires fake device files to real be devices:

* Use NULL devices to represent fake GPU devices:
  https://www.kernel.org/doc/Documentation/admin-guide/devices.txt

* Give more detailed logging for MkNod() failures as device
  node creation is most likely operation to fail when container
  does not have the necessary access rights

Created content is based on JSON config file (instead of e.g.
commandline options) so that (configMap providing) it can be updated
independently of the pod where generator is run.

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
2022-08-26 19:04:43 +03:00
..
dlb_plugin dlb: update DLB to v7.7.0 2022-07-03 15:08:14 +03:00
dsa_plugin Merge pull request #1048 from bart0sh/PR142-get-rid-of-sysfsDir 2022-06-09 13:55:57 +03:00
fpga_admissionwebhook set TLSMinVersion for webhook servers 2022-06-20 19:04:50 +03:00
fpga_crihook lint: enable wsl check 2021-12-17 11:48:48 +02:00
fpga_plugin docs: update cert-manager installation instructions 2022-02-16 11:26:37 +02:00
fpga_tool lint: enable wsl check 2021-12-17 11:48:48 +02:00
gpu_fakedev Add code for generating fake GPU sysfs + devfs files 2022-08-26 19:04:43 +03:00
gpu_nfdhook Deprecate debugfs GPU IP block version labels in NFD hook doc 2022-08-24 16:55:01 +03:00
gpu_plugin build: move to Go 1.19 and golangci-lint 1.48 because of that 2022-08-15 10:13:37 +03:00
iaa_plugin iaa: Add e2e tests 2022-06-09 15:00:25 +03:00
internal/pluginutils lint: enable wsl check 2021-12-17 11:48:48 +02:00
operator build: move to Go 1.19 and golangci-lint 1.48 because of that 2022-08-15 10:13:37 +03:00
qat_plugin build: move to Go 1.19 and golangci-lint 1.48 because of that 2022-08-15 10:13:37 +03:00
sgx_admissionwebhook set TLSMinVersion for webhook servers 2022-06-20 19:04:50 +03:00
sgx_epchook lint: enable wsl check 2021-12-17 11:48:48 +02:00
sgx_plugin sgx: add kind deployment notes for aesmd 2022-08-15 15:26:01 +08:00
vpu_plugin build: move to Go 1.19 and golangci-lint 1.48 because of that 2022-08-15 10:13:37 +03:00