Merge pull request #127398 from my-git9/patch-23

kubeadm: update comment for ArgumentsFromCommand function in app/util/arguments
This commit is contained in:
Kubernetes Prow Robot 2024-09-25 11:40:00 +01:00 committed by GitHub
commit 4c4edfede5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,7 @@ import (
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/klog/v2"
kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
)
@ -65,7 +66,9 @@ func ArgumentsToCommand(base []kubeadmapi.Arg, overrides []kubeadmapi.Arg) []str
return command
}
// ArgumentsFromCommand parses a CLI command in the form "--foo=bar" to an Arg slice
// ArgumentsFromCommand parses a CLI command in the form "--foo=bar" to an Arg slice.
// This function's primary purpose is to parse the kubeadm-flags.env file, but can remain unused
// for some releases.
func ArgumentsFromCommand(command []string) []kubeadmapi.Arg {
args := []kubeadmapi.Arg{}
for i, arg := range command {