Commit graph

610 commits

Author SHA1 Message Date
Brian
6da348baef Merge pull request #2088 from Ladicle/fix/helm
helm(version): set 5 seconds timeout
2017-03-10 18:46:10 -07:00
Taylor Thomas
185fb4f43c fix(tiller): Fixes problem with --wait on headless Services
Headless services (with `clusterIP` set to `None`) were reporting
as not being ready because they didn't have an IP address. This adds
a logic check to ignore those services.
2017-03-10 11:02:22 -08:00
Ladicle
c359ddf43c helm(version): set 5 seconds timeout
close #1972
2017-03-10 15:12:06 +09:00
Matthew Fisher
1aee50f5db move pkg cmd/helm/strvals to pkg/strvals
This is another useful package outside of cmd/helm.
2017-03-09 14:05:33 -08:00
Matt Butcher
3be8dfd818 Merge pull request #2068 from nokia/move-to-pkg
Fixing pkg->cmd call by moving helmpath under /pkg
2017-03-09 15:00:44 -07:00
libesz
0537b08779 helmpath goes under /pkg/helm/ 2017-03-08 20:09:46 +01:00
Steve Wilkerson
79a3db0a63 feat(helm): add support for required properties
Adds the `required` function in enginge.go to support required
properties in values.yml. When a chart developer wishes to specify
intent in requiring a value, they can use this function to declare
an error message that gets returned when chart rendering fails
when a required value is not present in values.yml.

Closes #1580
2017-03-08 12:49:23 -06:00
Fabian Ruff
43a6bcff40 Add .Template.BasePath to template system 2017-03-06 23:19:49 +01:00
Matt Butcher
0861b5e3f4 Merge pull request #2051 from dmonakhov/to-pool-v1
install: Return more user-friendly response on eexists
2017-03-06 14:58:14 -07:00
Matt Butcher
df827ab738 Merge pull request #2050 from jackzampolin/jz-to-toml
Add toToml template function
2017-03-06 14:37:55 -07:00
libesz
024fc5c806 Fixing pkg->cmd call by moving helmpath under /pkg
When downloader package moved to under /pkg, helmpath functions got called still from it, while it is under /cmd. This commit fixes the issue by moving helmpath after the downloader to have only cmd->pkg and pkg->pkg calls.
2017-03-04 21:37:18 +01:00
Taylor Thomas
570930bec0 Merge pull request #2046 from thomastaylor312/fix/2043-wait-panic
fix(tiller): Fixes `--wait` panic on upgrade
2017-03-02 15:56:35 -08:00
Dmitry Monakhov
33ace505cc install: Return more user-friendly response on eexists
Most newcomers hit helm's 'feature' there deleted instalations are not really deleted.
Use-case
# helm install  --name gitlab-ce-1 ./stable/gitlab-ce
# helm delete gitlab-ce-1
# helm list
# helm install  --name gitlab-ce-1 ./stable/gitlab-ce
Error: a release named "gitlab-ce-1" already exists

There is a lot duplicated bugs in bugzilla which simply explains that packages
should be deleted with --pure flag. But such bugs appeared again and again
because this behavior is not obvious.

Let's help user to figure out what happens ASAP.
2017-03-02 04:40:02 +03:00
Michelle Noorali
59bb5aa1b8 Merge pull request #2028 from qwangrepos/issue-2020
local path repo verbose - issue #2020
2017-03-01 20:39:02 -05:00
Taylor Thomas
9afa04b71b fix(tiller): Fixes --wait panic on upgrade
When manifests do not change, they didn't get populated with the
latest label info from the API server and then panic'd. This resolves
that bug

Closes #2043
2017-03-01 14:39:03 -08:00
Jack Zampolin
fc60d51be9 Add toToml function 2017-03-01 10:19:21 -08:00
Adam Reese
ba66af8c3d Merge pull request #2042 from bacongobbler/loadfiles
expose LoadFiles as a usable function
2017-03-01 10:11:47 -08:00
Matt Butcher
e74772f1ab Merge pull request #2021 from technosophos/feat/2019-dep-up-skip-refresh
feat(helm): add --skip-refresh flag to 'helm dep up'
2017-03-01 10:25:25 -07:00
Matthew Fisher
de6fb23e7a expose LoadFiles as a usable function
In third-party libraries, charts can be embedded in memory rather than in files, directories or
tarballs. Exposing LoadFiles allows a third-party library the ability to load static templates
in and spit out a *chart.Chart.
2017-02-28 15:47:40 -08:00
Qin Wang
0bef00078c local path repo verbose - issue #2020
Enable --debug flag to print debugging information when use
helm dep update --debug

closes #2020
2017-02-24 16:18:49 -08:00
Adam Reese
01114341f8 Merge pull request #2016 from adamreese/fix/2006-wait
fix(kube): fix wait and recreate
2017-02-24 09:08:00 -08:00
Michelle Noorali
80b93846b6 Merge pull request #2011 from michelleN/ref-1973
ref(*): remove error if no tests found on test cmd
2017-02-24 09:04:41 -08:00
Adam Reese
12db1f945f fix(kube): fix wait and recreate
fixes #2006
2017-02-24 08:58:25 -08:00
Matt Butcher
f7b010a140
feat(helm): add --skip-refresh flag to 'helm dep up'
This makes it possible to do a `dep up` without refetching all of
the repositories.While it's less safe, it's useful when doing many
updates in a short period of time (such as in a CI/CD setting)

Closes #2019
2017-02-23 17:22:03 -07:00
Maxim Ivanov
edd4e56112 fix(helm): resolve symlinks when loading chart
Possible fix for #1639
2017-02-23 23:09:57 +00:00
Michelle Noorali
e52746cbef ref(*): remove error if no tests found on test cmd
* resolves #1973
2017-02-22 14:26:16 -08:00
YuviPanda
cd7275069e Use backtick quotes to avoid excess escaping 2017-02-21 12:59:16 -08:00
YuviPanda
97a655d225 Add tests for ToJson 2017-02-21 01:08:18 -08:00
YuviPanda
5c52fe6ad6 Add ToJson and FromJson template functions 2017-02-21 00:34:17 -08:00
Matt Butcher
4829fad3a3
fix(helm): fix broken cache paths in repositories
A regression was committed during 2.2.0 that broke the repositories.yaml
file format, switching the cache path from relative to absolute. This
fixes the error.

Closes #1974
2017-02-15 12:30:13 -07:00
Adam Reese
fc315ab598 chore(*): bump to v2.2.0 2017-02-14 11:59:02 -08:00
Matt Butcher
44fbfc4263
fix(style): add missing comments 2017-02-14 11:47:46 -07:00
Matt Butcher
5d909d8c30 Merge pull request #1955 from michelleN/test-failure-hook
feat(*): add support for test-failure hook
2017-02-14 11:31:51 -07:00
Michelle Noorali
6a062e45b7 featt(*): add support for test-failure hook
resolves #1927
2017-02-14 08:12:30 -08:00
Adam Reese
790b90b95b fix(kube): prevent recreating pods without a selector 2017-02-13 15:42:51 -08:00
Matt Butcher
889902c381 Merge pull request #1917 from jascott1/tags_conds
feat(helm): add conditions and tags
2017-02-13 15:48:55 -07:00
Taylor Thomas
8dfea91056 Merge pull request #1923 from qwangrepos/local-path
feat(helm): add local path support for deps in requirements.yaml
2017-02-13 14:24:04 -08:00
Vaughn Dice
4a57b01a47
feat(helm): add cleanup flag to test command 2017-02-13 15:02:49 -07:00
Qin Wang
4b6b847b69 fix test chart path change from rebase
nit: fix spelling of dependency
2017-02-13 21:58:36 +00:00
Qin Wang
0153d273ce fix error checking from os.stat 2017-02-13 21:28:42 +00:00
Qin Wang
39a2d5ec29 feat(helm): add local path support for deps in requirements.yaml
fix change requests
2017-02-13 21:28:42 +00:00
Qin Wang
d72ff65325 feat(helm): add local path support for deps in requirements.yaml
The following commands:
helm dep update
helm dep build
are now able to take a requirements.yaml with dependency charts' repo defined as:
file://../local/path or file:///root/path

closes: #1884
2017-02-13 21:28:42 +00:00
Matt Butcher
5618afe3d4 Merge pull request #1922 from larryrensing/feat/list-namespaces
feat(*): add --namespace flag to 'helm list'
2017-02-13 11:14:50 -07:00
Justin Scott
17c6ae61da feat(helm): re-enable log warnings for tags and conditions 2017-02-11 13:39:15 -08:00
Justin Scott
fe864ad699 feat(helm): remove logging of tags/condition warnings to pass ci 2017-02-11 12:56:43 -08:00
Justin Scott
58c8aca1cc feat(helm): fixup if/ele,remove extra string casts, add comments 2017-02-11 12:56:43 -08:00
Justin Scott
004c5bcc88 feat(helm): fix condition when no requirements.yaml exists during tag/condition processing 2017-02-11 12:56:43 -08:00
Justin Scott
faae1f68b6 feat(helm): Check len of correct slice 2017-02-11 12:56:43 -08:00
Justin Scott
8ef733ca7d feat(helm): add conditions and tags
This feature adds the ability to selectively control the loading of charts using entries in top chart's values.
When 'helm install --set tags.mytag=true', charts with that tag will be enabled unless disabled in parent by condition.
When 'helm install --set mychart.enabled=true', charts with that yaml path specified will be enabled.

Closes #1837
2017-02-11 12:56:43 -08:00
Adam Reese
67fc1a21aa feat(kube): support upgrading ThirdPartyResources 2017-02-10 14:49:33 -08:00