Commit Graph
16 Commits
Author SHA1 Message Date
Reinhard Nägele bbcf1ea38b [linting] Temporarily make maintainers optional for linting (#4663) 2018-04-03 10:09:06 -07:00
Ilya Kislenko bd8016c536 Enhancing lint.sh with additional checks for Chart.yaml (#4161)
* Enhancing lint.sh with additional checks

* reverting post local testing changes

* addressing reviews.

removing yq installetion
chaning yq with yaml for Chart.yaml parsing.
modifing Erro message for not github account check.

also modifing lint.sh so it can be used locally
2018-03-27 09:30:03 -07:00
Ilya Kislenko 72c8d48235 helm version upgrade (#4158)
upgrading helm version for circleci testing
2018-03-16 14:14:29 -04:00
Lingming Xia f04a361532 fix typo in test/circle/lint.sh (#3674) 2018-02-10 05:39:51 -08:00
Matt Farina b69c46199b Adding a version comparison to the k8s CI tests
The bot that merges PRs re-runs the e2e job before merging a pull
request. By also having it here (circleci provides fast response
to PR authors) we make sure the version has been incremented in
the chart prior to it being merged.
2017-12-15 15:31:21 -05:00
Matt Farina 88f888bcd9 Fixing CI failures for charts with dependencies (#2934)
Closes #2896
2017-12-05 19:59:08 +01:00
Matt Farina 08cf223ba3 Revert "Run helm dep build in circle lint.sh (#2919)" (#2929)
This reverts commit 54f82ea525.
2017-12-04 14:59:58 -05:00
Josh Dolitsky 54f82ea525 Run helm dep build in circle lint.sh (#2919) 2017-12-04 14:11:12 -05:00
Matt Farina 482f8b0f5b Update to Helm 2.7.2 (#2764)
Helm 2.7.2 contains a security fix for SSL CA with tiller. For
more information see the helm release notes.
2017-11-16 09:58:58 -08:00
Matt Farina bbfa695607 Update CI to use Helm 2.6.2 (#2405) 2017-10-19 11:50:17 -07:00
Matt Farina ec99fad17e Fix bug where semver increment handling does not handle new charts (#2499) 2017-10-17 05:34:49 +02:00
Matt Farina ffc3faa15d Remove comment indentation checking due to false errors (#2498)
Indentation checking was catching catching out the commenting of
whole sections of indented code in values.yaml files as being
errors. Yet, code editors and other tools automatically indented
to this level. Removing the check.
2017-10-17 05:31:39 +02:00
Matt Farina 8ca39ffce9 Adding a CI check for the NOTES.txt file (#2453)
Points to docs when file missing to point user to a fix

Ref #2373
2017-10-13 17:23:51 +01:00
Matt Farina f085700f96 CI Check that a chart version was incremented (#2462)
This commit does a couple things
1. It reformats the layout to have checks via self contained
   functions rather than all in one loop.
2  Adds a check that the chart.version was incremented

Ref #2373
2017-10-12 11:21:35 +02:00
Matt Farina 2f12841300 Adding linting to Chart and values yaml files (#2429)
This does not lint yaml templates as they are templates rather
than valid yaml files. They cannot be linted with a normal linter

yamllint is used for linting. This is an existing Python project
https://github.com/adrienverge/yamllint

The rules are not the default rules and are stored in their
entirity so they can be controlled over time

The existance of a Chart.yaml file and values.yaml file is checked
and an error is thrown if one is missing. Helm lint will not
detect a chart if Chart.yaml is missing and if a values.yaml file
is missing it is noted as info.

The run function is introduced to enable running all the linters,
capturing non-zero exit codes, and exiting with a non-zdero code
if any of them fail. This is used instead of exiting when the
first failure happens to provide more feedback to chart developers.
2017-10-09 21:23:39 +02:00
Matt Farina 64fffcf600 Add support for linting of charts on every PR via CircleCI (#2404)
This change does the following:
- Adds a circleci config file
- Has 2 scripts. One for installing tools and a separate one for
  executing tests
- Removes lint testing from the changed.sh script since it is
  performed elsewhere
- For linting changes the git diff mechanism to look at the merge
  base rather than all differences from master. The intent is to
  look for changes in this request rather than including those
  in PRs that may have already been merged to master while this
  one lingered.

Ref #2337
2017-10-04 12:50:30 -07:00