Commit graph

2853 commits

Author SHA1 Message Date
Ben Foster
578564ee26
fix null merge
(cherry-picked from commit c1175a4106)

Signed-off-by: Ben Foster <bpfoster@gmail.com>
(cherry picked from commit f0b699eabb)
2026-01-14 18:50:26 -05:00
Benoit Tigeot
6801f4d6b3 jsonschema: warn and ignore unresolved URN $ref to match v3.18.4
- v3.18.5 switched jsonschema and began resolving external $ref
  at compile-time, exposing missing urn handling
  (“no URLLoader registered for urn:…”).
- Add urn scheme loader and pluggable URNResolver. If unresolved, log
  a warning and return a permissive true schema (back-compat).
- Avoid having a duplicated warn logs when we Load the schema twice.

Note: external URNs need AddResource/Resolver (the CLI uses --map for
this).

Close: #31170

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
(cherry picked from commit 3f0da15437)
2025-11-10 20:52:54 -05:00
Benoit Tigeot
2f619be224 Avoid "panic: interface conversion: interface {} is nil"
Closes: #31202

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
(cherry picked from commit 2fe49f99ce)
2025-11-10 20:52:15 -05:00
Luna Stadler
8112d47cbb Fix helm pull untar dir check with repo urls
The existing check worked for `helm pull downloaded-repo/chart-name`,
but often does not work when using `--repo-url`, depending on the urls
used by the charts.

Signed-off-by: Luna Stadler <luc@spreadshirt.net>
(cherry picked from commit 1031b67fff)
2025-11-10 10:00:56 -05:00
Reinhard Nägele
a8337106b4 Add timeout flag to repo add and update flags
Backport of #30900 to v3.
(cherry picked from commit d448cf1943)

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
(cherry picked from commit 79a9cc5653)
2025-11-10 09:59:02 -05:00
Scott Rigby
3d8990f083
bump version to v3.19.0
Signed-off-by: Scott Rigby <scott@r6by.com>
2025-09-04 23:51:49 -04:00
Evans Mungai
9a54bf1df6
fix: use username and password if provided
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
2025-09-04 18:13:06 +01:00
Isaiah Lewis
b278020311
fix(helm-lint): fmt
Signed-off-by: Isaiah Lewis <isaiah@roof12.com>
(cherry picked from commit 62e0c78ef8)
2025-08-19 15:50:31 -04:00
Isaiah Lewis
d33ac5e44b
fix(helm-lint): Add TLSClientConfig
Signed-off-by: Isaiah Lewis <isaiah@roof12.com>
(cherry picked from commit fb12b44493)
2025-08-19 15:50:12 -04:00
Isaiah Lewis
854370978e
fix(helm-lint): Add HTTP/HTTPS URL support for json schema references
Signed-off-by: Isaiah Lewis <isaiah@roof12.com>
(cherry picked from commit fa73b6743b)
2025-08-19 15:49:34 -04:00
Matt Farina
093c885548
Merge pull request #31087 from TerryHowe/backport-fix-httpgetter
Backport of fix httpgetter
2025-08-19 11:49:20 -04:00
Robert Sirchia
46806c8217
Merge branch 'dev-v3' into advisory-fix-1a
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2025-08-13 15:17:53 -04:00
Robert Sirchia
7977a48fb4
Merge commit from fork
fix for dev-v3
2025-08-13 15:10:00 -04:00
Matt Farina
f13afaacd6
fix Chart.yaml handling
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-07-31 09:25:12 -04:00
Matt Farina
039b0b18d3
Handle messy index files
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 69efc0d4fb)
2025-07-31 09:21:47 -04:00
Robert Sirchia
6d9509aadc
json schema fix
Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
2025-07-25 10:03:46 -04:00
Borys Hulii
807225ed62
fix: k8s version parsing to match original
Signed-off-by: Borys Hulii <borys.hulii@bitvavo.com>
2025-07-25 15:25:20 +02:00
Terry Howe
5e8ff72b71
Do not explicitly set SNI in HTTPGetter
Co-authored-by: Wahab Ali <wahabalimk@gmail.com>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-07-24 09:07:24 -06:00
Matt Farina
227c9cb6b6
Disabling linter due to unknown issue
Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-07-08 15:53:01 -04:00
Matt Farina
4389fa639a
Updating link handling
Signed-off-by: Matt Farina <matt.farina@suse.com>
(cherry picked from commit 76fdba4c8c)
2025-07-07 10:27:57 -04:00
Terry Howe
2c55a4e8ce
fix: user username password for login
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-06-11 18:27:09 -06:00
Terry Howe
a16e986d4e
Update pkg/registry/transport.go
Co-authored-by: Scott Rigby <scott@r6by.com>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-06-06 12:15:44 -06:00
Terry Howe
cea26d8bca
Update pkg/registry/transport.go
Co-authored-by: Scott Rigby <scott@r6by.com>
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-06-06 12:11:14 -06:00
Terry Howe
b52bb41484
fix: add debug logging to oci transport
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
Co-authored-by: Billy Zha <jinzha1@microsoft.com>
2025-06-06 12:11:14 -06:00
Terry Howe
733f94c86a fix: legacy docker support broken for login
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-05-30 15:43:44 -04:00
Robert Sirchia
9d56978f65
Merge pull request #30938 from TerryHowe/backport-fix-plugin-install-no-internet
fix: backport plugin installer test with no Internet
2025-05-30 14:59:36 -04:00
Terry Howe
fc36041702 fix: plugin installer test with no Internet
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
2025-05-30 06:56:02 -04:00
Scott Rigby
62759a819e
Merge pull request #30916 from jessesimpson36/v3-remove-registry-login-url-with-tests
test: add functional tests for "Fix 3.18.0 regression: registry login with scheme"
2025-05-29 11:29:56 -04:00
Matt Farina
cfe8cef46f
Handle an empty registry config file.
In the move to oras v2, an existing but empty registry config file
became an uncaught error. A missing file caused no error. This
change catches the error and works around it so that Helm can
continue to be fault tolerant to this issue.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-05-29 08:16:51 -04:00
Benoit Tigeot
c33215d765 Prevent fetching newReference again as we have in calling method
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-05-23 14:25:56 -06:00
Benoit Tigeot
f552b67230 Prevent failure when resolving version tags in oras memory store
- The newReference() function transforms version tags by replacing + with _ for OCI compatibility
- But the code was using the original ref (with +) for TagBytes()
- Then it tries to find the tagged reference using parsedRef.String() (with _)
- This mismatch causes the Resolve method to fail with "not found"
- By using parsedRef.String() consistently in both places, the references will match and the lookup will succeed.

I extracted the TagBytes function to improve testability.
Push() includes several external calls that are hard to mock,
so isolating this logic makes testing more manageable.

Close: #30881
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-05-23 14:18:02 -06:00
Matt Farina
806d59750a
Merge pull request #30902 from brandtkeller/30890_prov_mediatype_allow
fix(client): allow layer selection permissive
2025-05-23 16:12:03 -04:00
Scott Rigby
e37962522c
Merge pull request #30887 from scottrigby/v3-remove-registry-login-url
Fix 3.18.0 regression: registry login with scheme
2025-05-23 00:13:29 -04:00
Brandt Keller
a18a52e898
fix(client): skipnode utilization for PreCopy
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Brandt Keller <43887158+brandtkeller@users.noreply.github.com>
2025-05-22 20:06:11 -07:00
Jesse Simpson
fedf5024d6
test: Skip instead of returning early. looks more intentional
Signed-off-by: Jesse Simpson <jesse.simpson36@gmail.com>
2025-05-22 18:49:33 -04:00
Jesse Simpson
fe512bae43
test: tests repo stripping functionality
Signed-off-by: Jesse Simpson <jesse.simpson36@gmail.com>
2025-05-22 16:49:10 -04:00
Jesse Simpson
099a9e18f3
test: include tests for Login based on different protocol prefixes
Signed-off-by: Jesse Simpson <jesse.simpson36@gmail.com>
2025-05-22 16:35:35 -04:00
Brandt Keller
b07ab77da3
fix(client): layers now returns manifest - remove duplicate from descriptors
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
2025-05-22 20:27:46 +00:00
Brandt Keller
c225c124ac
fix(client): return nil on non-allowed media types
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
2025-05-22 20:11:40 +00:00
Scott Rigby
c0f3ace52d
Fix 3.18.0 regression: registry login with scheme
Helm 3.18.0 released an upgrade of ORAS from v1 to v2.

ORAS v2 correctly does not accept http/https scheme for registry login, while
ORAS v1 previously did. Even if v1 should not have, we want to preserve
backwards compatibility for Helm 3 users who pass the scheme.

This will be removed in Helm 4, where registry login will not accept http/https
scheme.

Co-authored-by: Andrew Block <andy.block@gmail.com>
Co-authored-by: Terry Howe <terrylhowe@gmail.com>

Signed-off-by: Scott Rigby <scott@r6by.com>
2025-05-22 15:07:47 -04:00
Robert Sirchia
f147277a59
Merge pull request #30885 from helm/revert-13534-dev-v3-12987
Revert "fix (helm) : toToml` renders int as float [ backport to v3 ]"
2025-05-21 15:19:08 -04:00
Benoit Tigeot
dce60adb51
Update pkg/plugin/plugin.go
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Benoit Tigeot <benoittgt@users.noreply.github.com>
2025-05-21 09:45:45 +02:00
Benoit Tigeot
cda0865d64
Update pkg/plugin/plugin.go
Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Benoit Tigeot <benoittgt@users.noreply.github.com>
2025-05-21 09:45:40 +02:00
Benoit Tigeot
5d9d9a0fb8
Wait for Helm v4 before raising when platformCommand and Command are set
same for `PlatformHooks` and `hooks`.

When backporting a feature for Helm v3 we forgot to mark as deprecation
validations that will enforced in v4.

See (search for "Remove in Helm 4."):
- https://github.com/helm/helm/pull/13592/files#diff-fc137d62147eb6a9c89c0566479ff219320ca691f2505631ebacbe513bcc8108R268-R270

Fix:
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-05-20 23:11:47 +02:00
Matt Farina
c5249c1f8d
Revert "fix (helm) : toToml` renders int as float [ backport to v3 ]"
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.

Closes #30880

Signed-off-by: Matt Farina <matt@mattfarina.com>
2025-05-20 16:17:23 -04:00
Feng Cao
afefca8b2d chore: update generalization warning message
Signed-off-by: Feng Cao <24779889+shfc@users.noreply.github.com>
2025-05-16 15:50:18 +09:30
Feng Cao
eb5b6d5047 fix: move warning to top of block
Emit the warning first to ensure it's always logged. This clarifies that any following errors are due to using a local chart instead of a remote repository.

Signed-off-by: Feng Cao <24779889+shfc@users.noreply.github.com>
2025-05-13 17:51:49 +09:30
Feng Cao
6b5c94475d fix: replace fmt warning with slog
Signed-off-by: Feng Cao <24779889+shfc@users.noreply.github.com>
2025-05-11 02:46:50 +09:30
Feng Cao
247bf7c2e0 fix: add warning when ignore repo flag
Signed-off-by: Feng Cao <24779889+shfc@users.noreply.github.com>
2025-05-11 01:48:39 +09:30
George Jenkins
b4e06a11d2
Merge pull request #30658 from helm/gjenkins/backport_12912
[v3 backport] feat: add httproute from gateway-api to create chart template
2025-05-06 20:51:07 -07:00