From 3b23b9ba9f23d107e28a685ec14ee6fd476f267d Mon Sep 17 00:00:00 2001 From: Paul Morie Date: Fri, 26 Aug 2016 12:26:52 -0400 Subject: [PATCH] Add log message in Kubelet when controller attach/detach is enabled --- pkg/kubelet/kubelet_node_status.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/kubelet/kubelet_node_status.go b/pkg/kubelet/kubelet_node_status.go index b0df4a986ed..6d8bc25a121 100644 --- a/pkg/kubelet/kubelet_node_status.go +++ b/pkg/kubelet/kubelet_node_status.go @@ -129,7 +129,10 @@ func (kl *Kubelet) initialNodeStatus() (*api.Node, error) { node.Annotations = make(map[string]string) } + glog.Infof("Setting node annotation to enable volume controller attach/detach") 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