3899 Commits

Author SHA1 Message Date
Terry Howe
1ffd0012d3 Merge pull request #32221 from gjenkins8/refactor/testify-pkg-small
refactor(pkg): convert tests to testify assert/require
2026-06-23 05:31:15 -06:00
Terry Howe
0bca9871ad Merge pull request #32254 from gjenkins8/refactor/testify-pkg-registry
refactor(pkg/registry): convert tests to testify assert/require
2026-06-22 08:22:21 -06:00
Terry Howe
7e2bdcb526 Merge pull request #32255 from gjenkins8/refactor/testify-pkg-release
refactor(pkg/release): convert tests to testify assert/require
2026-06-22 07:51:49 -06:00
Terry Howe
662c99f910 Merge pull request #32253 from gjenkins8/refactor/testify-repotest
refactor(repotest): convert tests to testify assert/require
2026-06-22 07:21:58 -06:00
Terry Howe
645e6369a7 Merge pull request #32252 from gjenkins8/refactor/testify-pkg-strvals
refactor(pkg/strvals): convert tests to testify assert/require
2026-06-22 06:59:45 -06:00
George Jenkins
7ab295fcfc refactor(internal/release): convert tests to testify assert/require
Replace native Go testing patterns (t.Errorf, t.Fatalf, t.Error,
t.Fatal) with github.com/stretchr/testify equivalents (assert.X,
require.X) for improved test readability and error messages.

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2026-06-22 21:01:24 +12:00
George Jenkins
4cce0e9e2a refactor(pkg/release): convert tests to testify assert/require
Replace native Go testing patterns (t.Errorf, t.Fatalf, t.Error,
t.Fatal) with github.com/stretchr/testify equivalents (assert.X,
require.X) for improved test readability and error messages.

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2026-06-22 16:22:20 +12:00
George Jenkins
8b0a167484 refactor(pkg/registry): convert tests to testify assert/require
Replace native Go testing patterns (t.Errorf, t.Fatalf, t.Error,
t.Fatal) with github.com/stretchr/testify equivalents (assert.X,
require.X) for improved test readability and error messages.

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2026-06-22 16:18:07 +12:00
George Jenkins
b42faba9d2 refactor(repotest): convert tests to testify assert/require
Replace native Go testing patterns (t.Errorf, t.Fatalf, t.Error,
t.Fatal) with github.com/stretchr/testify equivalents (assert.X,
require.X) for improved test readability and error messages.

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2026-06-22 15:53:57 +12:00
Matthieu MOREL
34cfdfdbe5 chore: enable contextcheck, fatcontext and noctx linters
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2026-06-19 08:37:48 +00:00
Terry Howe
05b2746081 Merge pull request #32184 from atkrad/fix/kube-isreachable-nil-panic
fix panic on repeated IsReachable calls
2026-06-18 15:24:48 -06:00
Terry Howe
a092a1bd09 Merge pull request #31859 from biagiopietro/feature/rollback-revision-history
feat(history): add rollback revision column to helm history output
2026-06-18 15:04:51 -06:00
Terry Howe
c36e4d52bd test: use assert.Empty for zero-length assertions in validate_test
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2026-06-18 07:56:32 -06:00
Terry Howe
f59fae54cc Merge pull request #32233 from s3onghyun/docs-version-desc-typo
docs: fix typo in helm version command description
2026-06-18 06:21:45 -06:00
George Jenkins
253da5106a Merge pull request #32171 from mmorel-35/empty-len
Fix empty and len testifylint violations across test files
2026-06-18 19:57:07 +12:00
s3onghyun
dd442c0cc7 docs: fix typo in helm version command description
Signed-off-by: s3onghyun <s3onghyun.hong@gmail.com>
2026-06-18 16:03:12 +09:00
George Jenkins
422773cd49 Merge pull request #32129 from gregory-m/fix-test-logs-non-pod-hooks 2026-06-18 13:07:06 +12:00
George Jenkins
5655e3f2a4 Merge pull request #32230 from helm/revert-32081-fix/statuswait-delete-race
Revert "fix(kube): prevent spurious early exit in WaitForDelete during informer sync"
2026-06-18 07:27:13 +12:00
George Jenkins
fb9791f492 Merge pull request #32136 from SebTardif/fix-digest-error-swallow
fix(provenance): check error return in Digest and encodeRelease
2026-06-18 07:01:14 +12:00
George Jenkins
daa045d492 refactor(pkg/strvals): convert tests to testify assert/require
Replace native Go testing patterns (t.Errorf, t.Fatalf, t.Error,
t.Fatal) with github.com/stretchr/testify equivalents (assert.X,
require.X) for improved test readability and error messages.

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2026-06-17 21:52:08 +12:00
George Jenkins
d3bd09147b Revert "fix(kube): prevent spurious early exit in WaitForDelete during informer sync"
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2026-06-17 13:25:18 +12:00
George Jenkins
9ad5620edc Update pkg/ignore/rules_test.go
Co-authored-by: Terry Howe <terrylhowe@gmail.com>
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2026-06-16 12:16:54 -07:00
George Jenkins
f4d713abb2 refactor(pkg): convert tests to testify assert/require
Convert pkg/gates, pkg/kubeenv, pkg/ignore, and pkg/helmpath test
files from native Go testing patterns (t.Errorf, t.Fatalf, t.Error,
t.Fatal) to github.com/stretchr/testify equivalents (assert.X,
require.X).

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2026-06-16 16:17:14 +12:00
Jeaeun Kim
9c1d5a3b24 chore: rename savedErr to clear its specific purpose
Signed-off-by: Jeaeun Kim <me@kyoku.dev>
2026-06-13 12:26:10 +09:00
Jeaeun Kim
99baa2edd4 chore: fix lint
Signed-off-by: Jeaeun Kim <me@kyoku.dev>
2026-06-13 12:26:10 +09:00
Jeaeun Kim
ea847fef95 chore: store err separately for clarity
Signed-off-by: Jeaeun Kim <me@kyoku.dev>
2026-06-13 12:26:10 +09:00
Jeaeun Kim
2014946e55 chore: Improve error reporting for helm template --debug with --show-only
Signed-off-by: Jeaeun Kim <me@kyoku.dev>
2026-06-13 12:26:10 +09:00
Terry Howe
b3fbf8d0f7 Merge pull request #30808 from mmorel-35/errorlint
chore: enable errorlint
2026-06-12 20:03:14 -06:00
George Jenkins
81d6f04c82 Merge pull request #30867 from mmorel-35/gocritic
chore: fix deprecatedComment issues from gocritic
2026-06-13 11:34:16 +12:00
Evans Mungai
ac4f8a6c22 Merge pull request #31584 from banjoh/em/check-ownership-before-delete
feat: add ownership verification before deleting resources during uni…
2026-06-12 12:33:19 +01:00
Mohammad Abdolirad
1f7869c31f fix panic on repeated IsReachable calls
- only cache kube client when creation succeeds
- add regression test for two failed reachability checks

Signed-off-by: Mohammad Abdolirad <m.abdolirad@gmail.com>
2026-06-12 11:34:33 +02:00
Terry Howe
a5552edf9f fix: protect FailingKubeClient.RecordedWaitOptions from data race (#31925)
* fix: protect FailingKubeClient.RecordedWaitOptions from concurrent access

Add a sync.Mutex to guard the append to RecordedWaitOptions in
GetWaiterWithOptions, fixing a data race detected by -race when
concurrent goroutines (e.g. upgrade + rollback) both call
GetWaiterWithOptions on the same FailingKubeClient instance.

Fixes race failures in TestUpgradeRelease_Interrupted_RollbackOnFailure
and TestInstallRelease_RollbackOnFailure_Interrupted.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: extract appendRecordedWaitOptionsLocked helper with defer unlock

Signed-off-by: Terry Howe <terrylhowe@gmail.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2026-06-11 17:38:02 -04:00
Terry Howe
c2f1b238a1 fix: route registry client output to stdout instead of stderr (#32056)
Commands like 'helm registry login', 'helm push', and 'helm pull' were
writing success messages ("Login Succeeded", "Pushed:", "Pulled:",
"Digest:") to stderr instead of stdout. The root cause was that
newDefaultRegistryClient and newRegistryClientWithTLS hard-coded
os.Stderr as the registry client writer, ignoring the out io.Writer
that main() passes as os.Stdout.

Thread out io.Writer through newRegistryClient, newDefaultRegistryClient,
and newRegistryClientWithTLS, and update all call sites in pkg/cmd.

Fixes #13464

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2026-06-11 17:36:42 -04:00
Ogulcan Aydogan
7058f841af fix(engine): add debug logging when lookup returns empty (#32205)
When lookup cannot find the requested resource (apierrors.IsNotFound),
add slog.Debug() calls with structured fields (apiVersion, kind,
namespace, name) so that users running helm template --debug can see
why lookup returned an empty map instead of silently swallowing the
not-found result.

Fixes: https://github.com/helm/helm/issues/32101

Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@hotmail.com>
2026-06-11 17:31:18 -04:00
MrJack
0ade355c35 Merge branch 'helm:main' into feature/rollback-revision-history 2026-06-10 09:00:39 +02:00
George Jenkins
e5efe067ed Merge pull request #31758 from benoittgt/fix-31757
fix: prevent warning when using version range constraints
2026-06-08 22:01:26 -07:00
Evans Mungai
a6179d0dd1 Merge branch 'main' into em/check-ownership-before-delete
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2026-06-04 17:51:10 +01:00
MrJack
1b360574a9 Merge branch 'helm:main' into feature/rollback-revision-history 2026-06-01 15:16:32 +02:00
Terry Howe
59b57c5c31 Merge pull request #31885 from mmorel-35/whitespace
chore: fix whitespace linter
2026-05-30 05:19:51 -06:00
George Jenkins
fc2e27e448 Merge pull request #32081 from TerryHowe/fix/statuswait-delete-race
fix(kube): prevent spurious early exit in WaitForDelete during informer sync
2026-05-29 18:14:21 -07:00
Matthieu MOREL
488c4a805d Fix empty and len testifylint violations across test files
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2026-05-29 08:02:24 +02:00
Evans Mungai
d374e823b2 Merge pull request #32086 from mmorel-35/error-is-as
testifylint: enable error-is-as and error-nil rules
2026-05-28 17:53:03 +01:00
Austin Abro
6dc1c1ccf8 lower resync period
Signed-off-by: Austin Abro <austinabro321@gmail.com>
2026-05-27 14:59:21 -04:00
MrJack
8250ba6152 Merge branch 'helm:main' into feature/rollback-revision-history 2026-05-26 08:33:03 +02:00
Sebastien Tardif
e095e690a8 fix(provenance): check error return in Digest
Return the actual error from io.Copy in Digest() instead of nil.
The previous code swallowed the error and returned an empty string
as a valid SHA-256 digest, which could silently break chart
provenance verification.

Also fix encodeRelease() in pkg/storage/driver/util.go:
- Close the gzip writer on the w.Write() error path to avoid
  leaking resources.
- Check the error return from gzip.Writer.Close(), which flushes
  remaining compressed data and can fail.

Assisted-by: Grok/xAI
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
2026-05-21 07:28:33 -07:00
Terry Howe
fcdf3854b0 Merge pull request #32113 from isumitsolanki/issue_32100
fix(downloader): order DiskCache.Get checks for overlayfs empty dirs
2026-05-19 13:45:43 -06:00
Robert Sirchia
6c3f397d2c Merge pull request #32122 from quyentonndbs/chore/lint-deprecations-comment-typo
docs: fix typo in deprecated API godoc
2026-05-19 15:11:17 -04:00
MrJack
d097d882d4 Renamed flag from show-rollback to show-rollback-revision
Signed-off-by: MrJack <36191829+biagiopietro@users.noreply.github.com>
2026-05-19 19:17:35 +02:00
MrJack
291a1a3b26 Merge branch 'helm:main' into feature/rollback-revision-history 2026-05-19 19:14:11 +02:00
Gregory Man
1a1ec6e3cc fix: skip non-Pod test hooks in GetPodLogs
Before this change, hooks with `helm.sh/hook: test` but Kind != Pod
(ConfigMap, Secret, ...) led to `helm test --logs` fail with
`unable to get pod <name>`.

Signed-off-by: Gregory Man <man.gregory@gmail.com>
2026-05-19 13:06:56 +03:00