Commit graph

2791 commits

Author SHA1 Message Date
Terry Howe
1435ec7c77 Update pkg/registry/fallback.go
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-03-14 08:46:25 -06:00
Terry Howe
674e882c88 automatic fallback to http
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-03-14 08:46:25 -06:00
Terry Howe
c188441757 chore(oci): upgrade to ORAS v2
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-03-14 08:46:18 -06:00
Scott Rigby
bcb83e465f
Fix cherry-pick helm.sh/helm/v4 -> helm.sh/helm/v3
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-02-21 19:19:39 -05:00
Chris Berry
2aa90b8f26
Refactor based on review comment
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 19:00:41 -05:00
Chris Berry
5739197faa
Refactor based on review comment
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 19:00:41 -05:00
Chris Berry
b8e13878fc
Add HookOutputFunc and generic yaml unmarshaller
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 19:00:41 -05:00
Scott Rigby
97b0e11871
clarify fix error message
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-02-21 19:00:41 -05:00
Scott Rigby
2f79afb0a3
fix err check
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-02-21 19:00:40 -05:00
Scott Rigby
c77f4ec6c4
remove comments about previous functionality
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-02-21 19:00:40 -05:00
Scott Rigby
3cd6afe845
add short circuit return
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-02-21 19:00:40 -05:00
Chris Berry
5367001f4f
Update based on review comments
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 19:00:40 -05:00
Chris Berry
3c445158d8
Update based on review comments
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 19:00:39 -05:00
Chris Berry
4cb639ed4e
Fix lint
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 18:55:47 -05:00
Chris
20f859c9ff
Tidy up imports
Signed-off-by: Chris <bez625@gmail.com>
2025-02-21 18:55:33 -05:00
Chris Berry
ca90972b3d
Add hook annotations to output pod logs to client on success and fail
Signed-off-by: Chris Berry <bez625@gmail.com>
2025-02-21 18:54:56 -05:00
Matt Farina
e2c7986f30
Merge pull request #13534 from althmoha/dev-v3-12987
fix (helm) : toToml` renders int as float [ backport to v3 ]
2025-02-05 15:33:56 -05:00
George Jenkins
80f87ab636
Merge pull request #13654 from ryanhockstad/subchart-null
[backport] bugfix: Override subcharts with null values
2025-01-26 21:18:13 -08:00
Matt Farina
9aff8bdaa0
Merge pull request #13644 from mattfarina/backport-13583
fix: check group for resource info match (v3 backport)
2025-01-22 14:58:30 +01:00
George Jenkins
6ed9d2f2d5
Merge pull request #13592 from stevehipwell/add-plugin-platform-hooks-v3
feat: Add multi-platform plugin hook support [v3 backport]
2025-01-18 08:18:47 -08:00
Jiasheng Zhu
2ebce786ba
fix: check group for resource info match
Closes: #13582

Signed-off-by: Jiasheng Zhu <gnehsaijuhz@hotmail.com>
(cherry picked from commit f5d488122b)
2025-01-17 15:33:33 -05:00
Ryan Hockstad
326c1e3f67 add test for nullifying nested global value
Signed-off-by: Ryan Hockstad <ryanhockstad@gmail.com>
2025-01-17 07:29:48 -05:00
Matt Farina
fba9d08dce
Ensuring the file paths are clean prior to passing to securejoin
securejoin v0.4.0 made a possibly breaking change. Only clean paths
are safe to pass to SecureJoin or they could return an error or
have the wrong path. The details are in the release notes for v0.4.0.

This change ensures the paths are clean prior to passing to SecureJoin.

Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 35a9ead998)
2025-01-14 15:35:47 -05:00
Matt Farina
d6db69ed66
bump version to v3.17.0
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 301108edc7)
2025-01-06 14:20:59 -05:00
Ryan Hockstad
ef2eb55283 Add test case for removing an entire object
Signed-off-by: Ryan Hockstad <ryanhockstad@gmail.com>
2025-01-02 22:19:19 -05:00
Scott Rigby
60fcce18d1 Tests for bugfix: Override subcharts with null values #12879
- Add consistency for null test in given values, parent chart, subchart, and
  sub-sub-chart
- Remove bar null test to keep consistent with boat=null at top level

Signed-off-by: Scott Rigby <scott@r6by.com>
2025-01-02 21:17:30 -05:00
Andrew Block
83dddb1839
feat: Added multi-platform plugin hook support to v3
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
2025-01-02 12:45:36 +00:00
Terry Howe
949b2e6040 fix: make ORAS reference private
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
(cherry picked from commit d2b94f6200)
2025-01-01 11:50:58 -05:00
Terry Howe
aba95b9cb4 fix: issue with helm template and oci chart
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
(cherry picked from commit aca7e8d775)
2025-01-01 11:50:43 -05:00
Terry Howe
c3e5217d85 feat: allow installation by OCI digest
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
(cherry picked from commit ad9fb68fa3)
2025-01-01 11:50:26 -05:00
Matt Farina
9ade3b502a
Merge pull request #13574 from gjenkins8/v3_13343
Add annotations and dependencies to get metadata output [v3 backport]
2024-12-30 15:06:08 +01:00
Matt Farina
4f0b63483e
Merge pull request #13575 from gjenkins8/v3_13232
ref(create): don't render empty resource fields [v3 backport]
2024-12-30 14:31:02 +01:00
Matt Farina
391a90752d
Merge pull request #13512 from gjenkins8/shadow_oras_remoteclient_type
fix: Shadow ORAS remote.Client interface [v3 backport]
2024-12-30 14:19:38 +01:00
Matt Farina
9f620b857a Update to Go 1.23
Multiple changes were made to pass linting. Some Go built-in names
are being used for variables (e.g., min). This happens in the Go
source itself including the Go standard library and is not always
a bad practice.

To handle allowing some built-in names to be used the linter config
is updated to allow (via opt-in) some names to pass. This allows us
to still check for re-use of Go built-in names and opt-in to any
new uses.

There were also several cases where a value was checked for nil
before checking its length when this is already handled by len()
or the types default value. These were cleaned up.

The license validation was updated because it was checking everything
in the .git directory including all remote content that was local.
The previous vendor directory was from a time prior to Go modules
when Helm handled dependencies differently. It was no longer needed.

Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 5727f56a96)
2024-12-28 12:06:27 -05:00
dnskr
ba180a3b6a ref(create): don't render empty resource fields
Signed-off-by: Denis Krivenko <dnskrv88@gmail.com>
Signed-off-by: dnskr <dnskrv88@gmail.com>
2024-12-27 08:17:27 -08:00
Niladri Halder
7321579092 Add annotations and dependencies to get metadata output
The output of helm get metadata includes a subset of the fields contained in
the chart.Metadata struct. This change adds the values of the annotations field
and the dependencies field to the output.

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
2024-12-27 08:11:15 -08:00
Althaf M
0a6834fdf0 This commit fixes the issue where the yaml.Unmarshaller converts all int values into float64, this passes in option to decoder,
which enables conversion of int into .

Signed-off-by: Althaf M <althafm@outlook.com>
2024-12-14 23:19:01 +00:00
George Jenkins
c40cf00a06 Shadow ORAS remote.Client interface
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2024-12-06 18:37:56 -05:00
Matt Farina
3fe0bbdd44
Merge pull request #13480 from rynowak/rynowak/override-authorizer
Make the authorizer and registry authorizer configurable
2024-12-02 20:54:13 +01:00
Matt Farina
41b6273682
Merge pull request #13483 from banjoh/em/password-to-oci-registries-v3
fix(helm): pass down username/password CLI parameters to OCI registry clients (v3 backport)
2024-11-27 16:06:27 +01:00
Ryan Nowak
3c2ab91263 Make the authorizer and registry authorizer configurable
Fixes: #12584

This change makes the authorizer and registryAuthorizer of the registry client configurable via options. This allows Go SDK users to override the authentication behavior of the client.

This PR makes both the authorizer and registryAuthorizer configurable because depending on the exact scenario that may be needed. The default registryAuthorizer only supports a specific implementation of the authorizer.

Signed-off-by: Ryan Nowak <nowakra@gmail.com>
2024-11-22 14:17:00 -08:00
Evans Mungai
7a22dd28d1
Rename CAFile to CaFile for consistency
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2024-11-19 21:18:27 +00:00
Matt Farina
2aba8a1fcd
Merge pull request #13424 from wangjingcun/main
fix: fix label name
2024-11-07 11:36:06 -05:00
wangjingcun
e4062e7e00 fix: fix label name
Signed-off-by: wangjingcun <wangjingcun@aliyun.com>
2024-11-07 17:10:31 +08:00
Taylor Jasko
6f2f7d4781 Updating subchart load error to be more descriptive
In the event some malformed folders/files make its way into the
`charts/` directory meant for subcharts, it is possible one may see an
error message like the below:
```
Error: error unpacking foo in app: Chart.yaml file is missing
```

This error is not very descriptive, as it doesn't reference where on
disk `Chart.yaml` is missing. In the event this happens, this error is
being updated to include that `Chart.yaml` is missing for the `foo`
subchart.

Without this updated error messaging, one would need to look into Helm's
codebase to troubleshoot what exactly is wrong.

Signed-off-by: Taylor Jasko <taylor@taylorjasko.com>
2024-11-06 17:40:18 -06:00
Robert Sirchia
106e2f98e3
Merge pull request #13418 from alex-kattathra-johnson/issue-13417
Add tests to `helm/pkg/kube/client_test.go` to cover `wait.go`
2024-11-06 09:20:12 -05:00
Alex Johnson
9fd943b481 Add tests to helm/pkg/kube/client_test.go to cover wait.go
Signed-off-by: Alex Johnson <alex.kattathra.johnson@gmail.com>
2024-11-05 09:51:54 -06:00
Zach Burgess
0cc78c6ac3 Fix typo in pkg/lint/rules/chartfile_test.go
Signed-off-by: Zach Burgess <zachburg@google.com>
2024-11-04 17:41:39 -08:00
Suleiman Dibirov
f4f4a6b81f fix(hooks): correct hooks delete order
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
2024-10-30 18:49:01 +02:00
Tianle Xu
a51ea6ec73
Allow tests to run on loong64
Signed-off-by: Tianle Xu <xtl@xtlsoft.top>
2024-10-28 21:54:10 +08:00