Commit Graph
83 Commits
Author SHA1 Message Date
George Jenkins 18b7d45999 Merge pull request #31034 from Mazafard/feat/color-output-and-test-fixes
Feat: Add color output functionality and tests for release statuses
2025-08-05 13:15:22 -07:00
George Jenkins 93106ba2b6 Merge pull request #30982 from gjenkins8/gjenkins/force_replace_flag
Rename 'force' to 'force-replace'
2025-08-04 21:21:42 -07:00
Mohammadreza Asadollahifard 4ef0f3d5e2 Merge remote-tracking branch 'upstream/main' into feat/color-output-and-test-fixes 2025-07-23 23:00:31 +01:00
George Jenkins 8face0e596 Merge pull request #31060 from yumeiyin/main
refactor: replace Split in loops with more efficient SplitSeq
2025-07-18 07:50:10 -07:00
Joe Julian 08909e030b Merge pull request #31019 from zachburg/templates_lint
Return early when linting if the `templates/` directory does not exist
2025-07-17 11:08:20 -07:00
Joe Julian 1f3e4ad12a Merge pull request #31011 from yalosev/feature/add-labels-to-metadata
feature: add labels to metadata
2025-07-17 10:49:47 -07:00
George Jenkins 74f2805f01 Rename 'force' to 'force-replace'
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-07-14 09:41:18 -07:00
yumeiyin 8c22fbfe4a refactor: replace Split in loops with more efficient SplitSeq
Signed-off-by: yumeiyin <yin.yumei@qq.com>
2025-07-14 16:21:15 +08:00
Mohammadreza Asadollahifard c1b3a83514 refactor: clean up color output imports in list, root, and status files
Signed-off-by: Mohammadreza Asadollahifard <mazafard@gmail.com>
2025-07-11 21:19:16 +01:00
Mohammadreza Asadollahifard d28343550f feat: make color output opt-in by default
Signed-off-by: Mohammadreza Asadollahifard <mazafard@gmail.com>
2025-07-11 21:08:32 +01:00
Mohammadreza Asadollahifard ba8f70ae0b refactor: move color package to internal/cli/output
Signed-off-by: Mohammadreza Asadollahifard <mazafard@gmail.com>
2025-07-11 21:04:27 +01:00
Mohammadreza Asadollahifard b72db06c49 refactor: replace NoColor with ColorMode for improved color output control
Signed-off-by: Mohammadreza Asadollahifard <mazafard@gmail.com>
2025-07-11 20:52:40 +01:00
Yuriy Losev 46b1a41631 Add release labels to the release Metadata
Signed-off-by: Yuriy Losev <yuriy.losev@flant.com>
2025-07-09 11:30:22 +04:00
Zach Burgess 35434947a3 Return a lint warning if templates/ does not exist.
Signed-off-by: Zach Burgess <zachburg@google.com>
2025-07-07 21:02:11 -07:00
Mohammadreza Asadollahifard c547d1f2ae add color output functionality and tests for release statuses
Signed-off-by: Mohammadreza Asadollahifard <mazafard@gmail.com>
2025-07-07 23:20:41 +01:00
Zach Burgess 6e30619d8f Merge branch 'helm:main' into templates_lint 2025-07-07 09:34:04 -07:00
George Jenkins bbea98ed6b Merge pull request #30898 from fidelity-contributions/fix-issue-13198
Fix issue 13198
2025-07-06 11:39:38 -07:00
George Jenkins edd0dabe02 Merge pull request #31021 from zachburg/test_temp_dir
Update tests in create_test.go and package_test.go to work in a temp directory
2025-07-04 17:21:23 -07:00
George Jenkins 5283915c57 Remove deprecated '--create-pods' flag
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2025-07-02 20:18:34 -07:00
Zach Burgess eaf40b4b4f Call ensure.HelmHome() in package_test.go
Signed-off-by: Zach Burgess <zachburg@google.com>
2025-07-02 16:20:45 -07:00
Zach Burgess c48a3435f5 Remove unnecessary calls for changing directory to helmpath.CachePath.
This was only set on some tests in create_test.go and isn't
affecting the test.

Signed-off-by: Zach Burgess <zachburg@google.com>
2025-07-02 09:30:59 -07:00
Zach Burgess 3b26ddc22b Update tests in create_test.go and package_test.go to work in a temp dir.
Signed-off-by: Zach Burgess <zachburg@google.com>
2025-07-01 15:34:27 -07:00
Zach Burgess b703d5b4bb Return early when linting if the templates/ dir does not exist
The `vaildateTemplatesDir` function would still return `nil` if the directory doesn't exist,
so the early return that was documented never occurs.

Signed-off-by: Zach Burgess <zachburg@google.com>
2025-07-01 14:29:40 -07:00
Matt Farina f0cf9c28f0 Move logging setup to be configurable
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-07-01 15:51:25 -04:00
George Jenkins a2a0935cba Merge pull request #30900 from unguiculus/issue-12952
Add timeout flag to repo add and update commands
2025-06-22 18:00:57 -07:00
manslaughter03 bc44614a78 fix: wrap run release test error in case GetPodLogs failed.
Signed-off-by: manslaughter03 <manslaughter03@gmail.com>
2025-06-11 00:45:34 +02:00
Ashmit Bhardwaj e060fbe185 updated docs
Signed-off-by: Ashmit Bhardwaj <ashmit.bhardwaj@fmr.com>
2025-06-09 06:15:39 +00:00
Ashmit Bhardwaj 0389407cbc removed unnecessary binary file
Signed-off-by: Ashmit Bhardwaj <ashmit.bhardwaj@fmr.com>
2025-06-09 06:15:39 +00:00
Ashmit Bhardwaj b305a501e8 added documentation and test cases for api-versions flag
Signed-off-by: Ashmit Bhardwaj <ashmit.bhardwaj@fmr.com>
2025-06-09 06:15:39 +00:00
Terry Howe 93ec064640 fix: repo update cmd mutex
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-06-06 06:47:50 -06:00
Matthieu MOREL 56a2bb4188 chore: enable usetesting linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-05-30 08:12:11 +02:00
Reinhard Nägele d448cf1943 Add timeout flag to repo add and update flags
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>

# Conflicts:
#	pkg/cmd/repo_update.go
2025-05-26 07:31:55 +02:00
Robert Sirchia 83c26845ad Merge pull request #30904 from benoittgt/document-ideal-registry-login-command
[Doc] Help users avoid specifying URL scheme and path with `helm registry`
2025-05-23 08:06:12 -04:00
Benoit Tigeot cb730c94b5 Help users avoid specifying URL scheme an path
We’ve noticed that some users still include the URL scheme and full path
when logging into an OCI registry, for example:

```sh
helm registry login -u $OCI_REGISTRY_USER --password-stdin oci://ghcr.io/org/repo
```

This is no longer necessary and will not be supported in Helm v4.

To guide users toward the correct usage, we should show an example of
the ideal command.

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-05-23 11:44:52 +02:00
Matt Farina cf7613ba6b Reverting fix "renders int as float"
This reverts #13533

This change has caused issues with numerous charts around things
unrelated to toml. This is because of functions like typeIs/typeOf
being used and acted upon.

The change caused a significant regression.

Note: This kind of change can be put into v3 charts, that are in
active development, without causing a regression.

Closes #30880

Signed-off-by: Matt Farina <matt@mattfarina.com>
2025-05-21 15:09:01 -04:00
Matt Farina ab56ac62ba Merge pull request #30866 from mmorel-35/thelper
chore: enable thelper linter
2025-05-20 14:47:54 +01:00
Matthieu MOREL 157f0ba10a chore: enable thelper
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2025-05-16 10:25:08 +02:00
Matt Farina b5a4781099 Adding test for list command
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-05-15 15:23:13 -04:00
Ayush TiwariandTerry Howe 56b688145f added cmd in repo_list.go for pipeline
Co-authored-by: Terry Howe <terrylhowe@gmail.com>
Signed-off-by: Ayush Tiwari <55987406+ayushontop@users.noreply.github.com>
2025-05-13 18:22:11 +05:30
Ayush Tiwari e63cbae886 added cmd.ErrOrStderr()
Signed-off-by: Ayush Tiwari <55987406+ayushontop@users.noreply.github.com>
2025-05-07 02:46:58 +05:30
Ayush Tiwari 95328ea0a6 removed error import
Signed-off-by: Ayush Tiwari <55987406+ayushontop@users.noreply.github.com>
2025-05-07 02:11:46 +05:30
Ayush Tiwari 058bc083a8 changed Error to print
Signed-off-by: Ayush Tiwari <55987406+ayushontop@users.noreply.github.com>
2025-05-07 00:38:13 +05:30
findnature ac8d2f9aed refactor: use slices.Contains to simplify code
Signed-off-by: findnature <cricis@aliyun.com>
2025-05-02 09:43:25 +08:00
Justen Stall 73545f9a3e one more test output
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
2025-04-21 16:08:21 -04:00
Justen Stall 4a6092bd6c update another test output
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
2025-04-21 16:04:28 -04:00
Justen Stall 3877ec9049 fix golangci-lint issues
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
2025-04-21 12:44:40 -04:00
Justen Stall 280a9ddbdb Merge branch 'main' into stdlib-errors-2
Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com>
2025-04-21 12:13:10 -04:00
Robert Sirchia da096e1b7a Merge pull request #30752 from benoittgt/bump-golangci-lint-action
Bump golangci lint to last major version and fix static-check errors
2025-04-16 15:50:55 -04:00
Matt Farina 0dffc580b0 Simpligy the JSON Schema checking
A new library was introduced that provides JSON Schema checking for
newer versions of the schema. In Helm v4, there is no need to have
two packages doing the JSON schema validation. The message output
can have breaking changes.

This change moves everything to the newer library. It also uses a
wrapper error to enable a clean Helm only interface for the
public Go API validation functions. This would enable the replacement
of the Schema validation library, if needed, without breaking the
Go API contract.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-04-14 19:32:01 -04:00
Benoit Tigeot eb65ce280b could apply De Morgan's law
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-14 11:11:37 +02:00