Commit 64f25e1f authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #31531 from pmorie/kubelet-attach-detach-log

Automatic merge from submit-queue Add log message in Kubelet when controller attach/detach is enabled Adds a message to the Kubelet log indicating whether controller attach/detach is enabled for a node. cc @kubernetes/sig-storage
parents d1154ce9 3b23b9ba
...@@ -129,7 +129,10 @@ func (kl *Kubelet) initialNodeStatus() (*api.Node, error) { ...@@ -129,7 +129,10 @@ func (kl *Kubelet) initialNodeStatus() (*api.Node, error) {
node.Annotations = make(map[string]string) node.Annotations = make(map[string]string)
} }
glog.Infof("Setting node annotation to enable volume controller attach/detach")
node.Annotations[volumehelper.ControllerManagedAttachAnnotation] = "true" node.Annotations[volumehelper.ControllerManagedAttachAnnotation] = "true"
} else {
glog.Infof("Controller attach/detach is disabled for this node; Kubelet will attach and detach volumes")
} }
// @question: should this be place after the call to the cloud provider? which also applies labels // @question: should this be place after the call to the cloud provider? which also applies labels
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment