Skip to content

Commit 706e939

Browse files
committed
kubeadm: update comment for ArgumentsFromCommand function in app/util/arguments
Signed-off-by: xin.li <[email protected]>
1 parent 856475e commit 706e939

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/kubeadm/app/util/arguments.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525

2626
"k8s.io/apimachinery/pkg/util/sets"
2727
"k8s.io/klog/v2"
28+
2829
kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
2930
)
3031

@@ -65,7 +66,9 @@ func ArgumentsToCommand(base []kubeadmapi.Arg, overrides []kubeadmapi.Arg) []str
6566
return command
6667
}
6768

68-
// ArgumentsFromCommand parses a CLI command in the form "--foo=bar" to an Arg slice
69+
// ArgumentsFromCommand parses a CLI command in the form "--foo=bar" to an Arg slice.
70+
// This function's primary purpose is to parse the kubeadm-flags.env file, but can remain unused
71+
// for some releases.
6972
func ArgumentsFromCommand(command []string) []kubeadmapi.Arg {
7073
args := []kubeadmapi.Arg{}
7174
for i, arg := range command {

0 commit comments

Comments
 (0)