chore: fix some function names in comment

Signed-off-by: cuiyourong <cuiyourong@gmail.com>
This commit is contained in:
cuiyourong 2024-12-07 00:40:04 +08:00
parent d1681a4bcf
commit 0cfcb4ef5e
5 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ import (
"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
// but returns a map instead of a v1.Taint
func ParseTaint(st string) (map[string]string, error) {

View File

@ -398,7 +398,7 @@ func (b *AutoscalingGroupModelBuilder) buildSecurityGroups(c *fi.CloudupModelBui
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) {
t := &awstasks.AutoscalingGroup{
Name: fi.PtrTo(name),

View File

@ -22,7 +22,7 @@ import (
"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 {
var filterSets [][]ec2types.Filter

View File

@ -42,7 +42,7 @@ func (z *zone) ID() string {
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) {
return &resourceRecordSets{
zone: z,

View File

@ -896,7 +896,7 @@ func (tf *TemplateFunctions) KopsControllerEnv() []corev1.EnvVar {
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
func (tf *TemplateFunctions) OpenStackCCMTag() string {
var tag string
@ -918,7 +918,7 @@ func (tf *TemplateFunctions) OpenStackCCMTag() string {
return tag
}
// OpenStackCSI returns OpenStack csi current image
// OpenStackCSITag returns OpenStack csi current image
// with tag specified to k8s version
func (tf *TemplateFunctions) OpenStackCSITag() string {
var tag string