mirror of https://github.com/kubernetes/kops.git
chore: fix function names
Signed-off-by: luchenhan <hanluchen@aliyun.com>
This commit is contained in:
parent
c6bb40ed32
commit
6380bbbf3d
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 == "" {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue