Fix several typos

Signed-off-by: iawia002 <z2d@jifangcheng.com>
This commit is contained in:
iawia002 2021-09-27 14:55:26 +08:00
parent 331c8fe0f9
commit df019308be
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ type NodeInfo struct {
IdleResource *util.Resource 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 { func NewNodeInfo(node *corev1.Node) *NodeInfo {
allocatableResource := util.NewResource(node.Status.Allocatable) allocatableResource := util.NewResource(node.Status.Allocatable)
return &NodeInfo{ return &NodeInfo{

View File

@ -44,7 +44,7 @@ type objectWatcherImpl struct {
ClusterClientSetFunc ClientSetFunc 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 { func NewObjectWatcher(kubeClientSet client.Client, restMapper meta.RESTMapper, clusterClientSetFunc ClientSetFunc) ObjectWatcher {
return &objectWatcherImpl{ return &objectWatcherImpl{
KubeClientSet: kubeClientSet, 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. 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 For reference: https://github.com/kubernetes-sigs/kubefed/blob/master/pkg/controller/util/propagatedversion.go#L30-L59
*/ */