Commit graph

836 commits

Author SHA1 Message Date
Matthew Fisher
bb5db61325 Merge pull request #2781 from jascott1/i2755-template
feat(helm): add `template` command
2017-09-05 10:09:23 -07:00
Matt Butcher
7186fcf240 Merge pull request #2808 from ebabani/master
'helm upgrade --install' uses the namespace from kube config.
2017-08-31 10:57:31 -06:00
Justin Scott
4a02a71f1e WIP feat(helm): add template command
This adds the functionality from the helm-template plugin to allow the
rendering of templates without Tiller.

Closes #2755
2017-08-28 18:04:56 -07:00
Justin Scott
a2323f8658 Merge pull request #2818 from lichuqiang/master
fix typo in helm_fetch.md
2017-08-18 11:46:48 -07:00
Matt Butcher
a736c2a3fe Merge pull request #2636 from technosophos/feat/2332-max-history
feat(tiller): limit number of versions stored per release
2017-08-17 13:33:10 -06:00
lichuqiang
ceb953c5b0 fix typo 2017-08-17 11:27:09 +08:00
Matt Butcher
04a0659b3e Merge pull request #2809 from rocky-nupt/feature-read-from-STDIN
feat(helm):Support reading the values file from STDIN
2017-08-16 15:52:18 -06:00
xuhaigang
084dff477e feat(helm):Support reading the values file from STDIN
We can use the command like
<pre>sed "s|foo|bar|g" values-template.yaml | helm install -f - stable/foo</pre>

This may be helpful in scripting.

Closes #2709
2017-08-16 16:39:07 +08:00
Ergin Babani
edb5be3ac5 'helm upgrade --install' uses the namespace from kube config.
Use the current kube config namespace by default if --namespace is not specified.
This makes 'helm upgrade --install' and 'helm install' handle namespaces
the same way.
2017-08-15 01:19:33 -04:00
Matt Butcher
0853f4906a
feat(tiller): limit number of versions stored per release
This adds a new configuration option to Tiller to limit the number of
records stored per release.

Tiller stores historical release information (helm history, helm
rollback). This makes it possible to set a maximum number of versions
per release.

To enable this feature, use `helm init --history-max NNN`. Note that
because of the restrictions on Deployment objects, you will have to
re-install Tiller to add a limit.

Along the way, I found an unreported bug in the Memory storage driver.
This fixes that bug and adds substantially more tests to catch
regressions.

Closes #2332
2017-08-10 12:01:20 -06:00
Maciej Kwiek
9c4bb14673 Delete old deps after chart deps are updated
This change changes the order of operations in
pkg/downloader.Manager.downloadAll

Old charts are moved to tmp directory which is restored in case any
dependency update fails. Otherwise tmp dir is deleted.
2017-08-10 17:36:00 +02:00
Maciej Strzelecki
e61ee5c54e fix(helm): pass os.stdin when executing a plugin (#2740) 2017-08-04 08:57:34 -07:00
Baofa Fan
43ce6b57da delete secret when helm reset (#2715)
* delete secret when helm reset

* add test

* expected 3 actions
2017-08-04 08:55:52 -07:00
Taylor Thomas
8fc88ab626 Merge pull request #2681 from at1012/at-helm-list
feat(2063): Better 'helm list' visibility into state of pending upgrades
2017-07-20 21:46:27 -07:00
Adam Reese
7112a48af6
ref(helm): refactor cleanup of environment after tests run 2017-07-14 11:08:50 -07:00
Adam Reese
a29e610938
fix(helm): fix flag parsing once and for all 2017-07-14 11:08:50 -07:00
Aishwarya Thangappa
915e7023c4 Added more granular statuses 2017-07-13 15:20:07 -07:00
Aishwarya Thangappa
64bab308fb Added unit tests 2017-07-12 15:04:34 -07:00
Aishwarya Thangappa
3d4361ca1f Modified release_update and release_rollback 2017-07-12 15:04:34 -07:00
Taylor Thomas
564ba7ba7c fix(dep): Fixes out of date dependency info
The help text for `helm dep` contained out of date info about
referring to a chart repo by name vs. URL.
2017-07-11 16:56:29 -07:00
Matt Butcher
b671888ff4
fix(helm): fix helm get subcommands
This correctly sets up the tunnel for `helm get values`, `helm get
manifest`, and `helm get hooks`.

Closes #2617
2017-07-11 16:08:19 -06:00
Adam Reese
876cbc205c
fix(helm): support HELM_HOME during plugin loading
closes #2630
2017-07-11 14:26:25 -07:00
Adam Reese
dd952e61f0
fix(helm): load home from flags during runtime 2017-07-11 11:42:30 -07:00
Maciej Strzelecki
46275612c3
feat(helm): add -a flag to 'helm list'
There's 'helm get values -a' already. I always try to use 'helm list -a'
spontaneously.
2017-07-10 15:20:29 +02:00
Justin Scott
8cac493557 Capitalize 'helm' text in init.go. 2017-06-29 16:33:00 -07:00
Steven E. Harris
24238bbe20 Merge pull request #2601 from jascott1/cap_init
feat(helm): Correct capitalization and punctuation for all user facing text
2017-06-29 14:44:14 -04:00
Matt Butcher
f0af7d60e7 Merge pull request #2592 from raisemarketplace/compare
ref(helm): consolidate vars() function
2017-06-29 12:19:57 -06:00
Justin Scott
37e5f76f9e Capitalize 'helm' text that was missed. 2017-06-27 10:21:30 -07:00
Justin Scott
b704947d54 Fix broken tests due to "server-side" text change. 2017-06-26 14:41:00 -07:00
Justin Scott
af4c243ee3 Correct punctuation and capitalization for user facing strings. 2017-06-26 10:23:26 -07:00
Michelle Noorali
29c4709b5e Merge pull request #2550 from michelleN/export-fake-release-client
ref(helm): make FakeReleaseClient public
2017-06-23 14:38:36 -04:00
Michelle Noorali
8a99a4aa6f ref(helm): rename FakeReleaseClient -> FakeClient 2017-06-21 20:27:14 -04:00
Sushil Kumar
f476f83e83 <chart>.tgz will now be downloaded to "$HELM_HOME/cache/archive" directory (#2558)
* <chart>.tgz  will now be downloaded to "$HELM_HOME/cache/archive" directory

Fixes https://github.com/kubernetes/helm/issues/2142

* Added archive location to helm init
2017-06-19 10:26:42 -07:00
Patrick Mahoney
9e62777a56 ref(helm): consolidate vars() function 2017-06-19 10:30:37 -05:00
Adam Reese
a658d24ccd
ref(tiller): refactor out cobra from tiller 2017-06-11 19:39:58 -07:00
Adam Reese
401f8bcc18 Merge pull request #2563 from adamreese/ref/code-cleanup
ref(helm): mix bag of syntax cleanup in cmd/helm
2017-06-09 09:57:39 -07:00
Matt Butcher
ecef026b68 Merge pull request #2545 from technosophos/feat/set-list-index
feat(helm): support array index format for --set.
2017-06-08 14:34:26 -06:00
Adam Reese
b671077de1
ref(helm): mix bag of syntax cleanup in cmd/helm 2017-06-08 13:08:41 -07:00
Steven E. Harris
9f9b3e8729 Use versioned API types from the client-go library (#2524)
* Use versioned API types from the client-go library

Wherever possible, use the k8s.io/client-go/kubernetes.Interface type
in favor of the client-related types from package

  k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset

The latter are still required by the kubectl "reaper" types used in
the "installer" and "kube" packages.

* Accept the default deployment replica count of one

Don't bother requesting a single replica explicitly.
2017-06-08 12:30:59 -07:00
Matt Butcher
c01c7318ab
feat(helm): support array index format for --set.
This adds support for specifying list position with an array index using
`--set`. For example, this now works: `--set servers[0].port=8080`
2017-06-08 12:15:03 -06:00
Taylor Thomas
eb2882d750 Merge pull request #2549 from thomastaylor312/fix/broken_unit_test
fix(tests): Fixes broken unit test
2017-06-07 10:06:41 -07:00
Adam Reese
a98f701a62 Merge pull request #2553 from adamreese/fix/helm-home-stdout
fix(helm): helm home print to stdout
2017-06-07 09:36:31 -07:00
Adam Reese
985dbae2ac
fix(helm): helm home print to stdout
cobra prints to stderr by default
2017-06-07 08:53:23 -07:00
Michelle Noorali
70520efac4 ref(helm): make FakeReleaseClient public
so it can be used by other projects that
use the helm client
2017-06-07 01:37:55 -04:00
Taylor Thomas
5cfb4e8cf8 fix(tests): Fixes broken unit test
The new unit test was not passing an explict subcommand arg to the
root command in the unit test.
2017-06-06 22:17:26 -07:00
Matt Butcher
52a3405b1e Merge pull request #2542 from sushilkm/issues/2128
Allow updating chart dependencies when packaging a chart
2017-06-06 16:39:33 -06:00
Sushil Kumar
4ddd832f35 Use download manager directly 2017-06-06 15:24:43 -07:00
Taylor Thomas
8a0e051c1d fix(helm): Ensures tiller pod lands on a linux node
Without a node selector to ensure that tiller deploys on a linux node,
the tiller pod can have issues starting in a mixed cluster.

Fixes #2420
2017-06-05 22:46:09 -07:00
willise
c8b8c1e6d6 fix(helm): modify helm repo update help info
The former help info may cause misunderstanding that this command
can update content of charts existing in remote respositories while
it does pull charts' info from remote repositories.

This trivial modification leads better understanding.
2017-06-06 10:45:22 +08:00
Sushil Kumar
09bedff7d5 Allow updating chart dependencies when packaging a chart
Added -u flag that would cause helm dep up before running helm package

Fixes https://github.com/kubernetes/helm/issues/2128
2017-06-05 16:34:08 -07:00