mirror of https://github.com/kubernetes/kops.git
chore: fix some function names in comment
Signed-off-by: cuiyourong <cuiyourong@gmail.com>
This commit is contained in:
parent
d1681a4bcf
commit
0cfcb4ef5e
|
@ -21,7 +21,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
// parseTaint takes a string and returns a map of its value
|
// ParseTaint takes a string and returns a map of its value
|
||||||
// it mimics the function from https://github.com/kubernetes/kubernetes/blob/master/pkg/util/taints/taints.go
|
// it mimics the function from https://github.com/kubernetes/kubernetes/blob/master/pkg/util/taints/taints.go
|
||||||
// but returns a map instead of a v1.Taint
|
// but returns a map instead of a v1.Taint
|
||||||
func ParseTaint(st string) (map[string]string, error) {
|
func ParseTaint(st string) (map[string]string, error) {
|
||||||
|
|
|
@ -398,7 +398,7 @@ func (b *AutoscalingGroupModelBuilder) buildSecurityGroups(c *fi.CloudupModelBui
|
||||||
return securityGroups, nil
|
return securityGroups, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// buildAutoscalingGroupTask is responsible for building the autoscaling task into the model
|
// buildAutoScalingGroupTask is responsible for building the autoscaling task into the model
|
||||||
func (b *AutoscalingGroupModelBuilder) buildAutoScalingGroupTask(c *fi.CloudupModelBuilderContext, name string, ig *kops.InstanceGroup) (*awstasks.AutoscalingGroup, error) {
|
func (b *AutoscalingGroupModelBuilder) buildAutoScalingGroupTask(c *fi.CloudupModelBuilderContext, name string, ig *kops.InstanceGroup) (*awstasks.AutoscalingGroup, error) {
|
||||||
t := &awstasks.AutoscalingGroup{
|
t := &awstasks.AutoscalingGroup{
|
||||||
Name: fi.PtrTo(name),
|
Name: fi.PtrTo(name),
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
"k8s.io/kops/upup/pkg/fi/cloudup/awsup"
|
"k8s.io/kops/upup/pkg/fi/cloudup/awsup"
|
||||||
)
|
)
|
||||||
|
|
||||||
// buildEc2FiltersForCluster returns the set of filters we must use to find all resources
|
// buildEC2FiltersForCluster returns the set of filters we must use to find all resources
|
||||||
func buildEC2FiltersForCluster(clusterName string) [][]ec2types.Filter {
|
func buildEC2FiltersForCluster(clusterName string) [][]ec2types.Filter {
|
||||||
var filterSets [][]ec2types.Filter
|
var filterSets [][]ec2types.Filter
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ func (z *zone) ID() string {
|
||||||
return "gossip:" + z.zoneInfo.Name
|
return "gossip:" + z.zoneInfo.Name
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResourceRecordsets returns the provider's ResourceRecordSets interface, or false if not supported.
|
// ResourceRecordSets returns the provider's ResourceRecordSets interface, or false if not supported.
|
||||||
func (z *zone) ResourceRecordSets() (dnsprovider.ResourceRecordSets, bool) {
|
func (z *zone) ResourceRecordSets() (dnsprovider.ResourceRecordSets, bool) {
|
||||||
return &resourceRecordSets{
|
return &resourceRecordSets{
|
||||||
zone: z,
|
zone: z,
|
||||||
|
|
|
@ -896,7 +896,7 @@ func (tf *TemplateFunctions) KopsControllerEnv() []corev1.EnvVar {
|
||||||
return envMap.ToEnvVars()
|
return envMap.ToEnvVars()
|
||||||
}
|
}
|
||||||
|
|
||||||
// OpenStackCCM returns OpenStack external cloud controller manager current image
|
// OpenStackCCMTag returns OpenStack external cloud controller manager current image
|
||||||
// with tag specified to k8s version
|
// with tag specified to k8s version
|
||||||
func (tf *TemplateFunctions) OpenStackCCMTag() string {
|
func (tf *TemplateFunctions) OpenStackCCMTag() string {
|
||||||
var tag string
|
var tag string
|
||||||
|
@ -918,7 +918,7 @@ func (tf *TemplateFunctions) OpenStackCCMTag() string {
|
||||||
return tag
|
return tag
|
||||||
}
|
}
|
||||||
|
|
||||||
// OpenStackCSI returns OpenStack csi current image
|
// OpenStackCSITag returns OpenStack csi current image
|
||||||
// with tag specified to k8s version
|
// with tag specified to k8s version
|
||||||
func (tf *TemplateFunctions) OpenStackCSITag() string {
|
func (tf *TemplateFunctions) OpenStackCSITag() string {
|
||||||
var tag string
|
var tag string
|
||||||
|
|
Loading…
Reference in New Issue