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

174 Commits

Author SHA1 Message Date
dependabot[bot]
33efbc5565 Bump github.com/spf13/viper from 1.10.0 to 1.10.1 (#379)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-18 12:46:16 +01:00
Carlos Tadeu Panato Junior
859182198c Update golang to 1.17 and some goreleaser/docker file updates (#375)
* update projecto to go 1.17x

Signed-off-by: Carlos Panato <ctadeu@gmail.com>

* add syft to generate the sboms and update goreleaser

Signed-off-by: Carlos Panato <ctadeu@gmail.com>

* add dependabot config

Signed-off-by: Carlos Panato <ctadeu@gmail.com>

* update dokcerfile to fetch the correct binaries for the arch and update base image

Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2022-01-12 18:23:22 +01:00
Kevin M Granger
f9ff9a054c Make description optional in chart_schema (#372)
`description` is optional:
https://helm.sh/docs/topics/charts/#the-chartyaml-file

Signed-off-by: Kevin M Granger <kgranger@redhat.com>
2022-01-07 12:55:31 +01:00
Tyler Auerbeck
e97261b3eb Bump goreleaser to v1.1.0 (#369)
* Bump goreleaser to v1.0.0

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

* Bump goreleaser to v1.1.0

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

* Cleanup

Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>

Co-authored-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
v3.5.0
2022-01-06 15:56:27 +01:00
Carlos Tadeu Panato Junior
0202bb9976 update helm to to release v3.7.2 (#371)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-12-19 11:42:19 +01:00
Tyler Auerbeck
89dbd16b9f Add arm64 builds (#351)
* Add arm64 builds

Signed-off-by: Tyler Auerbeck <tauerbec@redhat.com>
2021-11-26 17:00:58 +01:00
Carlos Tadeu Panato Junior
11abca0a4a Some dependencies / tools updates (#362)
* ci: update helm to version 3.7.1

Signed-off-by: Carlos Panato <ctadeu@gmail.com>

* dockerfile: update yamllint / yamale / helm

Signed-off-by: Carlos Panato <ctadeu@gmail.com>

* go: update dependencies

Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-11-19 10:51:12 +01:00
Karthikeyan Govindaraj
fdab4b0220 bump: alpine version and curl for security fix (#350) 2021-08-07 16:18:39 +02:00
David J. M. Karlsen
0c4134b8a8 Upgrade tools (#349)
* Upgrade helm

Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>

* Upgrade kind

Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>

* Upgrade kind/node image

Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
2021-07-21 10:48:34 +02:00
oliviermichaelis
cc3c23a59e Update Dockerfile dependencies (#348)
Signed-off-by: oliviermichaelis <38879457+oliviermichaelis@users.noreply.github.com>
2021-07-19 12:03:30 +02:00
Reinhard Nägele
68a43ac096 Update docs and examples for v3.4.0 (#340)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
v3.4.0
2021-05-20 18:00:01 +02:00
Reinhard Nägele
a18a16d060 Revert "Updated docs and examples for v3.2.0 (#338)" (#339)
This reverts commit 672e435015.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2021-05-20 17:17:15 +02:00
Reinhard Nägele
672e435015 Updated docs and examples for v3.2.0 (#338)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2021-05-20 16:25:19 +02:00
Reinhard Nägele
c8db57812b Update tool dependencies (#336)
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
2021-05-20 16:01:43 +02:00
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