f.StringVar(&inst.keyFile,"key-file","","identify HTTPS client using this SSL key file")
f.StringVar(&inst.keyFile,"key-file","","identify HTTPS client using this SSL key file")
f.StringVar(&inst.caFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.StringVar(&inst.caFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.BoolVar(&inst.devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.")
f.BoolVar(&inst.devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.")
f.StringArrayVar(&inst.annotations,"annotations",[]string{},"set release annotations (can specify multiple or separate values with commas: key1=val1,key2=val2)")
returncmd
returncmd
}
}
@ -209,6 +211,11 @@ func (i *installCmd) run() error {
returnerr
returnerr
}
}
annotations,err:=parseAnnotations(i.annotations)
iferr!=nil{
returnerr
}
// If template is specified, try to run the template.
// If template is specified, try to run the template.
ifi.nameTemplate!=""{
ifi.nameTemplate!=""{
i.name,err=generateName(i.nameTemplate)
i.name,err=generateName(i.nameTemplate)
@ -245,7 +252,8 @@ func (i *installCmd) run() error {
f.StringVar(&upgrade.keyFile,"key-file","","identify HTTPS client using this SSL key file")
f.StringVar(&upgrade.keyFile,"key-file","","identify HTTPS client using this SSL key file")
f.StringVar(&upgrade.caFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.StringVar(&upgrade.caFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.BoolVar(&upgrade.devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.")
f.BoolVar(&upgrade.devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.")
f.StringArrayVar(&upgrade.annotations,"annotations",[]string{},"set release annotations (can specify multiple or separate values with commas: key1=val1,key2=val2)")
--ca-file string verify certificates of HTTPS-enabled servers using this CA bundle
--annotations stringArray set release annotations (can specify multiple or separate values with commas: key1=val1,key2=val2)
--cert-file string identify HTTPS client using this SSL certificate file
--ca-file string verify certificates of HTTPS-enabled servers using this CA bundle
--devel use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.
--cert-file string identify HTTPS client using this SSL certificate file
--dry-run simulate an install
--devel use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.
--key-file string identify HTTPS client using this SSL key file
--dry-run simulate an install
--keyring string location of public keys used for verification (default "~/.gnupg/pubring.gpg")
--key-file string identify HTTPS client using this SSL key file
-n, --name string release name. If unspecified, it will autogenerate one for you
--keyring string location of public keys used for verification (default "~/.gnupg/pubring.gpg")
--name-template string specify template used to name the release
-n, --name string release name. If unspecified, it will autogenerate one for you
--namespace string namespace to install the release into
--name-template string specify template used to name the release
--no-hooks prevent hooks from running during install
--namespace string namespace to install the release into
--replace re-use the given name, even if that name is already used. This is unsafe in production
--no-hooks prevent hooks from running during install
--repo string chart repository url where to locate the requested chart
--replace re-use the given name, even if that name is already used. This is unsafe in production
--set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)
--repo string chart repository url where to locate the requested chart
--timeout int time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks) (default 300)
--set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)
--tls enable TLS for request
--timeout int time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks) (default 300)
--tls-ca-cert string path to TLS CA certificate file (default "$HELM_HOME/ca.pem")
--tls enable TLS for request
--tls-cert string path to TLS certificate file (default "$HELM_HOME/cert.pem")
--tls-ca-cert string path to TLS CA certificate file (default "$HELM_HOME/ca.pem")
--tls-key string path to TLS key file (default "$HELM_HOME/key.pem")
--tls-cert string path to TLS certificate file (default "$HELM_HOME/cert.pem")
--tls-verify enable TLS for request and verify remote
--tls-key string path to TLS key file (default "$HELM_HOME/key.pem")
-f, --values valueFiles specify values in a YAML file (can specify multiple) (default [])
--tls-verify enable TLS for request and verify remote
--verify verify the package before installing it
-f, --values valueFiles specify values in a YAML file (can specify multiple) (default [])
--version string specify the exact chart version to install. If this is not specified, the latest version is installed
--verify verify the package before installing it
--wait if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout
--version string specify the exact chart version to install. If this is not specified, the latest version is installed
--wait if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout
```
```
### Options inherited from parent commands
### Options inherited from parent commands
@ -106,4 +107,4 @@ helm install [CHART]
### SEE ALSO
### SEE ALSO
* [helm](helm.md) - The Helm package manager for Kubernetes.
* [helm](helm.md) - The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on 23-Jun-2017
###### Auto generated by spf13/cobra on 12-Jul-2017
--ca-file string verify certificates of HTTPS-enabled servers using this CA bundle
--annotations stringArray set release annotations (can specify multiple or separate values with commas: key1=val1,key2=val2)
--cert-file string identify HTTPS client using this SSL certificate file
--ca-file string verify certificates of HTTPS-enabled servers using this CA bundle
--devel use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.
--cert-file string identify HTTPS client using this SSL certificate file
--dry-run simulate an upgrade
--devel use development versions, too. Equivalent to version '>0.0.0-a'. If --version is set, this is ignored.
--force force resource update through delete/recreate if needed
--dry-run simulate an upgrade
-i, --install if a release by this name doesn't already exist, run an install
--force force resource update through delete/recreate if needed
--key-file string identify HTTPS client using this SSL key file
-i, --install if a release by this name doesn't already exist, run an install
--keyring string path to the keyring that contains public signing keys (default "~/.gnupg/pubring.gpg")
--key-file string identify HTTPS client using this SSL key file
--namespace string namespace to install the release into (only used if --install is set) (default "default")
--keyring string path to the keyring that contains public signing keys (default "~/.gnupg/pubring.gpg")
--no-hooks disable pre/post upgrade hooks
--namespace string namespace to install the release into (only used if --install is set) (default "default")
--recreate-pods performs pods restart for the resource if applicable
--no-hooks disable pre/post upgrade hooks
--repo string chart repository url where to locate the requested chart
--recreate-pods performs pods restart for the resource if applicable
--reset-values when upgrading, reset the values to the ones built into the chart
--repo string chart repository url where to locate the requested chart
--reuse-values when upgrading, reuse the last release's values, and merge in any new values. If '--reset-values' is specified, this is ignored.
--reset-values when upgrading, reset the values to the ones built into the chart
--set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)
--reuse-values when upgrading, reuse the last release's values, and merge in any new values. If '--reset-values' is specified, this is ignored.
--timeout int time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks) (default 300)
--set stringArray set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)
--tls enable TLS for request
--timeout int time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks) (default 300)
--tls-ca-cert string path to TLS CA certificate file (default "$HELM_HOME/ca.pem")
--tls enable TLS for request
--tls-cert string path to TLS certificate file (default "$HELM_HOME/cert.pem")
--tls-ca-cert string path to TLS CA certificate file (default "$HELM_HOME/ca.pem")
--tls-key string path to TLS key file (default "$HELM_HOME/key.pem")
--tls-cert string path to TLS certificate file (default "$HELM_HOME/cert.pem")
--tls-verify enable TLS for request and verify remote
--tls-key string path to TLS key file (default "$HELM_HOME/key.pem")
-f, --values valueFiles specify values in a YAML file (can specify multiple) (default [])
--tls-verify enable TLS for request and verify remote
--verify verify the provenance of the chart before upgrading
-f, --values valueFiles specify values in a YAML file (can specify multiple) (default [])
--version string specify the exact chart version to use. If this is not specified, the latest version is used
--verify verify the provenance of the chart before upgrading
--wait if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout
--version string specify the exact chart version to use. If this is not specified, the latest version is used
--wait if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout
```
```
### Options inherited from parent commands
### Options inherited from parent commands
@ -76,4 +77,4 @@ helm upgrade [RELEASE] [CHART]
### SEE ALSO
### SEE ALSO
* [helm](helm.md) - The Helm package manager for Kubernetes.
* [helm](helm.md) - The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on 23-Jun-2017
###### Auto generated by spf13/cobra on 12-Jul-2017