Skip to content

Commit

Permalink
fix typo in load_plugins.go
Browse files Browse the repository at this point in the history
Signed-off-by: yxxhero <aiopsclub@163.com>
(cherry picked from commit 7fbde33)
  • Loading branch information
yxxhero authored and mattfarina committed Jun 12, 2024
1 parent b3640f1 commit 70b225c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/helm/load_plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func callPluginExecutable(pluginName string, main string, argv []string, out io.
func manuallyProcessArgs(args []string) ([]string, []string) {
known := []string{}
unknown := []string{}
kvargs := []string{"--kube-context", "--namespace", "-n", "--kubeconfig", "--kube-apiserver", "--kube-token", "--kube-as-user", "--kube-as-group", "--kube-ca-file", "--registry-config", "--repository-cache", "--repository-config", "--insecure-skip-tls-verify", "--tls-server-name"}
kvargs := []string{"--kube-context", "--namespace", "-n", "--kubeconfig", "--kube-apiserver", "--kube-token", "--kube-as-user", "--kube-as-group", "--kube-ca-file", "--registry-config", "--repository-cache", "--repository-config", "--kube-insecure-skip-tls-verify", "--kube-tls-server-name"}
knownArg := func(a string) bool {
for _, pre := range kvargs {
if strings.HasPrefix(a, pre+"=") {
Expand Down

0 comments on commit 70b225c

Please sign in to comment.