From 248c07e012749cb191ae4a6c2e581dcf50c4a8af 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 d6fe4b79b..3c9b51b16 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 {