You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/mapkubeapis/environment.go
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
Copyright The Helm Authors.
2
+
Copyright
3
3
4
4
Licensed under the Apache License, Version 2.0 (the "License");
5
5
you may not use this file except in compliance with the License.
@@ -22,11 +22,13 @@ import (
22
22
23
23
// EnvSettings defined settings
24
24
typeEnvSettingsstruct {
25
-
DryRunbool
26
-
KubeConfigFilestring
27
-
KubeContextstring
28
-
Namespacestring
29
-
//RunV2 bool
25
+
DryRunbool
26
+
KubeConfigFilestring
27
+
KubeContextstring
28
+
Namespacestring
29
+
RunV2bool
30
+
StorageTypestring
31
+
TillerOutClusterbool
30
32
}
31
33
32
34
// New returns default env settings
@@ -45,6 +47,8 @@ func (s *EnvSettings) AddFlags(fs *pflag.FlagSet) {
45
47
s.AddBaseFlags(fs)
46
48
fs.StringVar(&s.KubeConfigFile, "kubeconfig", "", "path to the kubeconfig file")
47
49
fs.StringVar(&s.KubeContext, "kube-context", s.KubeContext, "name of the kubeconfig context to use")
48
-
fs.StringVar(&s.Namespace, "namespace", s.Namespace, "namespace scope of the release")
49
-
//fs.BoolVar(&s.RunV2, "v2", false, "run for Helm v2 release. The default is Helm v3.")
50
+
fs.StringVar(&s.Namespace, "namespace", s.Namespace, "namespace scope of the release. For Helm v2, this is the Tiller namespace e.g. kube-system")
51
+
fs.BoolVar(&s.RunV2, "v2", false, "run for Helm v2 release. The default is Helm v3.")
52
+
fs.BoolVar(&s.TillerOutCluster, "tiller-out-cluster", false, "for Helm v2 only - when Tiller is not running in the cluster e.g. Tillerless")
53
+
fs.StringVarP(&s.StorageType, "release-storage", "s", "secrets", "for Helm v2 only - release storage type/object. It can be 'secrets' or 'configmaps'. This is only used with the 'tiller-out-cluster' flag")
log.Printf("Release '%s' will be checked for deprecated Kubernetes APIs and will be updated if necessary to supported API versions.\n", mapOptions.ReleaseName)
0 commit comments