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

191 Commits

Author SHA1 Message Date
Krzysztof Nazarewski
3c014d8d38 introduce helm-dependency-extra-args (#396)
addresses https://github.com/helm/chart-testing/issues/368

Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
2022-04-05 11:50:08 +02:00
Massimiliano Donini
aabb51e7dd Introduce helm-extra-set-args command line parameter (#402)
* Introduce helm-extra-set-args
Signed-off-by: ilmax <massimiliano.donini@gmail.com>

Signed-off-by: Massimiliano Donini <massimiliano.donini@lobsterink.com>

* Fix and add integration test

- Fixed error when no values are passed in
- Added integration test

Signed-off-by: Massimiliano Donini <massimiliano.donini@lobsterink.com>

* Generate docs

Signed-off-by: Massimiliano Donini <massimiliano.donini@lobsterink.com>
2022-03-23 10:24:39 +01:00
Carlos Tadeu Panato Junior
e14c2b21b6 add signing with cosign to the binaries and images (#410)
Signed-off-by: cpanato <ctadeu@gmail.com>
2022-03-23 10:14:00 +01:00
Kotaro Shimizu
a66bd3363c Fix excluded chart when chart-dirs is multi-level (#312)
Signed-off-by: nekottyo <nekottyo@gmail.com>
2022-03-23 10:13:31 +01:00
dependabot[bot]
9b80b21aac Bump golang.org/x/tools from 0.1.9 to 0.1.10 (#415)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.9 to 0.1.10.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.9...v0.1.10)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-23 10:06:58 +01:00
dependabot[bot]
6a99c510fe Bump github.com/stretchr/testify from 1.7.0 to 1.7.1 (#413)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-22 02:11:23 +01:00
dependabot[bot]
8b974b26a0 Bump github.com/spf13/cobra from 1.3.0 to 1.4.0 (#407)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-14 11:35:13 +01:00
dependabot[bot]
64572074ef Bump github.com/goreleaser/goreleaser from 1.6.1 to 1.6.3 (#408)
Bumps [github.com/goreleaser/goreleaser](https://github.com/goreleaser/goreleaser) from 1.6.1 to 1.6.3.
- [Release notes](https://github.com/goreleaser/goreleaser/releases)
- [Changelog](https://github.com/goreleaser/goreleaser/blob/main/.goreleaser.yaml)
- [Commits](https://github.com/goreleaser/goreleaser/compare/v1.6.1...v1.6.3)

---
updated-dependencies:
- dependency-name: github.com/goreleaser/goreleaser
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-14 11:34:47 +01:00
Carlos Tadeu Panato Junior
c891fb09f2 update helm to v3.8.1 (#409)
Signed-off-by: cpanato <ctadeu@gmail.com>
v3.5.1
2022-03-14 10:52:18 +01:00
Carlos Tadeu Panato Junior
85c13010bd Updates to github actions (#406)
* add dependabot to check gh actions

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

* update helm to v3.8.1

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

* update kind to v0.12.0

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

* use git hash instead of the tags for github actions

Signed-off-by: cpanato <ctadeu@gmail.com>
2022-03-14 10:30:47 +01:00
dependabot[bot]
dab9974e08 Bump github.com/anchore/syft from 0.34.0 to 0.41.4 (#405)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-14 10:28:54 +01:00
dependabot[bot]
9eeb997f8c Bump golang.org/x/tools from 0.1.8 to 0.1.9 (#387)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.8 to 0.1.9.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.8...v0.1.9)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-14 10:10:22 +01:00
Prashant Shahi
c255a37bc3 docs(README): use the host network in docker example (#395)
Signed-off-by: Prashant Shahi <me@prashantshahi.dev>
2022-03-14 10:10:06 +01:00
Christopher Zell
4c4e8aa126 fix: add unit to extra arg help message (#391)
The help message for the --helm-extra-args config used an example without units,
which caused to fail the next chart-testing run if just copy-pasted.

Signed-off-by: Christopher Zell <zelldon91@googlemail.com>
2022-03-14 09:47:33 +01:00
dependabot[bot]
a682e3e44d Bump github.com/goreleaser/goreleaser from 1.2.5 to 1.6.1 (#404)
Bumps [github.com/goreleaser/goreleaser](https://github.com/goreleaser/goreleaser) from 1.2.5 to 1.6.1.
- [Release notes](https://github.com/goreleaser/goreleaser/releases)
- [Changelog](https://github.com/goreleaser/goreleaser/blob/main/.goreleaser.yaml)
- [Commits](https://github.com/goreleaser/goreleaser/compare/v1.2.5...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/goreleaser/goreleaser
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-14 09:42:20 +01:00
Michał Sochoń
0a093e464b Update docs with example using ct with local repo (#389) 2022-02-02 11:10:40 +01:00
dependabot[bot]
a1f103a4fe Bump golang.org/x/tools from 0.1.7 to 0.1.8 (#377)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-18 12:46:42 +01:00
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