mirror of https://github.com/kubernetes/kops.git
Merge pull request #16505 from luchenhan/master
chore: fix function names
This commit is contained in:
commit
aa0c454ece
|
@ -43,7 +43,7 @@ func (c *awsCloudImplementation) FindClusterStatus(cluster *kops.Cluster) (*kops
|
||||||
return status, nil
|
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) {
|
func (c *MockAWSCloud) FindClusterStatus(cluster *kops.Cluster) (*kops.ClusterStatus, error) {
|
||||||
etcdStatus, err := findEtcdStatus(c, cluster)
|
etcdStatus, err := findEtcdStatus(c, cluster)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -60,7 +60,7 @@ type BootstrapChannelBuilder struct {
|
||||||
|
|
||||||
var _ fi.CloudupModelBuilder = &BootstrapChannelBuilder{}
|
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,
|
// 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
|
// 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
|
return token, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCloud returns a Cloud, expecting the env var DIGITALOCEAN_ACCESS_TOKEN
|
// NewDOCloud returns a Cloud, expecting the env var DIGITALOCEAN_ACCESS_TOKEN
|
||||||
// NewCloud will return an err if DIGITALOCEAN_ACCESS_TOKEN is not defined
|
// NewDOCloud will return an err if DIGITALOCEAN_ACCESS_TOKEN is not defined
|
||||||
func NewDOCloud(region string) (DOCloud, error) {
|
func NewDOCloud(region string) (DOCloud, error) {
|
||||||
accessToken := os.Getenv("DIGITALOCEAN_ACCESS_TOKEN")
|
accessToken := os.Getenv("DIGITALOCEAN_ACCESS_TOKEN")
|
||||||
if accessToken == "" {
|
if accessToken == "" {
|
||||||
|
|
|
@ -938,7 +938,7 @@ type ClusterAutoscalerNodeGroup struct {
|
||||||
Other string
|
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 {
|
func (tf *TemplateFunctions) GetClusterAutoscalerNodeGroups() map[string]ClusterAutoscalerNodeGroup {
|
||||||
cluster := tf.Cluster
|
cluster := tf.Cluster
|
||||||
groups := make(map[string]ClusterAutoscalerNodeGroup)
|
groups := make(map[string]ClusterAutoscalerNodeGroup)
|
||||||
|
|
Loading…
Reference in New Issue