1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-17 05:48:21 +00:00

nfd-master: fix one docstring

This commit is contained in:
Markus Lehtonen 2020-05-28 16:27:27 +03:00
parent 769c518c3e
commit 6869a99ceb

View file

@ -332,8 +332,9 @@ func (s *labelerServer) SetLabels(c context.Context, r *pb.SetLabelsRequest) (*p
return &pb.SetLabelsReply{}, nil return &pb.SetLabelsReply{}, nil
} }
// advertiseFeatureLabels advertises the feature labels to a Kubernetes node // updateNodeFeatures ensures the Kubernetes node object is up to date,
// via the API server. // 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 { func updateNodeFeatures(helper apihelper.APIHelpers, nodeName string, labels Labels, annotations Annotations, extendedResources ExtendedResources) error {
cli, err := helper.GetClient() cli, err := helper.GetClient()
if err != nil { if err != nil {