Commit graph

2773 commits

Author SHA1 Message Date
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
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
Andrew Block
717529a7e5
Merge pull request #13376 from helm/fix_oci_push_timestamp
fix: Use chart archive modifed time for OCI push
2024-10-27 03:34:04 -05:00
Robert Sirchia
5ae91e11ae
Merge pull request #13034 from mattclegg/issue-9507
ISSUE-9507: ADD `application/gzip,application/octet-stream` accept header
2024-10-25 16:10:20 -04:00
George Jenkins
85499b2fdc
Merge pull request #13400 from wangjingcun/main
chore: fix some function names in comment
2024-10-24 21:34:19 -07:00
wangjingcun
de9e138ec1 chore: fix some function names in comment
Signed-off-by: wangjingcun <wangjingcun@aliyun.com>
2024-10-24 18:26:22 +08:00
Robert Sirchia
7e6b34d7dd
removing duplicate empty test
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-10-23 15:17:44 -04:00
Robert Sirchia
16a4e37f20
fixing unit test as per Matt
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-10-23 12:24:04 -04:00
Evans Mungai
bdaa93b969
Ensure test fails without causing panic
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2024-10-22 18:50:23 +01:00
Evans Mungai
3c4d0bb061
Fix failing tests
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2024-10-22 18:38:58 +01:00
Evans Mungai
323f88950a
Merge remote-tracking branch 'origin/main' into em/password-to-oci-registries 2024-10-22 17:54:10 +01:00
Robert Sirchia
a205af755e
adding more unit test
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-10-22 09:49:41 -04:00
Robert Sirchia
999b85145a
adding test coverage for ready.go
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2024-10-18 16:44:42 -04:00
Matt Farina
8f59c8e807
Merge pull request #9713 from andreaskaris/issue9710
fix(helm): Retry Conflict error for createResource, deleteResource
2024-10-17 17:36:00 +02:00
Andreas Karis
79a1f2c801
fix(helm): Retry Conflict error for createResource, deleteResource
kubernetes might at any time throw 409 Conflict Error codes. Clients
are supposed to retry when this happens. As an example, see
kubernetes/issues/67761 where such an issues might happen when the
cluster manipulates a projects's ResourceQuotas.

Catch such Conflict Errors on createResource and deleteResource and
retry before giving up. Due to the more complex logic and focus on
kubernetes/issues/67761, this patch purposefully omits possibly
needed changes to updateResource and instead defers them to another
patch if required in the future.

Closes issue #9710

Signed-off-by: Andreas Karis <ak.karis@gmail.com>
2024-10-17 10:36:43 -04:00
Jon Olsson
ca584648ee minor spelling fix
Signed-off-by: Jon Olsson <jon.olsson@sequitor.se>
2024-10-15 09:38:23 +02:00
Matt Farina
54be5511e6
Merge pull request #12788 from vtrenton/main
changed Itoa to Sprintf to allow int64 value preventing 2038 overflow
2024-10-09 21:50:58 +02:00
Luis Davim
ab3c589809 chore: Make retryingRoundTripper type public
Make retryingRoundTripper type public to allow being used in other
projects

fixes: #13052
Signed-off-by: Luis Davim <luis.davim@gmail.com>
2024-10-09 08:02:27 +01:00
Trent V.
f9183a522a
Merge branch 'helm:main' into main 2024-10-08 03:23:44 -05:00
Trent V
4ede1c9c37
Merge branch 'helm:main' into main 2024-10-07 14:07:26 -04:00