Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-15721

Helm Chart installation form hangs on create if JSON-schema contains unknown value format

XMLWordPrintable

    • No
    • ODC Sprint 241
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-14875. The following is the description of the original issue:

      Description of problem:

      If a JSON schema used in by a chart contains unknown value format (non-standard JSON Schema but valid in OpenAPI spec for example), Helm form view hangs on validation and stays in "submitting" state.

       

      As per JSON Schema standard the "format" keyword should only take an advisory role (like an annotation) and should not affect validation.

      https://json-schema.org/understanding-json-schema/reference/string.html#format 

      Version-Release number of selected component (if applicable):

      Verified against 4.13, but probably applies to others.

      How reproducible:

      100%

      Steps to Reproduce:

      1. Go to Helm tab.
      2. Click create in top right and select Repository
      3. Paste following into YAML view and click Create:

      apiVersion: helm.openshift.io/v1beta1
      kind: ProjectHelmChartRepository
      metadata:
        name: reproducer
      spec:
        connectionConfig:
          url: 'https://raw.githubusercontent.com/tumido/helm-backstage/repo-multi-schema2'
      

      4. Go to the Helm tab again (if redirected elsewhere)
      5. Click create in top right and select Helm Release
      6. In catalog filter select Chart repositories: Reproducer
      7. Click on the single tile available (Backstage) and click Create
      8. Switch to Form view
      9. Leave default values and click Create
      10. Stare at the always loading screen that never proceeds further.

      Actual results:

      And never finishes or displays any error in UI.

      Expected results:

      Unknown format should not result in rejected validation. JSON Schema standard says that formats should not be used for validation.

      Additional info:

      This is not a schema violation by itself since Helm itself is happy about it and doesn't complain. The same chart can be successfully deployed via the YAML view.

              rh-ee-lprabhu Lokananda Prabhu
              tcoufal@redhat.com Tom Coufal
              Sanket Pathak Sanket Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: