From df019308bebbfd5cd7258eed24f26273b3bc4fd2 Mon Sep 17 00:00:00 2001 From: iawia002 Date: Mon, 27 Sep 2021 14:55:26 +0800 Subject: [PATCH] Fix several typos Signed-off-by: iawia002 --- pkg/estimator/server/nodes/node_info.go | 2 +- pkg/util/objectwatcher/objectwatcher.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/estimator/server/nodes/node_info.go b/pkg/estimator/server/nodes/node_info.go index e5a7bc87e..ad0ba202f 100644 --- a/pkg/estimator/server/nodes/node_info.go +++ b/pkg/estimator/server/nodes/node_info.go @@ -16,7 +16,7 @@ type NodeInfo struct { IdleResource *util.Resource } -// NewNodeInfo returns a instance of NodeInfo. The initial IdleResource equals with AllocatableResource. +// NewNodeInfo returns an instance of NodeInfo. The initial IdleResource equals with AllocatableResource. func NewNodeInfo(node *corev1.Node) *NodeInfo { allocatableResource := util.NewResource(node.Status.Allocatable) return &NodeInfo{ diff --git a/pkg/util/objectwatcher/objectwatcher.go b/pkg/util/objectwatcher/objectwatcher.go index 20452e541..d71610646 100644 --- a/pkg/util/objectwatcher/objectwatcher.go +++ b/pkg/util/objectwatcher/objectwatcher.go @@ -44,7 +44,7 @@ type objectWatcherImpl struct { ClusterClientSetFunc ClientSetFunc } -// NewObjectWatcher returns a instance of ObjectWatcher +// NewObjectWatcher returns an instance of ObjectWatcher func NewObjectWatcher(kubeClientSet client.Client, restMapper meta.RESTMapper, clusterClientSetFunc ClientSetFunc) ObjectWatcher { return &objectWatcherImpl{ KubeClientSet: kubeClientSet, @@ -226,7 +226,7 @@ func (o *objectWatcherImpl) NeedsUpdate(cluster *clusterv1alpha1.Cluster, desire } /* -This code is lifted from the kubefed codebase. It's a list of functions to determines whether the provided cluster +This code is lifted from the kubefed codebase. It's a list of functions to determine whether the provided cluster object needs to be updated according to the desired object and the recorded version. For reference: https://github.com/kubernetes-sigs/kubefed/blob/master/pkg/controller/util/propagatedversion.go#L30-L59 */