helm/pkg/chart
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
..
common jsonschema: warn and ignore unresolved URN $ref to match v3.18.4 2025-12-10 15:22:36 -05:00
loader Reproducible chart archive builds 2025-10-29 11:49:22 -04:00
v2 When time not available, using time.Now 2025-10-29 15:11:20 -04:00
common.go Update the action interfaces for chart apiversions 2025-09-17 15:19:02 -04:00
dependency.go Move action get metadata to chart interfaces 2025-10-10 11:49:08 -04:00
interfaces.go Move action get metadata to chart interfaces 2025-10-10 11:49:08 -04:00