Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWithKubelet ¶
func RegisterWithRestartHandler ¶
func RegisterWithRestartHandler( ctx context.Context, restart func() error, socketPath string, log *zerolog.Logger, errCh chan<- error) (func(), error)
RegisterWithRestartHandler watches for the kubelet socket file and re-registers the plugin with the kubelet during a restart. See https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#handling-kubelet-restarts
Types ¶
type Device ¶
type Device struct { ID string Health DeviceHealth }
Device represents a device managed by this plugin.
type DeviceHealth ¶
type DeviceHealth string
const ( Healthy DeviceHealth = v1beta1.Healthy Unhealthy DeviceHealth = v1beta1.Unhealthy )
func (DeviceHealth) String ¶
func (h DeviceHealth) String() string
type DeviceState ¶
DeviceState maintains the last seen of a device at a given timestamp.
Click to show internal directories.
Click to hide internal directories.