Commit graph

214 commits

Author SHA1 Message Date
Matt Butcher
a0bc510662 Merge pull request #955 from technosophos/feat/932-disable-hooks
feat(helm): add --no-hook to helm install and delete
2016-07-19 14:18:31 -06:00
Matt Butcher
1ff5499be7 feat(helm): add --no-hooks to 'helm delete'
This also adds several tests, cleanups to the API, and removal of dead
code.

Relates to #932
2016-07-19 13:48:14 -06:00
Michelle Noorali
80a7339e2f Merge pull request #947 from ngtuna/master
Fix #872: index function should handle deleted charts correctly
2016-07-18 14:38:48 -06:00
ngtuna
a2d6817b9b go idiom typo 2016-07-17 00:54:25 +07:00
Matt Butcher
a42b43a9fa feat(helm): add --no-hook to helm install
This includes a substantial bit of unit test improvements. Also, in
order to allow us to tests command line args (which translate to
helm.Option objects), I had to add a new interface to pkg/helm.
2016-07-15 17:13:32 -06:00
Adam Reese
736009982e ref(helm): fix naming issues from golint 2016-07-14 13:00:41 -07:00
ngtuna
03e59fd6c0 bypass gofmt 2016-07-12 14:09:11 +07: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
ngtuna
bfce033cc0 fix(helm): helm repo index should not delete entry, instead it should update removed=true 2016-07-12 11:30:06 +07:00
Matt Butcher
73a2890277 fix(engine): change template naming
Template paths were relative to the chart that contained them, which
meant that all templates were named 'template/SOMETHING'. This made it
trivially easy to hit namespace collisions as in #933.

Template path names are essentially opaque strings so this patch simply
changes them to be qualified by parent chart.
2016-07-07 11:39:47 -06:00
Michelle Noorali
15b428d450 feat(*): add version to release
laying ground work for #690
2016-07-06 17:01:34 -06:00
Matt Butcher
e91bbceff2 Merge pull request #916 from technosophos/feat/901-hooks
feat(tiller): support hooks for install
2016-07-06 16:45:21 -06:00
Matt Butcher
ff32062ae8 feat(tiller): support hooks for install 2016-07-06 16:10:31 -06:00
Adnan Abdulhussein
631ca63040 Merge pull request #922 from prydonius/feat/836-lint-multiple-charts
feat(lint): support linting multiple charts
2016-07-06 10:46:30 -07:00
Adnan Abdulhussein
f273510c97 fix(lint): fix golint errors 2016-07-01 15:20:13 -07:00
Adam Reese
d5aa4852a7 Merge pull request #921 from adamreese/ref/command-tests
ref(cmd): refactor cmd for unit testing
2016-07-01 12:15:34 -07:00
Adnan Abdulhussein
03ca4e892f feat(lint): support linting multiple charts 2016-06-30 19:20:11 -07:00
Miguel Martinez
3b2ea04348 fix(linter) Typos 2016-06-30 13:33:16 -07:00
Adam Reese
5013da3d25 fix(helm): add ReleaseContent to interface 2016-06-30 13:16:02 -07:00
Adam Reese
73f1bef3c9 test(cmd): add helm client mocking 2016-06-30 13:16:02 -07: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
Adnan Abdulhussein
bcd1889083 Merge pull request #907 from prydonius/906-linter-exit-status
fix(lint): Return non-zero exit status when lint errors present
2016-06-29 15:37:22 -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
Adnan Abdulhussein
09f56459c7 Improve tests to ensure highest severity is retained 2016-06-29 13:53:13 -07:00
Adnan Abdulhussein
77820c7482 fix(lint): Return non-zero exit status when lint errors present 2016-06-29 13:50:47 -07:00
Michelle Noorali
849afc29bc Merge pull request #908 from michelleN/feat/836-lint-archived-chart
feat(lint): lint an archived chart
2016-06-29 10:50:46 -07:00
Michelle Noorali
a64303d0bf feat(lint): lint an archived chart
* part of #836
2016-06-28 21:56:11 -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
Matt Butcher
2c07a32a6b fix(*): fix various style issues from make test-style
Closes #847.
2016-06-28 13:13:15 -06:00
Miguel Martinez
7bb4893cad Support Linter for Values 2016-06-27 17:47:18 -07:00
Michelle Noorali
bb875b5657 Merge pull request #896 from michelleN/fix/892-fetch-untar
fix(chartutil): fix chartutil.Expand function
2016-06-27 13:33:16 -07:00
Matt Butcher
ab4e20c278 Merge pull request #888 from technosophos/fix/887-no-value-fix
fix(tiller): stop printing <no value> when var is missing
2016-06-27 14:07:45 -06: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
2084af2e04 Merge pull request #885 from migmartri/882-linter-improvements
Adding squote test case and generic message
2016-06-24 16:38:42 -06:00
Matt Butcher
96ac6ebc6c fix(tiller): stop printing <no value> when var is missing
Instead of printing "no value", this prints an empty string by
default, but adds a Strict flag on the engine, which (if true)
will cause a template render to error out if a value is not supplied.

Strict is set to false so that developers can instead use `default` to
set default values.
2016-06-24 16:25:43 -06:00
Miguel Martinez
d1fe406478 Adding squote test case and generic message 2016-06-24 12:21:44 -07:00
Miguel Martinez
2eff17cb6d Removing debugging line 2016-06-24 12:11:12 -07:00
Matt Butcher
225d3a8adc test(engine): add test case for deep release passing 2016-06-24 12:06:52 -06:00
Matt Butcher
e00f774a5d fix(engine): remove debugging output 2016-06-24 12:06:52 -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
81ac98ad9a Adding support for associated templates
Fixing unit test
2016-06-23 16:23:39 -07: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
Adam Reese
69f66629c4 chore(*): bump version to v2.0.0-alpha.2 2016-06-23 10:42:48 -07:00
Matt Butcher
e757b24aed fix(*): add license header 2016-06-22 12:28:45 -06:00
Adam Reese
68e0032fbd Merge pull request #863 from adamreese/fix/686-tunnel-error
fix(tunnel): display friendly error on connect issues
2016-06-22 08:56:33 -07:00