Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

Commit fba7f53

Browse files
authored
Merge pull request #1720 from fate-grand-order/master
correct misspelling "Separator"
2 parents 4081c07 + b8b47a8 commit fba7f53

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

metrics/heapster.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func main() {
6767
logs.InitLogs()
6868
defer logs.FlushLogs()
6969

70-
setLabelSeperator(opt)
70+
setLabelSeparator(opt)
7171
setMaxProcs(opt)
7272
glog.Infof(strings.Join(os.Args, " "))
7373
glog.Infof("Heapster version %v", version.HeapsterVersion)
@@ -354,6 +354,6 @@ func setMaxProcs(opt *options.HeapsterRunOptions) {
354354
}
355355
}
356356

357-
func setLabelSeperator(opt *options.HeapsterRunOptions) {
358-
util.SetLabelSeperator(opt.LabelSeperator)
357+
func setLabelSeparator(opt *options.HeapsterRunOptions) {
358+
util.SetLabelSeparator(opt.LabelSeparator)
359359
}

metrics/options/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type HeapsterRunOptions struct {
4646
Sinks flags.Uris
4747
HistoricalSource string
4848
Version bool
49-
LabelSeperator string
49+
LabelSeparator string
5050
DisableMetricExport bool
5151
}
5252

@@ -82,6 +82,6 @@ func (h *HeapsterRunOptions) AddFlags(fs *pflag.FlagSet) {
8282
fs.StringVar(&h.AllowedUsers, "allowed_users", "", "comma-separated list of allowed users")
8383
fs.StringVar(&h.HistoricalSource, "historical_source", "", "which source type to use for the historical API (should be exactly the same as one of the sink URIs), or empty to disable the historical API")
8484
fs.BoolVar(&h.Version, "version", false, "print version info and exit")
85-
fs.StringVar(&h.LabelSeperator, "label_seperator", ",", "seperator used for joining labels")
85+
fs.StringVar(&h.LabelSeparator, "label_separator", ",", "separator used for joining labels")
8686
fs.BoolVar(&h.DisableMetricExport, "disable_export", false, "Disable exporting metrics in api/v1/metric-export")
8787
}

metrics/util/util.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import (
2626
"time"
2727
)
2828

29-
var labelSeperator string
29+
var labelSeparator string
3030

31-
// Concatenates a map of labels into a Seperator-seperated key:value pairs.
31+
// Concatenates a map of labels into a Separator-separated key:value pairs.
3232
func LabelsToString(labels map[string]string) string {
3333
output := make([]string, 0, len(labels))
3434
for key, value := range labels {
@@ -37,11 +37,11 @@ func LabelsToString(labels map[string]string) string {
3737

3838
// Sort to produce a stable output.
3939
sort.Strings(output)
40-
return strings.Join(output, labelSeperator)
40+
return strings.Join(output, labelSeparator)
4141
}
4242

43-
func SetLabelSeperator(seperator string) {
44-
labelSeperator = seperator
43+
func SetLabelSeparator(separator string) {
44+
labelSeparator = separator
4545
}
4646

4747
func GetNodeLister(kubeClient *kube_client.Clientset) (v1listers.NodeLister, *cache.Reflector, error) {

0 commit comments

Comments
 (0)