Skip to content

Commit 0ff2d67

Browse files
committed
Encode parmeters for metrics-server
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) <alexellis2@gmail.com>
1 parent 9193ccf commit 0ff2d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/metricsserver_app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func makeInstallMetricsServer() *cobra.Command {
6666
}
6767

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

0 commit comments

Comments
 (0)