-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Configuration flags for cluster autoscaler #805
Conversation
func (this *MigConfigFlag) String() string { | ||
var b bytes.Buffer | ||
b.WriteString("[") | ||
for i, npc := range *this { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is npc
? Please use more descriptive names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
|
||
type MigConfigFlag []MigConfig | ||
|
||
func (this *MigConfigFlag) String() string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just use combination of fmt.Sprintf
and strings.Join
? It'll be much more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
c43b8d0
to
d258ef0
Compare
} else { | ||
return fmt.Errorf("failed to parse mig url: %s", tokens[2]) | ||
} | ||
if len(migconfig.Url.String()) < 5 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment why 5
.
Configuration flags for cluster autoscaler
Configuration flags for cluster autoscaler
kubernetes/kubernetes#24404