From 6380bbbf3daf012632f8fafc9340e416b07ae3fc Mon Sep 17 00:00:00 2001 From: luchenhan Date: Mon, 29 Apr 2024 17:57:36 +0800 Subject: [PATCH] chore: fix function names Signed-off-by: luchenhan --- upup/pkg/fi/cloudup/awsup/status.go | 2 +- .../bootstrapchannelbuilder/bootstrapchannelbuilder.go | 2 +- upup/pkg/fi/cloudup/do/cloud.go | 4 ++-- upup/pkg/fi/cloudup/template_functions.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/upup/pkg/fi/cloudup/awsup/status.go b/upup/pkg/fi/cloudup/awsup/status.go index 18e415c842..0016139254 100644 --- a/upup/pkg/fi/cloudup/awsup/status.go +++ b/upup/pkg/fi/cloudup/awsup/status.go @@ -43,7 +43,7 @@ func (c *awsCloudImplementation) FindClusterStatus(cluster *kops.Cluster) (*kops return status, nil } -// FindEtcdStatus discovers the status of the cluster, by looking for the tagged etcd volumes +// FindClusterStatus discovers the status of the cluster, by looking for the tagged etcd volumes func (c *MockAWSCloud) FindClusterStatus(cluster *kops.Cluster) (*kops.ClusterStatus, error) { etcdStatus, err := findEtcdStatus(c, cluster) if err != nil { diff --git a/upup/pkg/fi/cloudup/bootstrapchannelbuilder/bootstrapchannelbuilder.go b/upup/pkg/fi/cloudup/bootstrapchannelbuilder/bootstrapchannelbuilder.go index 7c1e8c8896..59532b5766 100644 --- a/upup/pkg/fi/cloudup/bootstrapchannelbuilder/bootstrapchannelbuilder.go +++ b/upup/pkg/fi/cloudup/bootstrapchannelbuilder/bootstrapchannelbuilder.go @@ -60,7 +60,7 @@ type BootstrapChannelBuilder struct { var _ fi.CloudupModelBuilder = &BootstrapChannelBuilder{} -// networkSelector is the labels set on networking addons +// networkingSelector is the labels set on networking addons // // The role.kubernetes.io/networking is used to label anything related to a networking addin, // so that if we switch networking plugins (e.g. calico -> weave or vice-versa), we'll replace the diff --git a/upup/pkg/fi/cloudup/do/cloud.go b/upup/pkg/fi/cloudup/do/cloud.go index 6a2028083a..5e5e670a8a 100644 --- a/upup/pkg/fi/cloudup/do/cloud.go +++ b/upup/pkg/fi/cloudup/do/cloud.go @@ -107,8 +107,8 @@ func (t *TokenSource) Token() (*oauth2.Token, error) { return token, nil } -// NewCloud returns a Cloud, expecting the env var DIGITALOCEAN_ACCESS_TOKEN -// NewCloud will return an err if DIGITALOCEAN_ACCESS_TOKEN is not defined +// NewDOCloud returns a Cloud, expecting the env var DIGITALOCEAN_ACCESS_TOKEN +// NewDOCloud will return an err if DIGITALOCEAN_ACCESS_TOKEN is not defined func NewDOCloud(region string) (DOCloud, error) { accessToken := os.Getenv("DIGITALOCEAN_ACCESS_TOKEN") if accessToken == "" { diff --git a/upup/pkg/fi/cloudup/template_functions.go b/upup/pkg/fi/cloudup/template_functions.go index 246ca79212..02257f4ce5 100644 --- a/upup/pkg/fi/cloudup/template_functions.go +++ b/upup/pkg/fi/cloudup/template_functions.go @@ -938,7 +938,7 @@ type ClusterAutoscalerNodeGroup struct { Other string } -// GetClusterAutoscalerGroups returns a map containing ClusterAutoscaler info for each instance group of type Node. +// GetClusterAutoscalerNodeGroups returns a map containing ClusterAutoscaler info for each instance group of type Node. func (tf *TemplateFunctions) GetClusterAutoscalerNodeGroups() map[string]ClusterAutoscalerNodeGroup { cluster := tf.Cluster groups := make(map[string]ClusterAutoscalerNodeGroup)