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

160 Commits

Author SHA1 Message Date
Reinhard Nägele
3a490fa0a6 Update GoReleaser (#337)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2021-05-20 08:46:39 +02:00
Carlos Tadeu Panato Junior
1bccc2467e Update reference from master to main in tests (#329)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-04-21 21:28:47 +02:00
Ian Tewksbury
ba5aed29ec chart_schema.yaml - dependency.repository should not be required (#300)
when using a local chart there is no repository so this should be optional field.

Signed-off-by: Ian Tewksbury <itewk@redhat.com>
2021-03-12 13:27:43 +01:00
Ram Mohan Rao Chukka
e84e88cf8b Bump Versions (#320)
Signed-off-by: Ram <1331672+chukka@users.noreply.github.com>
2021-02-01 12:14:49 +01:00
David J. M. Karlsen
ac827da9bf Skip using action for tagging. Fixes #305 (#306)
Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
2020-12-02 20:58:45 +01:00
Reinhard Nägele
71d0e1e82c Ignore stderr when parsing Helm version (#294)
Helm v3.4.0 logs a warning about URL deprecation which causes semver
parsing to fail. We need to only read stdout and ignore stderr here.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
v3.3.1
2020-11-30 18:58:06 +01:00
Ram
4625e8832a Bump versions (#304)
Signed-off-by: Ram <1331672+chukka@users.noreply.github.com>
2020-11-27 12:18:28 +01:00
Timothy Colbert
a200dc5a22 Update helm to resolve https://github.com/helm/helm/commit/fe23c09552… (#303) 2020-11-26 18:42:14 +01:00
David J. M. Karlsen
9347b27afe Move to gh-actions (#297)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2020-11-24 07:36:52 +01:00
Reinhard Nägele
2a4dfd420d Introduce environment variable for custom config dir (#291) v3.3.0 2020-11-03 08:11:25 +01:00
Reinhard Nägele
fd6720ba30 Consistently use filepath package (#292)
Usage of filepath vs. path seems to have been pretty random.
With this change, we consistently use filepath which considers
the platform-specific path separator.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2020-11-02 16:42:55 +01:00
Reinhard Nägele
2407e7df46 Log invalid chart dirs to stderr (#290)
If directories are deleted from a chart, ct detects them as invalid
chart directories. A log message is printed to stdout which messes up
the regular output. In order to fix this, the message is now logged to
stderr.

*Example:*

```
$ ct list-changed
Directory 'charts/mychart/templates/deleted' is not a valid chart directory. Skipping...
charts/mychart
```

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
v3.2.0
2020-10-29 15:02:17 +01:00
Jonathan Hall
e287de0bec Remove redundant "default" descriptions from help output (#287)
Co-authored-by: Reinhard Nägele <unguiculus@gmail.com>
2020-10-28 08:19:21 +01:00
Eric
ec7b0c779b Add option to exclude deprecated charts (#280) 2020-10-27 08:44:13 +01:00
Torsten Walter
285f25e67e Update Helm to 3.4.0 (#289)
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
2020-10-27 08:08:21 +01:00
MengZeLee
21e0f7a1d3 Fix typo (#284)
Signed-off-by: MengZn <adnt587@gmail.com>
2020-10-27 08:01:59 +01:00
Torsten Walter
e4d7b78183 Support execution of additional commands during ct lint (#283)
* support execution of additional commands for lint

Given that helm unittest is installed locally or mounted into the chart
testing container one could use this to run helm unittest for each
chart.

```
additional-commands:
 - helm unittest --helm3 -f tests/*.yaml {{ .Path }}
```

The command is treated as a go template. Like this it's possible to get
the path to the chart as in the example. It would also be open for
further extension if needed.

Signed-off-by: Torsten Walter <mail@torstenwalter.de>

* Use sh to execute command

Signed-off-by: Torsten Walter <mail@torstenwalter.de>

Co-authored-by: Reinhard Nägele <unguiculus@gmail.com>

* rename function to NewCmdTemplateExecutor

Signed-off-by: Torsten Walter <mail@torstenwalter.de>

* add error handling

Signed-off-by: Torsten Walter <mail@torstenwalter.de>

* add documentation

Signed-off-by: Torsten Walter <mail@torstenwalter.de>

* use go-shellwords to split rendered command

Signed-off-by: Torsten Walter <mail@torstenwalter.de>

* Update pkg/tool/cmdexecutor.go

Signed-off-by: Torsten Walter <mail@torstenwalter.de>

Co-authored-by: Reinhard Nägele <unguiculus@gmail.com>

* add unit tests

Signed-off-by: Torsten Walter <mail@torstenwalter.de>

Co-authored-by: Reinhard Nägele <unguiculus@gmail.com>
2020-10-20 17:10:56 -04:00
Michał Sochoń
f5e0860aec Add reference to charts-repo-actions-demo (#281)
Referencing charts-repo-actions-demo should be beneficial for those
looking for more in-depth examples of how to use ct tool.

Fixes #241

Signed-off-by: Michał Sochoń <kaszpir@gmail.com>
2020-10-15 21:45:44 +02:00
Reinhard Nägele
3fc5a50108 Update docs and examples for v3.1.1 (#278)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
v3.1.1
2020-09-25 22:22:55 +02:00
Reinhard Nägele
43b9ced061 Print config to stderr (#277)
Fixes a regression when the config file used is printed
to stdout even when the list-changed command is run. It is
now only printed when --print-config=true. Also, config printing
is now done to stderr so the flag can also be used in combination
with the list-changed command.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2020-09-25 22:22:43 +02:00
Reinhard Nägele
9044b2f1a7 Update docs and examples for v3.1.0 (#275)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
v3.1.0
2020-09-25 11:06:33 +02:00
Reinhard Nägele
03739d3328 Update docs (#274)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2020-09-25 11:06:06 +02:00
Ram
0c81a7ce39 Bump versions (#272)
Signed-off-by: Ram <1331672+chukka@users.noreply.github.com>
2020-09-23 13:07:01 +02:00
Reinhard Nägele
b3899d2ce9 Add flag for disabling config printing (#269)
By default, ct prints the config on startup. This can be problematic
because it may contain senstivie data when helm-repo-extra-args contains
passwords. The new flag enables turning off config printing and disables
it by default.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2020-09-09 21:26:06 +02:00
Ram
621bece7df Bump versions (#268) 2020-09-09 01:11:47 +02:00
David J. M. Karlsen
dda8958eef chore: Upgrade to helm 3.3.1 (#266)
Signed-off-by: David Karlsen <david@davidkarlsen.com>
2020-09-01 09:12:45 +02:00
Alexander Zigelski
49f3a5ee04 Migrate chart-testing formula to homebrew/core (#247)
Signed-off-by: Scott Rigby <scott@r6by.com>
2020-08-30 19:21:46 -04:00
Scott Leggett
98f1d4896b Fix int to string conversion (#262)
The old code was incorrect and no longer builds with Go 1.15.

Signed-off-by: Scott Leggett <scott@sl.id.au>
2020-08-26 22:16:07 +02:00
Minh-Danh
594c3b60d5 Make home URL optional and support dependencies (#260)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2020-08-26 22:14:23 +02:00
Ram
8d3f5b101e Bump helm , kubectl versions (#259)
Signed-off-by: Ram <1331672+chukka@users.noreply.github.com>
2020-08-14 16:47:23 +02:00
Scott Leggett
f0403b0dea Bump docker image versions (#253)
* alpine 3.12
* python 3
* yamale 3.0.2
* yamllint 1.24.2
2020-08-09 23:27:37 +02:00
Scott Leggett
72362eb645 Add type field to chart schema (#252)
Signed-off-by: Scott Leggett <scott@sl.id.au>
2020-08-09 16:23:11 +02:00
Scott Leggett
e8a9bd1c65 Bump docker image helm verison to 3.2.4 (#250)
Signed-off-by: Scott Leggett <scott@sl.id.au>
2020-08-09 16:13:29 +02:00
Scott Rigby
8f4cee9d09 Update docs for v3.0.0 (#246)
Signed-off-by: Scott Rigby <scott@r6by.com>
2020-07-24 22:55:04 +02:00
Reinhard Nägele
50db473a1e Add Homebrew installer (#244)
The Homebrew formula installs the config files to Homebrew's
etc directory, so we add that to the search locations for config files.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
v3.0.0
2020-07-24 22:32:42 +02:00
Marc Sensenich
93b10e8e55 Add since flag for changing the reference branch for git merge-base (#229) 2020-07-24 22:12:55 +02:00
Jeff Billimek
67ec12d315 appVersion should be optional (#239) 2020-07-24 09:14:27 +02:00
Zhao Xiaojie
2d2203e77f Add arm64 into the goarch list (#220) 2020-05-22 15:49:14 +02:00
Reinhard Nägele
16513fad69 Prepare release v3.0.0-rc.1 (#225)
Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
v3.0.0-rc.1
2020-04-02 23:45:27 -04:00
Reinhard Nägele
44eb34534b Prepare release v3.0.0-rc.1 (#225)
Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
2020-04-02 16:15:37 -04:00
Reinhard Nägele
c603fc43dd Revert "Use latest upstream instead of local branch for tags (#1… (#224)
This reverts commit 5cb2b8c235 because it
prevented releasing bug fixes for previous versions from non-master
branches.

Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
2020-04-02 21:45:05 +02:00
Will
814526768c Adding the apiVersion as a required field in the Chart.yaml vali… (#222)^
Signed-off-by: Will Varney <github@willvrny.co.uk>
2020-03-31 16:53:13 +02:00
Reinhard Nägele
ab921aa017 Update build, dependencies, Go and tool versions (#219)
* Use current CircleCI build image for Golang
* Update tools in Docker image
* Add image labels for installed tool versions
* Update labels from deprecated label schema to OCI spec
* Configure build tools in go.mod/tools.go
* Improve Go linting

Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
2020-03-28 22:02:08 +01:00
Reinhard Nägele
d96165233b Fix printing test results on error (#218)
* Fix a regression that would cause test results no to be printed on error
* No longer print usage output on error

Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
2020-03-28 09:16:47 +01:00
Reinhard Nägele
6f5f4d95d6 Fix ldflags for version (#215)
Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
2020-03-26 18:38:37 +01:00
Scott Rigby
a0b9b22242 Bump Alpine to 3.11 (#214)
Signed-off-by: Scott Rigby <scott@r6by.com>
2020-03-21 21:32:57 +01:00
Reinhard Nägele
00d8fd274a Prepare release v3.0.0-beta.2 (#208)
Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
v3.0.0-beta.2
2020-02-28 17:56:13 +01:00
Petr Řehoř
773ddaa334 Update Helm to v3.1.1 (#207)
Signed-off-by: Petr Řehoř <rx@rx.cz>
Co-authored-by: Reinhard Nägele <unguiculus@gmail.com>
2020-02-28 17:44:01 +01:00
Reinhard Nägele
f5f1e7786b Don't create provided namespace (#205)
Adding support for Helm 3 introduced creating namespaces
because Helm does not do this automatically anymore.
However, a regression was introduced that always creates
namespaces, even if a dedicated namespace is provided via
CLI flag.

Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>

* Fix statefulset test

Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>

* Fix deployment apiVersion

Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>

* Create custom namespace before test

Signed-off-by: Reinhard Naegele <unguiculus@gmail.com>
2020-02-27 18:45:38 +01:00
Sunny
aacb8f4553 examples/kind: Add timeout unit in config (#201)
helm3 requires the timeout value to have a unit.
Without this, the test results in the following error:

```
Error: invalid argument "800" for "--timeout" flag: time: missing unit in duration 800
```

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2020-02-14 16:30:42 +01:00