1
0
mirror of https://github.com/helm/chart-testing.git synced 2026-02-05 09:45:14 +01:00
Commit Graph

83 Commits

Author SHA1 Message Date
Jacob LeGrone
acfb89768e Add option to skip upgrade testing of deleted/renamed values files (#132)
* feat(upgrade): allow skipping missing values files

This allows fixing previous chart versions in a single pull request
without applying a major version bump to the chart version.

Signed-off-by: Jacob LeGrone <git@jacob.work>

* test(skip-missing-values): validate config and HasCIValuesFile method

Signed-off-by: Jacob LeGrone <git@jacob.work>

* docs(skip-missing-values): generate documentation

Signed-off-by: Jacob LeGrone <git@jacob.work>

* fix(chart): switch to filepath from path

Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-03-25 13:53:21 -04:00
Jacob LeGrone
52a4be9561 Add Helm/Kubernetes integration tests (#120)
* Add helm/kubectl integration test

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Use Chart type from integration tests

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Update .circleci/config.yml

Co-Authored-By: jlegrone <jlegrone@users.noreply.github.com>
Signed-off-by: Jacob LeGrone <git@jacob.work>

* Remove extraneous test chart files

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Fix shellcheck lint

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Remove example kind config from e2e tests

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Remove breaking semver test

This wasn't super clear and was no longer working properly
after the switch to git-worktree.

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Bump kind version

Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-03-25 13:47:22 -04:00
Jacob LeGrone
8ddee49c8b Handle empty chart path, add Chart type (#104)
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-03-21 10:09:48 +01:00
Reinhard Nägele
e3136ec117 Update local-path-provisioner (#128)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-03-18 11:58:47 -04:00
Jacob LeGrone
de59b1cdfb Test chart upgrades (#103)
* Test chart upgrades against previous version

Upgrade testing will be run if the --upgrade flag is set (default true)
and chart version increment does not indicate a breaking change
according to the SemVer 2.0 spec.

Any releases associated with previous chart versions which fail to roll
out or for which an initial `helm test` fails will be ignored.

Signed-off-by: Jacob LeGrone <git@jacob.work>

* fix(dep): add version constraint for github.com/otiai10/copy

Signed-off-by: Jacob LeGrone <git@jacob.work>

* refactor(git): checkout whole repository with worktree

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Rename test* to do*

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Return bool, error from BreakingChangeAllowed

Signed-off-by: Jacob LeGrone <git@jacob.work>

* Use errors.Wrapf

Co-Authored-By: jlegrone <jlegrone@users.noreply.github.com>
Signed-off-by: Jacob LeGrone <git@jacob.work>

* Explicitly disable upgrade when not install

Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-03-18 11:11:57 -04:00
Reinhard Nägele
9dfa4f21be Add badges for build status and license (#127)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-03-15 21:51:50 +01:00
Louis Cloutier
47ae4d51c9 Readme update: lint-changed > list-changed (#126)
Signed-off-by: Louis Cloutier <louis.cloutier@qlik.com>
2019-03-11 11:22:43 +01:00
Jacob LeGrone
60640c0e6d Fix goreleaser docker.binary deprecation notice (#121)
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-03-11 11:21:05 +01:00
Reinhard Nägele
27b25831d9 Fix gofmt errors (#122) 2019-03-05 09:57:03 +01:00
Carlos Tadeu Panato Junior
010642b8fe Force the namespace deletion by updating the finalizers in the namespace obj (#112)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2019-03-04 18:32:33 +01:00
Rimas Mocevicius
8e67de44ae Update kind cluster example with working local storage for all nodes (#116)
Signed-off-by: rimas <rmocius@gmail.com>
2019-03-02 21:26:40 +01:00
Gábor Lipták
79e49e15b3 Add GoReportCard badge to README (#105)
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2019-03-01 08:00:00 +01:00
Gábor Lipták
bdb3543053 Add gofmt to CircleCI (#107)
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2019-03-01 07:59:36 +01:00
Carlos Tadeu Panato Junior
ebf0014515 Add explicit deletion of pv and pvcs (#119)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2019-02-28 14:10:08 +01:00
Rimas Mocevicius
b33b7c0947 Update kind readme to reflect one worker node cluster setup (#118)
Signed-off-by: rimas <rmocius@gmail.com>
2019-02-22 12:29:52 +01:00
Rimas Mocevicius
4040c6ed7f Set kind node to 1 worker (#117)
Signed-off-by: rimas <rmocius@gmail.com>
2019-02-22 11:30:00 +01:00
Jacob LeGrone
e68cef097d Break docker build if ct is not executable (#114)
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-02-22 09:10:56 +01:00
Rimas Mocevicius
d22fd59727 docker4mac 2.0 has changed cluster name to docker-desktop (#115)
Signed-off-by: rimas <rmocius@gmail.com>
2019-02-22 09:09:41 +01:00
Jacob LeGrone
a1528a422b Enable installing with go get (#110)
Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-02-18 20:43:23 +01:00
Gábor Lipták
0802a2d50b Bring Go current for CircleCI (#108)
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2019-02-18 20:28:54 +01:00
Reinhard Nägele
e3d58a1f03 Add missing link to --list-changed flag docs (#102)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-02-12 21:44:06 +01:00
Reinhard Nägele
d69c43e71b Add list-changed command (#98)
Allows to identify chart changes before actually running
lint or install commands. This can be useful in the following
cases:

* In a CI setup where kind clusters are spun up on the fly,
  this makes it possible to decide whether a cluster is necessary
  at all. A PR may only contain changes that are not relevant
  to any charts.
* By knowing upfront which charts have changed, it is
  possible to load a per-chart CI configuration which would
  allows us to determine the number of nodes needed in a kind
  cluster. For most charts, one node is enough, but in certain
  scenarios, especially for StatefulSets, we may want to test
  with pod anti-affinity where replicas have to be spread across
  multiple nodes.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-31 17:17:25 +01:00
Reinhard Nägele
1d3db5408c Upgrade Helm and kubectl in Docker image (#97)
* Helm 2.12.3
* kubectl 1.13.2

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-25 14:53:41 +01:00
Reinhard Nägele
3e4f4f88fa Log values files used (#96)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-24 11:14:17 -05:00
Reinhard Nägele
9de228d2ca Update kind example (#94)
* Use kind release from GitHub instead of 'go get sigs.k8s.io/kind'
* Run ct container with '--network host' to avoid patching kubeconfig
* Create multi-node cluster with one master and three worker nodes
  so pods with anti-affinity can be tested
* Improve wait logic to cater for multiple nodes
* Add log statements
* Remote unnecessary 'k8s' remote to avoid confusion
* Extract function for 'docker exec' calls

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-24 15:50:20 +01:00
Reinhard Nägele
75c69d57de Improve docs on releasing (#95)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-24 09:46:07 -05:00
Reinhard Nägele
9e980f87cc Use visitor to bind flags to Viper (#92)
Simplifies the logic and no longer requires that flags be
listed individually in order to get bound.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-24 09:26:43 -05:00
Reinhard Nägele
868038e2e8 Improve error logging (#91)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-23 19:15:12 +01:00
Reinhard Nägele
00f37261fa Prepare release v2.2.0 (#89)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
v2.2.0
2019-01-23 15:29:06 +01:00
Reinhard Nägele
374227938c Require charts to be in direct subdirectories of configured charts dirs (#90)
Fixes a regression introduced in #73 so that chart directories were no longer required to be in a direct subdirectory of configured chart directories.

This caused problems in https://github.com/helm/charts/pull/10830.

cc @munnerz
2019-01-23 15:26:46 +01:00
Reinhard Nägele
1bcc42d103 Upgrade Helm to 2.12.2 (#88)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-22 14:48:32 +01:00
Reinhard Nägele
ee1bd9e090 Only require validation configs when validation is enabled (#87)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-22 08:05:42 -05:00
Reinhard Nägele
b679b85de0 Fix regression in changed chart detection (#85)
* Fix regression in changed chart detection

 Please enter the commit message for your changes. Lines starting

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>

* Refactor to consider charts at root

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>

* Make sure charts are processed only once

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>

* Fix typo

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-20 17:15:48 -05:00
Reinhard Nägele
fa29453c5b Use anonymous function to avoid defer in loop (#86)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-19 11:39:37 +01:00
Ilya Kislenko
f44fea9371 Improve help message for --chart-repos flag (#82)
Signed-off-by: depohmel <ilya@kasten.io>
2019-01-18 17:17:54 +01:00
André Bauer
4e07361ff4 set port in .kube/config file to 6433 (#81)
Signed-off-by: André Bauer <monotek23@gmail.com>
2019-01-14 21:42:12 +01:00
Rimas Mocevicius
678da9fc35 Fix kind example (#80)
Signed-off-by: rimas <rmocius@gmail.com>
2019-01-09 11:49:14 +01:00
Reinhard Nägele
0c74683826 Remove changelog sorting (#78)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-08 09:25:32 -05:00
Reinhard Nägele
2da25914d0 Prepare release v2.1.0 (#77)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
v2.1.0
2019-01-07 16:46:19 -05:00
Reinhard Nägele
97e65a8b15 Update tools (#75)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-07 16:43:16 -05:00
Reinhard Nägele
e663fbbbf2 Update Goreleaser (#76)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-01-07 16:39:39 -05:00
Markus Maga
9084cf16d0 Add support for providing credentials when adding chart-repositories (#67)
Signed-off-by: Markus Maga <markus@nadilus.com>
2019-01-07 21:13:30 +01:00
Adam Kunicki
7b167f8fe0 Fix index out of range when files exist in the root of a chart dir (#73)
Signed-off-by: Adam Kunicki <adam@streamsets.com>
2019-01-04 15:09:30 +01:00
Carlos Tadeu Panato Junior
46dc82e972 Add new flags to disable lint/schema validation (#68)
Signed-off-by: cpanato <ctadeu@gmail.com>
2018-12-21 07:44:55 +01:00
Reinhard Nägele
d3c13acf95 Truncate names to 63 characters (#69)
There are charts with very long names which cause namespace and
release names to exceed the max length of 63 characters. We, thus,
need to truncate long names. Truncation is done from the left in
order to preserve build ids and randomly generated suffixes.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2018-12-20 12:08:31 -05:00
Jacob LeGrone
3ce597ad11 feat(lint): validate values files in ci directory (#66)
Signed-off-by: Jacob LeGrone <git@jacob.work>
2018-12-18 17:17:55 +01:00
Jacob LeGrone
228603701a Support installation to existing namespace (#59)
This PR adds two flags to the `install` command: `namespace` and `release-label`. If `namespace` is specified, releases will target that namespace and `release-label` will be used to select deployments and pods for readiness and reading log output.

Fixes #34
2018-12-14 15:30:36 +01:00
Reinhard Nägele
09eff4860c Fix typos (#65) 2018-12-10 17:33:34 +01:00
Rimas Mocevicius
045a8d4179 Add github templates (#52)
Signed-off-by: rimas <rmocius@gmail.com>
2018-11-28 21:03:24 +01:00
Rimas Mocevicius
e4512cbf9f Add kind example (#61)
Signed-off-by: rimas <rmocius@gmail.com>
2018-11-28 20:53:10 +01:00