# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
DevicePluginPath is the folder the Device Plugin is expecting sockets to be on Only privileged pods have access to this path Note: Placeholder until we find a "standard path".
DevicePluginPathWindows Avoid failed to run Kubelet: bad socketPath, must be an absolute path: /var/lib/kubelet/device-plugins/kubelet.sock https://github.com/kubernetes/kubernetes/issues/93262 https://github.com/kubernetes/kubernetes/pull/93285#discussion_r458140701.
Healthy means that the device is healthy.
KubeletPreStartContainerRPCTimeoutInSecs is the timeout duration in secs for PreStartContainer RPC Timeout duration in secs for PreStartContainer RPC.
KubeletSocket is the path of the Kubelet registry socket.
KubeletSocketWindows is the path of the Kubelet registry socket on windows.
Unhealthy means that the device is unhealthy.
Version means current version of the API supported by kubelet.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
SupportedVersions provides a list of supported version.
# Structs
- Allocate is expected to be called during pod creation since allocation failures for any container would result in pod startup failure.
AllocateResponse includes the artifacts that needs to be injected into a container for accessing 'deviceIDs' that were mentioned as part of 'AllocateRequest'.
CDIDevice specifies a CDI device information.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
E.g:
struct Device { ID: "GPU-fef8089b-4820-abfc-e83e-94318197576e", Health: "Healthy", Topology: Node: ID: 1 }.
No description provided by the author
DeviceSpec specifies a host device to mount into a container.
No description provided by the author
ListAndWatch returns a stream of List of Devices Whenever a Device state change or a Device disappears, ListAndWatch returns the new list.
Mount specifies a host volume to mount into a container.
No description provided by the author
PreferredAllocationRequest is passed via a call to GetPreferredAllocation() at pod admission time.
PreferredAllocationResponse returns a preferred allocation, resulting from a PreferredAllocationRequest.
- PreStartContainer is expected to be called before each container start if indicated by plugin during registration phase.
PreStartContainerResponse will be send by plugin in response to PreStartContainerRequest.
No description provided by the author
No description provided by the author
UnimplementedDevicePluginServer can be embedded to have forward compatible implementations.
UnimplementedRegistrationServer can be embedded to have forward compatible implementations.
# Interfaces
No description provided by the author
No description provided by the author
DevicePluginClient is the client API for DevicePlugin service.
DevicePluginServer is the server API for DevicePlugin service.
RegistrationClient is the client API for Registration service.
RegistrationServer is the server API for Registration service.