Commit graph

29 commits

Author SHA1 Message Date
z00358552
b0d4cacd54 fix(helm) change name length limit to 63 for helm create
since kubernetes 1.4, the upper limit for resource name is 63 characters,
so it is better to change the template when running `helm create` accordingly.
2017-01-17 15:51:31 +08:00
Ferran Rodenas
088c2bd233 Linter validations for Chart icon property 2017-01-12 15:21:10 +01:00
Matt Butcher
cb0a6c7e07
feat(tiller): add {{.Capabilities}} object
This adds the {{.Capabilities}} object to the template variables so that
chart authors can write charts that are aware of teh Kubernetes
capabilities of the current cluster.

Closes #1608
2017-01-09 18:09:20 -07:00
Michelle Noorali
06867b22d4 fix(linter): disable checking for empty values
resolves #1463
2016-12-19 15:04:12 -05:00
John Hofman
c38fb120bf fix(helm): add trimSuffix to helper functions 2016-12-05 10:01:25 +01:00
Adam Reese
d59f66fc9e fix(*): fix new linter errors 2016-11-11 19:24:11 -08:00
Matt Butcher
58164e0009
fix(linter): remove spurious namespace error
Long ago, Helm did not support cross-namespace installs. There was a
linter rule to catch this. When we changed the way Helm worked, we did
not remove the linter rule. This commit removes that linter rule.

Closes #1489
2016-11-01 13:41:29 -06:00
Matt Butcher
36f7eb0b2a fix(linter): add engine.FuncMap so linter can use real function list
This adds a function engine.FuncMap that returns a function mapping that
better represents the functions passed to a template. The linting logic
is reconfigured to use this function instead of the sprig.FuncMap
function.

Closes #1366
2016-10-14 16:28:43 -06:00
Matt Butcher
70b29a47d0 Merge pull request #1368 from prydonius/1367-fix-linter-tmpl-regex
fix(lint): validateNoMissingValues template regex
2016-10-14 12:52:11 -06:00
Adnan Abdulhussein
d81ac482ee fix(lint): use correct hash key for rendered tmpl
The YAML validation was broken because the renderedContentMap has keys
with the path to the template including the chart directory, whereas the
linter was trying to access it relative from the chart directory.

For example, the hash key was `drupal/templates/deployment.yaml` but the
linter was trying to access `templates/deployment.yaml`. This commit
fixes the key used to access the rendered content.
2016-10-13 19:51:05 -07:00
Adnan Abdulhussein
aed4db02e8 fix(lint): validateNoMissingValues template regex
Fixes the regex for extracting templates to include templates that
suppress newlines and ignore any conditional flow statements.
2016-10-13 19:20:12 -07:00
Adam Reese
f71230ccd3 fix(*): resolve go linter issues 2016-10-10 14:58:33 -07:00
Matt Butcher
fd0303c86e fix(*): remove references to gopkg.in/yaml.v2
This removes the last of the requests for gopkg.in/yaml.v2, and
also the struct annotations.

Closes #1192
Closes #1263
2016-10-05 17:29:49 -06:00
Adam Reese
d8616dd2b3 fix(lint): allow .txt files
closes #1161
2016-09-08 13:23:22 -07:00
Miguel Martinez
cb12d9642b Disable validateQuotes linter rule 2016-08-18 11:31:49 -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
Adnan Abdulhussein
f273510c97 fix(lint): fix golint errors 2016-07-01 15:20:13 -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
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
Miguel Martinez
12aa72f121 Replacing options interface argument 2016-06-28 19:27:20 -07: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
Miguel Martinez
d1fe406478 Adding squote test case and generic message 2016-06-24 12:21:44 -07: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
Matt Butcher
e757b24aed fix(*): add license header 2016-06-22 12:28:45 -06:00
Miguel Martinez
c2459c06bf New Chart linter structure
Fixed tests

Adding chart name linter

Add lint error

Moving to blocks

Moving to method

Moved lint rules to functions

Semantic version validation

Linting engine

Adding sources and home validations

Sharing file loading

Sharing file loading

Rolling back readme

Rewriting other linters

Fixing tests

Typo

Using chart.Metadata

Fixing format

Adding UNKNOWN in Engine

Adding tabs

Fixing tabs
2016-06-20 14:28:58 -07:00