Commit graph

635 commits

Author SHA1 Message Date
Justin Scott
3bf143f052 Fix codefences and nits in charts.md. Correct whitespace in charts. Add clarity to description of ImportValues requirements field. 2017-03-31 10:19:08 -07:00
Justin Scott
7ea4d8c7c4 Refactor so parent's values win 2017-03-31 10:19:08 -07:00
Justin Scott
4a5721fb36 Fixup style and errors 2017-03-31 10:19:08 -07:00
Justin Scott
007bb9dbae Implement 'exports' convetion for simple list items 2017-03-31 10:19:08 -07:00
Justin Scott
2bd4d1d003 Cleanup old todo, unused log and value for ImportValues feature 2017-03-31 10:19:08 -07:00
Justin Scott
d1424f6c08 Handle missed error and make error messages unique 2017-03-31 10:19:08 -07:00
Justin Scott
0e81899f5f WIP feat(helm): import child values to parent
Implements a mechanism in requirements.yaml to allow the import
and re-parenting of value table from child chart.

Closes #1995
2017-03-31 10:19:08 -07:00
Taylor Thomas
890b6f5627 Merge pull request #2200 from seh/sort-rbac-roles-and-bindings
Sort dependent RBAC role and binding kinds during installation and uninstallation
2017-03-29 20:00:01 -07:00
Taylor Thomas
e03d605b88 Merge pull request #2194 from qwangrepos/bug-2103
fix(helm): local path in requirements.yaml relative to working dir
2017-03-29 19:32:35 -07:00
Steven E. Harris
7ccfc6d7d4 Sort dependent RBAC role and binding kinds
During installation and uninstallation, handle the RBAC-related
ClusterRole, ClusterRoleBinding, Role, and RoleBinding kinds in an
order that respects their potential referential integrity, namely that
ClusterRoleBindings can refer to ClusterRoles and ServiceAccounts, and
RoleBindings can refer to ClusterRoles, Roles, and ServiceAccounts.

Fixes #2199.
2017-03-29 17:31:21 -04:00
Qin Wang
e6b79e138b fix(helm): local path in requirements.yaml relative to working dir
closes bug: 2103
2017-03-28 22:03:00 -07:00
Taylor Thomas
b7af2e21e4 Merge pull request #2187 from johnw188/sortIndexOnDownload
fix(helm): Don't assume index.yaml is sorted
2017-03-28 19:59:01 -07:00
Anubhav Mishra
76ebf20aac fix(helm): fix typo 2017-03-28 16:32:05 -07:00
Anubhav Mishra
b208258f53 fix(helm): more quotation fixes 2017-03-28 16:20:17 -07:00
Anubhav Mishra
73fd0e4557 fix(tiller): now better formatting 2017-03-27 22:40:25 -07:00
Anubhav Mishra
c17ce5f9c1 fix(tiller): adding kind to tiller client logs
Closes #2162
2017-03-26 01:11:41 -07:00
John Welsh
e42f39a114 Forgot gofmt 2017-03-25 03:24:32 -07:00
John Welsh
f4486d4858 fix(helm): Don't assume index.yaml is sorted
This change sorts the helm index file after downloading from a repo.

Closes #2186
2017-03-25 01:57:25 -07:00
Sushil Kumar
cfd041eed5 Added unit tests
Added tests for:
- [ ] pkg/version/versions.go
- [ ] pkg/repo/repo.go
2017-03-23 16:11:01 -07:00
Adam Reese
390217d416 ref(helmpath): simplify path building of helmpath 2017-03-15 22:00:43 -07:00
Adam Reese
d4061b5b60 fix(tiller): enforce release name length on uninstall
If a selector is created from invalid values it will return nil.

Which is EVERYTHING!!!

closes: #2115
2017-03-15 14:10:44 -07:00
Adnan Abdulhussein
8210dc7883 feat(proto): add deprecated field 2017-03-14 16:32:43 +00:00
Matt Butcher
785a1df52b Merge pull request #2077 from technosophos/feat/2036-appVersion
feat(proto): add appVersion field
2017-03-13 12:50:17 -06:00
libesz
41f7c97a48 Fixing plugin test
In the TestLoadDir test case, currently reflect.DeepEqual is expected to fail by error. Expected metadata is different than in the fixture yaml. Also, the type of the struct is mismatching in DeepEqual call (struct vs pointer to struct).
2017-03-12 14:26:59 +01:00
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
Matt Butcher
396f6cbcb2
feat(proto): add appVersion field
This provides a simple field to expose the version of the application
contained in a chart.

Closes #2036
2017-03-07 14:48:24 -07: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