mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Fix kubelet flags.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
2bdca2b75f
commit
27105c90ec
@ -55,12 +55,6 @@ func (a *args) String() string {
|
|||||||
|
|
||||||
// Set function of flag.Value
|
// Set function of flag.Value
|
||||||
func (a *args) Set(value string) error {
|
func (a *args) Set(value string) error {
|
||||||
// Someone else is calling flag.Parse after the flags are parsed in the
|
|
||||||
// test framework. Use this to avoid the flag being parsed twice.
|
|
||||||
// TODO(random-liu): Figure out who is parsing the flags.
|
|
||||||
if flag.Parsed() {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
// Note that we assume all white space in flag string is separating fields
|
// Note that we assume all white space in flag string is separating fields
|
||||||
na := strings.Fields(value)
|
na := strings.Fields(value)
|
||||||
*a = append(*a, na...)
|
*a = append(*a, na...)
|
||||||
|
Loading…
Reference in New Issue
Block a user