From e14f025b96fd743048dbf5f194ef4dc360835d0f Mon Sep 17 00:00:00 2001 From: Justin Scott Date: Wed, 7 Jun 2017 11:28:13 -0700 Subject: [PATCH] WIP feat(helm): Add --node-selectors and --output flags to helm init This feature enables users to specify more control over where Tiller pod lands by allowing "node-selectors" to be specified. Alternatively, the "--output" flag will skip install and dump Tiller's raw Deployment manifest to stdout so user may alter it as they see fit (probably with a JSON manipulation tool like jq). Closes #2221 --- cmd/helm/installer/install.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/helm/installer/install.go b/cmd/helm/installer/install.go index 826d49496..d7146044a 100644 --- a/cmd/helm/installer/install.go +++ b/cmd/helm/installer/install.go @@ -122,6 +122,7 @@ func generateLabels(labels map[string]string) map[string]string { func parseNodeSelectors(labels string) map[string]string { kv := strings.Split(labels, ",") nodeSelectors := map[string]string{} + nodeSelectors["beta.kubernetes.io/os"] = "linux" for _, v := range kv { el := strings.Split(v, "=") if len(el) == 2 {