Merge pull request #812 from iawia002/typo

Fix several typos
This commit is contained in:
karmada-bot 2021-10-13 15:40:02 +08:00 committed by GitHub
commit 25719f5aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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{

View File

@ -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
*/