diff --git a/pkg/node-controller/controller.go b/pkg/node-controller/controller.go index 09670ee4a..1f573ece6 100644 --- a/pkg/node-controller/controller.go +++ b/pkg/node-controller/controller.go @@ -381,7 +381,7 @@ func (c *Controller) syncHandler(ctx context.Context, key string) error { }, } allocations := []v1alpha1.NodeSliceAllocation{} - logger.Info(fmt.Sprintf("node slice: %v\n", nodeslice)) + logger.Info(fmt.Sprintf("node slice: %v", nodeslice)) //TODO: handle case when full, we could fire an event subnets, err := iphelpers.DivideRangeBySize(nodeslice.Spec.Range, ipamConf.NodeSliceSize) @@ -475,7 +475,7 @@ func (c *Controller) syncHandler(ctx context.Context, key string) error { } } } - + return nil } @@ -493,7 +493,7 @@ func (c *Controller) getNodeList() ([]*corev1.Node, error) { return nodes, nil } -// since multiple NADs can be attached to the same BE Network, we need to make sure their settings match in this case +// since multiple NADs can be attached to the same network, we need to make sure their settings match in this case func (c *Controller) checkForMultiNadMismatch(name, namespace string) error { nad, err := c.nadLister.NetworkAttachmentDefinitions(namespace).Get(name) if err != nil {