Commit graph

2285 commits

Author SHA1 Message Date
Matt Farina
7ceeda6c58
bump version to v3.9.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
2022-05-09 15:19:10 -04:00
Matt Farina
2cd709c4a6
Merge pull request #10106 from presztak/lint_quiet_flag
feat(*): add --quiet flag to 'helm lint'
2022-05-06 16:30:38 -04:00
Andrew Seigner
bd7c97f786 Bump k8s packages from 0.23.6 to 0.24.0
This required modifying the `kube.Factory` interface to conform to
changes in k8s' `cmdutil.Factory` interface:
fe3772890f

Signed-off-by: Andrew Seigner <andrew@sig.gy>
2022-05-04 10:58:09 +00:00
Martin Hickey
8d3f9a475d
Merge pull request #10767 from marquiz/fixes/unit-test
repo: fix repo merge unit test
2022-05-04 10:06:03 +01:00
Martin Hickey
c477d697ec
Merge pull request #10458 from SimonAlling/remove-AssertGoldenBytes
Remove AssertGoldenBytes test helper
2022-04-29 09:37:23 +01:00
Martin Hickey
f1b1958e68
Merge pull request #10085 from werf/fix_no_deployed_releases_on_history_limit_hit
"... has no deployed releases" error when release history contains only failed releases and history limit reached
2022-04-28 13:41:46 +01:00
Martin Hickey
511df9e710
Merge pull request #10201 from SgtCoDFish/signerrcheck
Add more error checks during the signing process
2022-04-28 13:37:36 +01:00
Matthew Fisher
49819b4ef7
Merge pull request #10861 from bacongobbler/gobuild
replace +build with go:build
2022-04-15 06:28:13 -07:00
Martin Hickey
a368bde6c8
Merge pull request #10850 from greed42/install-helm-version
Populate Capabilities.HelmVersion during install
2022-04-15 09:29:59 +01:00
Matthew Fisher
2878cc8079
replace +build with go:build
go:build is the new conditional compilation directive used to specify build constraints. It was introduced in Go 1.17. It is meant to replace the old +build directives.

Now that go.mod points to Go 1.17 we no longer need to support both
build flags.

Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
2022-04-14 07:56:31 -07:00
Matt Farina
4d2e21e860
Merge pull request #10832 from true-north-engineering/main
Fixing downloader plugin error handling
2022-04-12 12:46:04 -04:00
Matt Farina
3fdb7cac01
Merge pull request #10110 from zegerius/main
Fix value precedence
2022-04-12 11:08:33 -04:00
Graham Reed
82a2a2e85c Populate Capabilities.HelmVersion during install
Signed-off-by: Graham Reed <greed@7deadly.org>
2022-04-11 14:33:00 +01:00
Zoran Krleza
06c39c8079 Fixing downloader plugin error handling
Signed-off-by: Zoran Krleza <zoran.krleza@true-north.hr>
2022-04-05 10:17:24 +02:00
Timofey Kirillov
da8e7d2532
fix: "... has no deployed releases" error when release history contains only failed releases and history limit reached
Fixed old releases rotation procedure to not require a deployed release to exists.

An error will arise when there are no successfully deployed release yet, but releases history limit has been reached. In such situation helm will refuse to upgrade release anymore with "... has no deployed releases" error.

Furthermore, release rotation procedure already expecting lastDeployedRelease to be either nil, or not nil. So it is assumed that deployed release may exist or may not and these both outcomes were already expected as a valid situation rather than a failure.

Reworked storage_test.go TestStorageRemoveLeastRecentWithError test case: use mocked driver and test release creation procedure does not shadows errors from the underneath release rotation procedure.

Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
2022-03-31 10:22:42 +03:00
Scott Rigby
634b18295a
Merge pull request #10568 from monostream/feature/fix-connection-leak
HTTPGetter: Reuse http transport
2022-03-24 12:50:48 -04:00
Markus Lehtonen
7a08426869 repo: fix repo merge unit test
Enable asserts that accidentally excluded from normal test flow.

Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2022-03-15 09:07:05 +02:00
Matthew Fisher
e9abdc5efe
Merge pull request #9751 from cndoit18/fix-issue-9747
fix(rollback): fix helm rollback doesn't have meta.helm.sh annotations
2022-03-11 12:39:09 -08:00
Matthias Fehr
cab1fc87d4 Dont modify provided transport
Signed-off-by: Matthias Fehr <matthias@monostream.com>
2022-02-22 17:54:10 +01:00
Matthias Fehr
7d22040e66 Pass http getter as pointer in tests
Signed-off-by: Matthias Fehr <matthias@monostream.com>
2022-02-22 16:00:38 +01:00
Matthias Fehr
2acda0cc5b Add docs block
Signed-off-by: Matthias Fehr <matthias@monostream.com>
2022-02-22 15:59:53 +01:00
Matthias Fehr
45367ca9bf Add transport option and tests
Signed-off-by: Matthias Fehr <matthias@monostream.com>
2022-02-22 15:34:29 +01:00
Eng Zer Jun
2e3e22a003
test: use T.TempDir to create temporary test directory
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-02-12 13:54:54 +08:00
stephanECD
0361dc8568 Add IngressClass to manifests to be (un)installed
Signed-off-by: StephanECD <87023735+stephanECD@users.noreply.github.com>
2022-02-04 11:34:32 +00:00
Martin Hickey
df7c1c39bc
Merge pull request #10514 from tanguofu/main
fea(#10511): add --post-renderer-args to support assign args to PostR…
2022-01-31 12:11:55 +00:00
Matt Farina
1ec0aacb88
Merge pull request #10486 from gridai/fix-install-leak
Fix install memory/goroutine leak
2022-01-27 15:03:58 -05:00
Josh Dolitsky
59dbda915f
Merge pull request #10558 from sabre1041/bearer-token-oci
Management of bearer tokens for tag listing
2022-01-26 10:06:50 -06:00
guofutan
04e79e936d fix: fix args name in postrender/exec_test.go and error if order in postRendererArgsSlice
Signed-off-by: guofutan <guofutan@tencent.com>
2022-01-22 11:46:30 +08:00
guofutan
d12170b3f2 fix: change postRendererArgs to Slice Type and use args...
Signed-off-by: guofutan <guofutan@tencent.com>
2022-01-22 11:46:29 +08:00
guofutan
44423fb2ca fix: keep the API: postrender.NewExec and Add NewExecWithArgs
Signed-off-by: guofutan <guofutan@tencent.com>
2022-01-22 11:46:29 +08:00
guofutan
1aab7eb3a1 fix: keep the API: postrender.NewExec and Add NewExecWithArgs
Signed-off-by: guofutan <guofutan@tencent.com>
2022-01-22 11:46:28 +08:00
guofutan
46222c5c00 fea(#10511): add --post-renderer-args to support assign args to PostRenderer exec
Signed-off-by: guofutan <guofutan@tencent.com>
2022-01-21 20:43:32 +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
Martin Hickey
9975d62525 Handle Hungarian notation issue
Issue with smallCaps combination e.g. kCaFile

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2022-01-20 15:36:10 +00:00
Martin Hickey
f0fd37d2c5 Replace golint with revive
golint which is used as one of the sublinters in golangci-lint is deprecated.
It is replaced with revive which is a drop-in replacement.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

Co-authored-by: Martin Mulholland <mmulholl@redhat.com>
2022-01-20 15:19:40 +00:00
Josh Dolitsky
86a94f2f53
Merge pull request #10578 from sabre1041/oci-tag-evaluation
Limits need to call tag API when explicit version specified
2022-01-18 12:22:00 -06:00
Andrew Block
0677a156bc
Limits need to call tag API when explicit version specified
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-18 11:38:04 -06:00
Martin Hickey
21952fccc4
Merge pull request #10574 from Juneezee/refactor/os.ReadDir
refactor: use `os.ReadDir` for lightweight directory reading
2022-01-18 17:22:54 +00:00
Eng Zer Jun
e12f3570b5
refactor: use os.ReadDir for lightweight directory reading
`os.ReadDir` was added in Go 1.16 as part of the deprecation of `ioutil`
package. It is a more efficient implementation than `ioutil.ReadDir` as
stated here https://pkg.go.dev/io/ioutil#ReadDir.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-01-18 21:31:57 +08:00
Matthias Fehr
aa33f4fdd8 Reuse http transport
Signed-off-by: Matthias Fehr <matthias@monostream.com>
2022-01-17 15:12:21 +01:00
Andrew Block
c8a2559236
Management of bearer tokens for tag listing
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-14 19:52:54 -06:00
Matt Farina
0c8320b685
bump version to v3.8.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit d493f29c32)
2022-01-13 10:09:43 -05:00
David Peraza
9661e39dce Moving uploader and pusher out of action into pkg
Signed-off-by: David Peraza <dperaza@redhat.com>
2022-01-13 08:22:51 -05:00
David Peraza
7cab1a09e3 Move all the remainder module out of experimental.
All the experimental modules were moved to pkg/action

Signed-off-by: David Peraza <dperaza@redhat.com>
2022-01-12 22:51:32 -05:00
David Peraza
9f869c6b21 Removing all the checks for oci experimental flag
Signed-off-by: David Peraza <dperaza@redhat.com>
2022-01-12 21:49:26 -05:00
Thomas Runyon
91a46ad14f move paths for updated directory location
Signed-off-by: Thomas Runyon <runyontr@gmail.com>
2022-01-12 21:49:26 -05:00
Thomas Runyon
353d74e967 refactor internal/experimental/registry to pkg/registry
Signed-off-by: Thomas Runyon <runyontr@gmail.com>
2022-01-12 21:49:26 -05:00
Matt Farina
548ec55cf9
Fix panic with OCI for install, upgrade, and show
When range support for OCI went in via #10527 it created a situation
where some lookups for a chart could cause a panic. This change
makes sure the registry client is available to lookup OCI charts

Signed-off-by: Matt Farina <matt.farina@suse.com>
2022-01-12 21:30:27 -05:00
Scott Rigby
ee382eb169
Remove unneeded assignment
Signed-off-by: Scott Rigby <scott@r6by.com>
2022-01-12 17:43:10 -05:00
Andrew Block
1a9cb93551
Handling name of OCI file
Signed-off-by: Andrew Block <andy.block@gmail.com>
2022-01-12 15:49:12 -06:00