mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Attach/Detach Controller Kubelet Changes
This PR contains Kubelet changes to enable attach/detach controller control. * It introduces a new "enable-controller-attach-detach" kubelet flag to enable control by controller. Default enabled. * It removes all references "SafeToDetach" annoation from controller. * It adds the new VolumesInUse field to the Node Status API object. * It modifies the controller to use VolumesInUse instead of SafeToDetach annotation to gate detachment. * There is a bug in node-problem-detector that causes VolumesInUse to get reset every 30 seconds. Issue https://github.com/kubernetes/node-problem-detector/issues/9 opened to fix that.
This commit is contained in:
@@ -1983,8 +1983,12 @@ type NodeStatus struct {
|
||||
NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty"`
|
||||
// List of container images on this node
|
||||
Images []ContainerImage `json:"images,omitempty"`
|
||||
// List of attachable volume devices in use (mounted) by the node.
|
||||
VolumesInUse []UniqueDeviceName `json:"volumesInUse,omitempty"`
|
||||
}
|
||||
|
||||
type UniqueDeviceName string
|
||||
|
||||
// Describe a container image
|
||||
type ContainerImage struct {
|
||||
// Names by which this image is known.
|
||||
|
||||
Reference in New Issue
Block a user