10BC0 Regression: Helm 3.18.5 rejects JSON Schema $ref URLs that worked in 3.17.x · Issue #31136 · helm/helm · GitHub
[go: up one dir, main page]

Skip to content

Regression: Helm 3.18.5 rejects JSON Schema $ref URLs that worked in 3.17.x #31136

@xmiao2

Description

@xmiao2

What happened?

After upgrading runners to Helm 3.18.5, helm upgrade began failing schema validation for charts that reference remote JSON Schemas over HTTPS in values.schema.json

Example error:

Error: UPGRADE FAILED: values don't meet the specifications of the schema(s) in the following chart(s):
my-app:
failing loading "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.24.0-standalone-strict/podsecuritycontext.json": invalid file url: https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.24.0-standalone-strict/podsecuritycontext.json

The same charts and values validate and upgrade successfully with Helm 3.17.4.

What did you expect to happen?

helm upgrade should continue to accept the same values.schema.json patterns that worked in 3.17.x

How can we reproduce it (as minimally and precisely as possible)?

Chart layout (minimal):

mychart/
  Chart.yaml
  values.yaml
  values.schema.json

values.schema.json

{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "type": "object",
  "properties": {
    "podSecurityContext": {
      "$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.24.0-standalone-strict/podsecuritycontext.json"
    }
  }
}

Run

helm upgrade test ./mychart --install

Helm version

This was observed on Github Actions:
Installing v3.18.5
  Downloading 'v3.18.5' from 'https://get.helm.sh/'

Kubernetes version

Not relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0