From 6869a99cebc4fec86327541cf22bb3722ab50567 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 28 May 2020 16:27:27 +0300 Subject: [PATCH] nfd-master: fix one docstring --- pkg/nfd-master/nfd-master.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/nfd-master/nfd-master.go b/pkg/nfd-master/nfd-master.go index f60b72136..11f040aa8 100644 --- a/pkg/nfd-master/nfd-master.go +++ b/pkg/nfd-master/nfd-master.go @@ -332,8 +332,9 @@ func (s *labelerServer) SetLabels(c context.Context, r *pb.SetLabelsRequest) (*p return &pb.SetLabelsReply{}, nil } -// advertiseFeatureLabels advertises the feature labels to a Kubernetes node -// via the API server. +// updateNodeFeatures ensures the Kubernetes node object is up to date, +// creating new labels and extended resources where necessary and removing +// outdated ones. Also updates the corresponding annotations. func updateNodeFeatures(helper apihelper.APIHelpers, nodeName string, labels Labels, annotations Annotations, extendedResources ExtendedResources) error { cli, err := helper.GetClient() if err != nil {