helm/pkg
Benoit Tigeot bdcf920183
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).
- Apply to pkg/chart/v2 and internal/chart/v3 validators. Not sure about
  that

Note: external URNs need AddResource/Resolver (the CLI uses --map for
this). Warning may appear twice since both validators run.

Another strategy could be to add the option to import more "external
schema" explicitly but it is another PR. Something similar to `--map`
from jsonschema package
(santhosh-tekuri/jsonschema@ed65924).

Close: #31170

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
(cherry picked from commit 03bb62f63d)
2025-12-10 15:22:36 -05:00
..
action Copy adopted resource info 2025-11-24 08:57:30 -05:00
chart jsonschema: warn and ignore unresolved URN $ref to match v3.18.4 2025-12-10 15:22:36 -05:00
cli Move lint pkg to be part of each chart version 2025-09-02 12:14:37 -04:00
cmd Fix kube client logging 2025-11-24 08:55:27 -05:00
downloader Move repo package to versioned directory 2025-09-02 10:19:48 -04:00
engine Reproducible chart archive builds 2025-10-29 11:49:22 -04:00
gates chore: enable usetesting linter 2025-05-30 08:12:11 +02:00
getter chore: fix some comment format 2025-10-15 11:19:41 +08:00
helmpath fix: lint test SetEnv errors 2025-06-15 08:50:39 -06:00
ignore refactor: replace HasPrefix+TrimPrefix with CutPrefix 2025-05-24 13:23:03 +08:00
kube fixup test 2025-11-24 08:56:51 -05:00
postrenderer Remove SetupPluginEnv 2025-09-01 10:49:01 -07:00
provenance chore: update sign tests to use testify 2025-09-24 19:32:52 -06:00
pusher chore: remove pkg/time which is no longer needed 2025-09-15 12:29:35 -06:00
registry chore: fix various warnings to reduce noise 2025-10-18 07:21:00 -06:00
release Reproducible chart archive builds 2025-10-29 11:49:22 -04:00
repo/v1 Warn when we fallback to a different version on helm pull 2025-09-05 19:27:44 +02:00
storage Refactor logging functionality to use slog.Handler 2025-10-22 15:26:48 +01:00
strvals chore: fix some comment format 2025-10-15 11:19:41 +08:00
uploader Merge branch 'main' into stdlib-errors-2 2025-04-21 12:13:10 -04:00