1
0
mirror of https://github.com/helm/chart-testing.git synced 2026-02-06 12:45:22 +01:00

90 Commits

Author SHA1 Message Date
Carlos Tadeu Panato Junior
d9dba63311 Update golang on circleci (#146)Update golang on circleci (#146)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
v2.3.1
2019-04-23 17:04:15 +02:00
Reinhard Nägele
0e5c65006a Fix kind timeout (#144)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-04-22 21:02:20 +02:00
Reinhard Nägele
bc772e2051 Trim leading hyphens from names (#143)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2019-04-22 18:02:20 +02:00
Carlos Tadeu Panato Junior
08d07244ea update docker image to use helm 2.13.1 (#141)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2019-04-12 19:52:41 +02:00
Jacob LeGrone
b060fc83f2 Add git version documentation, rename worktree methods, and handle existing worktree (#133)
Signed-off-by: Jacob LeGrone <git@jacob.work>
v2.3.0
2019-03-28 21:46:30 +01:00
Jacob LeGrone
ea18dc6af1 fix(account): handle invalid repository domain matches (#137)
fixes #136 

Signed-off-by: Jacob LeGrone <git@jacob.work>
2019-03-28 20:55:55 +01:00
Rimas Mocevicius
c97c7907c3 Update kind to v0.2.0 (#135)
Signed-off-by: rimas <rmocius@gmail.com>
2019-03-27 18:48:49 +01:00
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