Skip to content

Commit

Permalink
Encode parmeters for metrics-server
Browse files Browse the repository at this point in the history
As reported by @jeka, this change escapes the commas in the
"args" parameter to the helm chart. Tested before/after the
patch and confirmed that all options are now being passed to
the deployment.

Closes: #73

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 28, 2019
1 parent 9193ccf commit 0ff2d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/metricsserver_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func makeInstallMetricsServer() *cobra.Command {
}

overrides := map[string]string{}
overrides["args"] = `{--kubelet-insecure-tls,--kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname}`
overrides["args"] = `{--kubelet-insecure-tls,--kubelet-preferred-address-types=InternalIP\,ExternalIP\,Hostname}`
fmt.Println("Chart path: ", chartPath)
outputPath := path.Join(chartPath, "metrics-server/rendered")

Expand Down

0 comments on commit 0ff2d67

Please sign in to comment.