23 Commits

Author SHA1 Message Date
anessi
acf7158565 feat(helm): add --skip-schema-validation flag to helm 'install', 'upgrade' and 'lint'
When --skip-schema-validation is set, any schema contain in the helm chart is ignored. Defaults to 'false'.

Closes #10398

Signed-off-by: anessi <16045045+anessi@users.noreply.github.com>
2024-06-25 16:43:48 +02:00
Antoine Deschênes
869c1d2560 lint: Add --kube-version flag to set capabilities and deprecation rules
Signed-off-by: Antoine Deschênes <antoine@antoinedeschenes.com>
2024-01-08 19:35:41 -05:00
Joe Julian
853c18002f fix quiet lint does not fail on non-linting errors
Signed-off-by: Joe Julian <me@joejulian.name>
2023-04-10 09:22:24 -07:00
Matt Farina
4e7e939f19 Updating the Go version in go.mod
At this time both Go 1.19 and 1.20 are supported. The version
specified in the go.mod file is the minimum version we expect Helm
to be compiled against. This is the oldest supported version to
support environments where others compile Helm. The Helm project
is using Go 1.20 to build Helm itself.

Updating to Go 1.19 also includes dealing with io/ioutil
deprecation and some additional linting issues around staticcheck.
All the staticcheck issues were in test files so linting was
skipped for those.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2023-03-22 11:52:30 -04:00
cui fliter
09d3f31358 fix a few function names on comments
Signed-off-by: cui fliter <imcusg@gmail.com>
2022-10-17 20:41:59 +08:00
Piotr Resztak
383086d397 feat(*): add --quiet flag to 'helm lint'
Quiet flag reduce the verbosity, such that the only text
that is written to the console is lint warnings/errors

Closes #9994

Signed-off-by: Piotr Resztak <piotr.resztak@gmail.com>
2022-01-20 17:21:03 +01:00
Kally Fox
f9b1445b63 refactor: use os instead of ioutil's ReadDir
Signed-off-by: Kally Fox <kallydev@gmail.com>
2021-07-08 21:28:42 +08:00
Song Shukun
e9f40ed7a5 fix golint failure in pkg/action
Signed-off-by: Song Shukun <song.shukun@fujitsu.com>
2020-02-18 23:15:56 +09:00
Nick Lee
cf4bee7ac8 feat(cmd/lint): added a flag for linting subcharts
Signed-off-by: Nick Lee <nmkyu.lee@gmail.com>
2019-12-22 22:49:11 -05:00
Kamalashree Nagaraj
73db724c6c feat(helm): add linting support for '.tar.gz' tarballs for helm charts (#6829)
When 'helm3 lint <chart-name>.tar.gz' is run, this will lint Chart.yaml in the package

Closes #6535

Signed-off-by: Kamalashree N <nagaraj.kamalashree@gmail.com>
2019-10-30 16:33:26 +00:00
Taylor Thomas
0ba959af0d feat(lint): Ports v2 functionality for linting pre-release charts
This is a port of #5177

Signed-off-by: Taylor Thomas <taylor.thomas@microsoft.com>
2019-10-10 16:58:47 -06:00
Matthew Fisher
c1e63a2a17 Merge pull request #6536 from karuppiah7890/fix-lint-for-no-package-found
fix silent lint ignore for non existing packaged charts
2019-10-05 10:57:26 -07:00
Karuppiah Natarajan
bb9426c4e2 fix(pkg/lint): fix lint silently ignoring non existing packaged charts
Closes #6428

Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
2019-10-04 21:28:16 +05:30
Matt Farina
9bc7934f35 Updating the module for v3 as the major version
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-03 14:27:05 -04:00
Matthew Fisher
9742c8c5a2 fix(action): typo
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-09-24 10:57:35 -07:00
Karuppiah Natarajan
25324ca8db fix install storing computed values in release instead of user supplied values
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
2019-09-14 20:34:48 +05:30
Thomas O'Donnell
e5668f54fe Stop multiple error messages in lint results
Have fixed a minor error in the lint action that was causing Error
messages from linting chart getting added to the returned results
multiple times.

Signed-off-by: Thomas O'Donnell <andy.tom@gmail.com>
2019-08-27 19:22:23 +02:00
Vibhav Bobade
68a8f36a92 Fix Adding Errors from Linter.Messages to result.Errors
This also fixes <nil> beig added to result.Errors

Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-20 04:22:17 +05:30
Vibhav Bobade
7da1f35386 Clone the vals map for every path to avoid mutation
Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>
2019-08-19 04:25:01 +05:30
Joe Lanford
68ee30b48c cmd/*,pkg/*: move ValueOptions to cmd package and decouple from SDK
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
2019-08-01 11:04:36 -04:00
Adam Reese
895e9192d4 feat(*): use vanity import helm.sh/helm
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-13 13:43:47 -07:00
Matthew Fisher
f185103b60 ref(action): move AddFlags functions back to cmd
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 08:58:35 -07:00
Matthew Fisher
2571dbf82f ref: remove pkg/helm, pkg/hapi, pkg/tiller
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-12 09:47:12 -07:00