Skip to content

Commit f33059a

Browse files
authored
Merge pull request #16981 from cuiyourong/master
chore: fix some function names in comment
2 parents d1681a4 + 0cfcb4e commit f33059a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

pkg/apis/kops/util/taints.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"strings"
2222
)
2323

24-
// parseTaint takes a string and returns a map of its value
24+
// ParseTaint takes a string and returns a map of its value
2525
// it mimics the function from https://github.com/kubernetes/kubernetes/blob/master/pkg/util/taints/taints.go
2626
// but returns a map instead of a v1.Taint
2727
func ParseTaint(st string) (map[string]string, error) {

pkg/model/awsmodel/autoscalinggroup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func (b *AutoscalingGroupModelBuilder) buildSecurityGroups(c *fi.CloudupModelBui
398398
return securityGroups, nil
399399
}
400400

401-
// buildAutoscalingGroupTask is responsible for building the autoscaling task into the model
401+
// buildAutoScalingGroupTask is responsible for building the autoscaling task into the model
402402
func (b *AutoscalingGroupModelBuilder) buildAutoScalingGroupTask(c *fi.CloudupModelBuilderContext, name string, ig *kops.InstanceGroup) (*awstasks.AutoscalingGroup, error) {
403403
t := &awstasks.AutoscalingGroup{
404404
Name: fi.PtrTo(name),

pkg/resources/aws/filters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"k8s.io/kops/upup/pkg/fi/cloudup/awsup"
2323
)
2424

25-
// buildEc2FiltersForCluster returns the set of filters we must use to find all resources
25+
// buildEC2FiltersForCluster returns the set of filters we must use to find all resources
2626
func buildEC2FiltersForCluster(clusterName string) [][]ec2types.Filter {
2727
var filterSets [][]ec2types.Filter
2828

protokube/pkg/gossip/dns/provider/zone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (z *zone) ID() string {
4242
return "gossip:" + z.zoneInfo.Name
4343
}
4444

45-
// ResourceRecordsets returns the provider's ResourceRecordSets interface, or false if not supported.
45+
// ResourceRecordSets returns the provider's ResourceRecordSets interface, or false if not supported.
4646
func (z *zone) ResourceRecordSets() (dnsprovider.ResourceRecordSets, bool) {
4747
return &resourceRecordSets{
4848
zone: z,

upup/pkg/fi/cloudup/template_functions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ func (tf *TemplateFunctions) KopsControllerEnv() []corev1.EnvVar {
896896
return envMap.ToEnvVars()
897897
}
898898

899-
// OpenStackCCM returns OpenStack external cloud controller manager current image
899+
// OpenStackCCMTag returns OpenStack external cloud controller manager current image
900900
// with tag specified to k8s version
901901
func (tf *TemplateFunctions) OpenStackCCMTag() string {
902902
var tag string
@@ -918,7 +918,7 @@ func (tf *TemplateFunctions) OpenStackCCMTag() string {
918918
return tag
919919
}
920920

921-
// OpenStackCSI returns OpenStack csi current image
921+
// OpenStackCSITag returns OpenStack csi current image
922922
// with tag specified to k8s version
923923
func (tf *TemplateFunctions) OpenStackCSITag() string {
924924
var tag string

0 commit comments

Comments
 (0)