Commit graph

2756 commits

Author SHA1 Message Date
Scott Rigby
28770bfc1d
Merge pull request #12588 from rynowak/rynowak/override-authorizer
Make the authorizer and registry authorizer configurable
2024-11-21 23:40:32 -05:00
Ryan Nowak
1ab264cb7d
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-21 12:43:31 -05:00
George Jenkins
c724175b03
Merge pull request #13343 from niladrih/more-metadata
Add annotations and dependencies to get metadata output
2024-11-19 15:22:55 -08:00
Scott Rigby
bca7d31c9b
Merge pull request #12769 from banjoh/em/password-to-oci-registries
fix(helm): pass down username/password CLI parameters to OCI registry clients
2024-11-19 16:29:11 -05: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
Robert Sirchia
21568dee29
Merge pull request #13425 from MathieuCesbron/main
Fix typo "re-use" to "reuse"
2024-11-14 17:20:25 -07:00
Matt Farina
2aba8a1fcd
Merge pull request #13424 from wangjingcun/main
fix: fix label name
2024-11-07 11:36:06 -05:00
mathieu cesbron
fc17fc75e2 Fix typo "re-use" to "reuse"
Signed-off-by: mathieu cesbron <mathieu.rudy.cesbron@gmail.com>
2024-11-07 18:40:13 +07: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
George Jenkins
f5fcae8356 verbs
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2024-10-05 11:08:00 -07:00
George Jenkins
02ef83fe28 fix: Use chart archive modifed time for OCI push
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
2024-10-05 10:43:51 -07:00
Matt Farina
145d12f82f
Merge pull request #13177 from bb-Ricardo/main
Improves handling of Helm index with broken helm chart versions #13176
2024-10-04 22:16:42 +02:00
ricardo.bartels@telekom.de
cdbef2b7d1
Revering change unrelated to issue #13176
Signed-off-by: ricardo.bartels@telekom.de <ricardo.bartels@telekom.de>
2024-10-04 16:01:18 -04:00
Matt Farina
2da76a06e7
Merge pull request #13345 from AdamKorcz/fuzzzzz2
add chart fuzz tests
2024-10-04 21:47:32 +02:00
Matt Farina
7ad309791c
Merge pull request #13344 from AdamKorcz/fuzzzz1
add strvals fuzzer from cncf-fuzzing
2024-10-04 21:47:22 +02:00
Niladri Halder
d351b091ca
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-10-04 11:22:35 +05:30
Matt Farina
eecb848dcb
Merge pull request #13301 from NathanBaulch/typos
Fix typos
2024-09-30 14:55:21 +02:00
Matt Farina
d45439f2e9
Merge pull request #11923 from Bhargav-InfraCloud/helm-create-deprication-tests
test(create): Add test to check deprecated `apiVersion`s in resource templates created by `helm create`
2024-09-27 21:37:28 +02:00
Adam Korczynski
b203cc17c8 add strvals fuzzer from cncf-fuzzing
Signed-off-by: Adam Korczynski <adam@adalogics.com>
2024-09-20 10:40:13 +01:00
Adam Korczynski
e432f39ea7 add chart fuzz tests
Signed-off-by: Adam Korczynski <adam@adalogics.com>
2024-09-20 10:31:48 +01:00
Nathan Baulch
ef85fa7f2d
Grammar fixes
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-14 10:30:31 +10:00
Nathan Baulch
ff9dd262e3
Fix typos
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-14 10:29:56 +10:00
Matt Farina
b7c29d776f
Merge pull request #13329 from chenrui333/fix-test-chart
fix: fix testchart lint errors
2024-09-13 15:38:03 -04:00
Rui Chen
ddead08eb8
fix: fix testchart lint errors
Signed-off-by: Rui Chen <rui@chenrui.dev>
2024-09-12 15:40:43 -04:00
Fred Heinecke
30ce031d77 Merge branch 'main' into feat/add-toyamlpretty-1 2024-09-12 13:00:22 -05:00
Joe Julian
ff4877e696
Merge pull request #13224 from sttts/sttts-fix-apiext-registration
kube/client: add to global client-go scheme in init func
2024-09-12 09:14:38 -07:00