Commit graph

50 commits

Author SHA1 Message Date
Vic Iglesias
8d867657bb Add resources and probes 2016-10-25 17:45:08 -07:00
Vic Iglesias
4120e67240 Add deployment, service and NOTES to create 2016-10-25 17:26:47 -07:00
Matt Butcher
2388e71528 fix(helm): ignore dotfiles in charts/ directories
This causes 'helm dep [up|install]' to ignore files in charts/ that
start with either a dot or an underscore. It also changes the
chartloader to ignore those files.

Also, if a 'helm dep up' does not find a charts/ directory, it creates
one.

Closes #1342
2016-10-11 18:59:45 -06:00
Adam Reese
f71230ccd3 fix(*): resolve go linter issues 2016-10-10 14:58:33 -07:00
Matt Butcher
3e3312cea0 feat(tiller): re-use values during upgrade
When `helm install -f foo.yaml bar` is called, and then the release is
upgraded with `helm upgrade happy-panda bar`, this will now re-use the
values that were submitted with `-f foo.yaml`. The same is true for
values specified with `--set`.

Closes #1227
2016-10-04 21:53:44 -06:00
Matt Butcher
e0227c7510 fix(chart): Chart.yaml now has an apiVersion field.
This is to future-proof charts, and also be consistent with repo and
index YAML files.

Closes #1264
2016-10-04 12:18:22 -06:00
Matt Butcher
68dd4c9a66 fix(proto): remove unused fields
Some fields were introduced to Chart metadata after Alpha.4, but are not
going to be used ever. So we made the decision to remove them before we
get stuck with ugliness.

This should not break compatibility, since these fields were not used.
2016-09-28 16:22:41 -06:00
Matt Butcher
593718d749 feat(helm): add 'helm dependency' commands
This also refactors significant portions of the CLI, moving much of the
shared code into a library.

Also in this release, a testing repository server has been added.
2016-09-23 16:24:22 -06:00
Matt Butcher
a5921faf99 feat(chartutils): add support for requirements.yaml 2016-09-23 14:57:56 -06:00
vaikas-google
6d26024a27 first cut of version on client and server 2016-09-12 20:56:17 -07:00
Matt Butcher
34577d1ebc feat(charts): add 'dependencies:' to Chart.yaml
This feature adds a dependencies section to a chart file. It is a
prerequisite for adding automated chart management tooling as described
in #874.
2016-09-06 17:34:54 -06:00
joe2far
96de0e35aa feat(helm): ignore by default all dotfiles in templates/ 2016-08-26 20:07:00 +01:00
Matt Butcher
a46a033de4 feat(chart): support 'image:URL' in charts.
Closes #1034
2016-08-22 16:05:40 -06:00
Matt Butcher
2e95230b30 fix(helm): fix helmignore evaluation of dirs
This adds a few extra settings to the default .helmignore file. In
doing this, I found a bug that some directory patterns are not
evaluated correctly. Fixed that and added tests.

Closes #989
Closes #1027
2016-08-05 15:50:02 -06:00
Matt Butcher
b7945d05c4 ref(templates): change GetString to Get
This changes "pkg/chartutil".Files.Get to return a string, removes
"pkg/chartutil".Files.GetString, and adds
"pkg/chartutil".Files.GetBytes.

Closes #1020
2016-08-03 13:01:13 -06:00
Matt Butcher
033dbfe75e feat(tiller): add Files map to templates
Templates can now access the non-template files in a chart by using
the '{{.Files}}' map inside of a template.

Relates to #950
2016-07-29 16:04:48 -06:00
Matt Butcher
95eeba3805 fix(tiller): merge -f values correctly
This fixes a bug in which passed-in values files were not correctly
merged into the chart's default values YAML data. I believe it also
fixes some other prioritization bugs in values merging.

The existing unit test was wrong (see TestCoalesceValues). It is
fixed now. Also added more tests to simulate issue #971.

In the course of writing this, I removed some vestigial code as
mentioned in #920.

Closes #971
Closes #920
2016-07-21 16:00:57 -06:00
Adam Reese
a14e76a65c chore(*): add canonical import path annotation
https://golang.org/doc/go1.4#canonicalimports
2016-07-11 22:59:55 -06:00
Matt Butcher
310ef9bbcb fix(helm): fix linter test panic
Handle a previously unhandled error in the linter. This simply bails out
if a chart's values files do not parse.

Also, changed the implementation of CoalesceValues to return a map even
on error.
2016-06-30 12:51:36 -06:00
Miguel Ángel Martínez Triviño
81fd9edf4d Merge pull request #899 from migmartri/897-values-refactorign
Support Linter for Values namespace
2016-06-29 16:10:08 -07:00
Adnan Abdulhussein
9b257077d5 Merge pull request #915 from prydonius/fix/912-nil-map-readvalues
fix(chartutil): Ensure ReadValues doesn't return a nil map
2016-06-29 16:01:43 -07:00
Adnan Abdulhussein
4ef61a7136 fix(chartutil): Ensure ReadValues doesn't return a nil map 2016-06-29 15:38:53 -07:00
Matt Butcher
cd75b6a781 Merge pull request #902 from technosophos/feat/894-template-info-in-templates
feat(tiller): add .Template object in templates
2016-06-29 16:32:20 -06:00
Miguel Martinez
12aa72f121 Replacing options interface argument 2016-06-28 19:27:20 -07:00
Matt Butcher
532f03ec78 feat(tiller): add .Template object in templates
This allows templates to access information about the template file.
Right now, the template can only access the .Template.Name, which is the
chart-relative path to the current template.

Closes #894
2016-06-28 16:18:08 -06:00
Miguel Martinez
7bb4893cad Support Linter for Values 2016-06-27 17:47:18 -07:00
Michelle Noorali
bcffe8a3f2 fix(chartutil): fix Expand function
This ensures that all necessary directories
get created when expanding a chart in the
chartutil.Expand function. fixes #892
2016-06-27 12:50:49 -06:00
Matt Butcher
90c46e896d fix(chartutil): fix Table() method to test Values
This makes the Table() method more flexible than the original version.
It allows either a map[string]interface{} or a chartutil.Values to be
treated as a table.
2016-06-24 12:06:52 -06:00
Matt Butcher
22ac61469f feat(*): add Values namespace to templates
This adds the .Values namespace qualifier to all values
2016-06-24 12:06:52 -06:00
Miguel Martinez
03d27779d3 Templates Lint rules
Template rules

Adding chart errors

Added function that checks the existence of all the values in the templates

Adding chartfile unit tests

Testing runLinterRule

Fixing out of range

Fixing out of range

Improving quote detector
2016-06-23 12:36:25 -07:00
Matt Butcher
e757b24aed fix(*): add license header 2016-06-22 12:28:45 -06:00
Matt Butcher
23ce6142f9 fix(chartutil): remove a wayward println 2016-06-21 16:53:28 -06:00
Matt Butcher
f30ff915f2 feat(helm): add 'helm get values --all' for all values
Add support for displaying computed configuration values. This is
useful for debugging.
2016-06-17 16:15:03 -06:00
Matt Butcher
57a32f1df8 Merge pull request #832 from technosophos/feat/helmignore
feat(pkg/ignore): add helmignore library
2016-06-16 11:38:53 -06:00
Matt Butcher
713020359b feat(pkg/ignore): add helmignore library
This adds support for .helmignore files. These files roughly follow
the conventions established for .gitignore files:
https://git-scm.com/docs/gitignore

Closes #748
2016-06-15 13:00:42 -06:00
Matt Butcher
2b2a5788f3 Merge pull request #824 from technosophos/feat/global-vars
feat(chartutil): support global variables
2016-06-15 12:53:30 -06:00
Matt Butcher
88622a20da fix(helm): read values.yaml instead of values.toml
Closes #822
2016-06-14 12:06:19 -06:00
Matt Butcher
60f5341b91 feat(chartutil): support global variables
This provides support for "global" variables. It does this by
declaring "global" to be a special namespace. It then copies this
namespace into every subchart, coalescing it into any "global"
namespace found there.

The net result is that if "global.foo" is set in the YAML file, it
will be available to every chart/subchart as ".global.foo" regardless of
where that chart is in the subchart tree.
2016-06-14 11:24:09 -06:00
Matt Butcher
490cef784c fix(tiller): refactor template render to use chartutil. 2016-06-13 13:11:39 -06:00
Matt Butcher
e8109048a9 fix(chartutil): move values coalescing into chartutil 2016-06-09 14:10:12 -06:00
Adam Reese
d95a144563 fix(chartutil): fix nil error on values
Fixes: https://github.com/kubernetes/helm/issues/803
2016-06-09 11:09:00 -07:00
Matt Butcher
377a43385e fix(*): fixed import paths 2016-06-06 21:21:36 -06:00
Matt Butcher
72be00c6fc fix(chartutil): update 'fetch' and 'package' to use chartutil. 2016-06-06 21:16:45 -06:00
Matt Butcher
ebd81152dd fix(helm): update 'helm create' to use YAML. 2016-06-06 21:13:48 -06:00
Matt Butcher
9ca8c27e16 fix(*): change TOML to YAML 2016-06-06 21:12:36 -06:00
Matt Butcher
7aa4ffa4d4 feat(chartutil): switch TOML to YAML 2016-06-06 21:09:27 -06:00
Adam Reese
818c878700 chore(*): use k8s.io as the import path 2016-06-06 17:17:04 -07:00
Matt Butcher
15a1cb4816 feat(chartutil): add Save function
This replicates the previous Save function, which can save an
in-memory Chart proto to a tgz.
2016-06-03 15:23:49 -06:00
Matt Butcher
2802fcbd87 feat(chartutil): optimize for re-use
This is a refactor of the loader to use in-memory buffers instead of
trying to optimize for memory usage by delaying reads until the last
possible moment. Since charts tend to stay well below 1M in size, this
makes more sense, and is easier to work with.
2016-06-02 16:09:48 -06:00
Matt Butcher
25053e6ada feat(pkg/chartutil): add chartutil package 2016-05-26 09:41:43 -06:00