Commit graph

162 commits

Author SHA1 Message Date
Calvin Bui
abf2007685
Use length check for MetaDependencies instead of nil comparison
Signed-off-by: Calvin Bui <3604363+calvinbui@users.noreply.github.com>
(cherry picked from commit b33d4ae0c0)
2026-01-14 17:33:30 -05:00
Benoit Tigeot
417aae9c01
Fix linting issue
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
(cherry picked from commit 9f1c8a26f0)
2026-01-14 17:01:45 -05:00
Michelle Fernandez Bieber
d2df1ab59e
updated comment and made defer of shutdown function return errors as before and not the possible shutdown error
Signed-off-by: Michelle Fernandez Bieber <mfbieber@gmail.com>
(cherry picked from commit 10714772be)
2026-01-14 17:01:28 -05:00
Michelle Fernandez Bieber
5b223de7c8
added shutdown hook that is executed after the logs have been retrieved
Signed-off-by: Michelle Fernandez Bieber <mfbieber@gmail.com>
(cherry picked from commit 7a557580e1)
2026-01-14 17:01:24 -05:00
tison
e845b68fe3
Fix TestCliPluginExitCode
Signed-off-by: tison <wander4096@gmail.com>
(cherry picked from commit 3c6557dcf5)
2026-01-14 16:58:00 -05:00
tison
30bfd57c5f
Check plugin name is not used
Signed-off-by: tison <wander4096@gmail.com>
(cherry picked from commit 5196b8431a)
2026-01-14 16:57:48 -05:00
Hidde Beydals
af7c15303a
fix(uninstall): supersede deployed releases
This ensures that when `helm uninstall` is run with `--keep-history`
any release in a `deployed` state other than the last release (e.g.
due to a failed upgrade) is being marked as `superseded`.

As a by-effect, running `helm upgrade` on a release which has been
uninstalled after an upgrade failure now no longer works. But instead
fails with a `"<name>" has no deployed releases` error. Which is the
(likely) intended behavior, and prevents other side-effects like
rolling back to a release version which happened before the uninstall
if `--atomic` (or `--rollback-on-failure`) was provided.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
(cherry picked from commit 2f1ecc7100)
2026-01-14 16:51:38 -05:00
Matt Farina
861adc2f4a
Fix kube client logging
The kube client logging is based on the actionConfig logging. This
is setup to use slog.Default() before the logging flags are parsed
and logging is setup.

newRootCmdWithConfig changes the logging but it wasn't picked up
for actionConfig or the kube client. This change updates the logging
to include any changes.

Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 936cd328ac)
2025-11-24 08:55:27 -05:00
Matt Farina
ca8eae9361
Reproducible chart archive builds
Building the same chart into an archive multiple times will have
the same sha256 hash.

Perviously, the time in the headers for a file was time.Now() which
changed each time. The time is now collected from the operating
system when the file is loaded and this time is used.

Fixes: #3612

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-10-29 11:49:22 -04:00
Evans Mungai
0f90c83118
Merge remote-tracking branch 'upstream/main' into em/reinstate-logger-param 2025-10-21 23:43:10 +01:00
Evans Mungai
b1d4dc680d
feat: reinstate logger parameter to actions package
Fixes: #31399

Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2025-10-21 22:48:51 +01:00
Matt Farina
76e6b7a6fe
Merge pull request #31390 from TerryHowe/chore-increase-helm-list-test-coverage
fix: improve pkg/cmd/list test coverage
2025-10-21 15:49:13 -04:00
Matt Farina
2cfd41ec28
Merge pull request #31351 from gjenkins8/gjenkins/helm_version_kubeversion
feat: `helm version` print Kubernetes (client-go) version
2025-10-21 15:32:40 -04:00
wyrapeseed
b9eadd3186 chore: fix some comment format
Signed-off-by: wyrapeseed <wyrapeseed@outlook.com>
2025-10-15 11:19:41 +08:00
Terry Howe
379b0899b3
fix: increase helm list test coverage
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-10-13 16:16:50 -06:00
George Jenkins
7dd2484aed
Merge pull request #31295 from TerryHowe/fix-make-helm-list-show-all-by-default
Some checks are pending
build-test / build (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
golangci-lint / golangci-lint (push) Waiting to run
release / release (push) Waiting to run
release / canary-release (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Fix make helm list show all by default
2025-10-13 20:04:19 +01:00
Scott Rigby
f0530309f0
Merge pull request #31302 from TerryHowe/fix-helm-verify-signature
fix: helm verify Run signature
2025-10-13 14:38:21 -04:00
Terry Howe
abdf6603c0
fix test for rebase
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-10-13 11:15:26 -06:00
Terry Howe
f6e60138e8
Update pkg/cmd/list.go
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-10-13 10:28:44 -06:00
Terry Howe
c3aa5c51e6
chore: clean up for comments
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-10-13 10:28:44 -06:00
copilot-swe-agent[bot]
b4f932a715
Fix test by making date sorting stable and updating golden files
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-10-13 10:28:43 -06:00
Terry Howe
8a73d97984
fix: make helm list show all by default
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-10-13 10:27:58 -06:00
Terry Howe
20eb6e9b04
fix: empty time values
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-10-10 16:44:19 -06:00
Matt Farina
ab6e7fa58b Removing debug statement
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-10-10 11:52:36 -04:00
Matt Farina
a229bf6529 Ensure the release interface is used in actions instead of the type
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-10-10 11:52:33 -04:00
Matt Farina
f80cbe43d0 Moved release objects to enable versioning
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-10-10 11:49:08 -04:00
Matt Farina
2247a0074b Move all the get commands to the new release interface
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-10-10 11:49:08 -04:00
George Jenkins
4877e2d7e9
Merge pull request #30833 from gjenkins8/gjenkins/refactor_dry_run_flag
Some checks are pending
build-test / build (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
golangci-lint / golangci-lint (push) Waiting to run
release / release (push) Waiting to run
release / canary-release (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
refactor/cleanup: Replace action 'DryRun' string with DryRunStrategy type + deprecations
2025-10-09 13:29:29 -07:00
George Jenkins
0adfe83ff8
Merge pull request #31227 from evankanderson/windows-filepath
Use filepath.Path when handling directory names
2025-10-02 17:41:41 -07:00
George Jenkins
7761d937ca testfix
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-10-01 15:32:37 -07:00
George Jenkins
a7a6a5e3b0
Merge pull request #31312 from gjenkins8/gjenkins/rm_plugin_schema_settings
Remove unused 'Settings' from plugin schema
2025-10-01 10:08:40 -07:00
George Jenkins
561a7da61c
Merge pull request #31297 from TerryHowe/fix-hide-notes-in-helm-test
fix: hide notes in helm test command
2025-09-22 16:55:09 -07:00
George Jenkins
f21b143bef refactor: Replace action 'DryRun' string with DryRunStrategy type + deprecations
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-09-21 08:03:02 -07:00
George Jenkins
6bc6231bcc Remove unused 'Settings' from plugin schema
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-09-21 07:53:41 -07:00
Robert Sirchia
5b43b744b8
Merge pull request #31294 from TerryHowe/feature-remove-implicit-directory-from-helm-lint
Remove implicit support for helm lint current directory
2025-09-19 15:32:00 -04:00
Robert Sirchia
fdb5e1a97a
Merge pull request #31301 from TerryHowe/chore-remove-helm-version-client
chore: remove helm version `--client` option
2025-09-19 15:25:37 -04:00
Matt Farina
d2236e95ed
Merge pull request #31303 from mattfarina/unified-loader
Update the action interfaces for chart apiversions
2025-09-18 14:22:31 -06:00
Matt Farina
8dc7c57f50
Update the action interfaces for chart apiversions
This change is about handling the interfaces to public functions for
different chart apiVersions. The internals are still focused on v2.
This enables v3 to be layered in layer.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-09-17 15:19:02 -04:00
Terry Howe
020a8eccfd
fix: helm verify run signature
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-09-17 11:14:34 -06:00
Terry Howe
469f4b457c
chore: remove helm version client option
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-09-16 20:00:24 -06:00
Terry Howe
dab4fd2909
fix: hide notes in helm test command
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-09-15 19:24:59 -06:00
copilot-swe-agent[bot]
838c36a0f6
Remove implicit support for helm lint current directory
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-09-15 14:15:01 -06:00
Terry Howe
3e1dd9a5dc
chore: remove pkg/time which is no longer needed
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-09-15 12:29:35 -06:00
Robert Sirchia
5534c01cdb
Merge pull request #31277 from benoittgt/31234-fix
Fix deprecation warning for spf13/pflag from 1.0.7 to 1.0.10
2025-09-11 12:32:37 -04:00
Evan Anderson
20f4e1f12d Use filepath.Path when handling directory names
Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>
2025-09-10 14:30:03 -07:00
Benoit Tigeot
99e5fce71a
Fix deprecation warning for spf13/pflag from 1.0.7 to 1.0.10
Close: #31231

```
Error: cmd/helm/root.go:165:2: SA1019: flags.ParseErrorsWhitelist is deprecated: use [FlagSet.ParseErrorsAllowlist] instead. This field will be removed in a future release. (staticcheck)
```

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-09-10 21:26:02 +02:00
Kamil Swiechowski
38d1a7376f fix: throw warning when chart version is not semverv2
Signed-off-by: Kamil Swiechowski <kamil.swiechowski@iprally.com>
2025-09-03 07:49:41 +02:00
Matt Farina
618b14a772
Merge pull request #31225 from mattfarina/move-lint-to-chart
Move lint pkg to be part of each chart version
2025-09-02 13:18:20 -06:00
George Jenkins
a8151ef4fe Cleanup plugin config
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-09-02 09:53:22 -07:00
Scott Rigby
ed6cab39c6
Merge pull request #31219 from gjenkins8/gjenkins/plugin-integration/rm_setup_plugin_env 2025-09-02 12:31:13 -04:00