mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-16 21:38:23 +00:00
nfd-master: fix one docstring
This commit is contained in:
parent
769c518c3e
commit
6869a99ceb
1 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue