janus-idp / helm-backstage

Helm Chart for Deploying Backstage. This repo is deprecated. Please move to https://github.com/redhat-developer/rhdh-chart

Home Page:https://redhat-developer.github.io/rhdh-chart/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Openshift Helm catalog is unable to pull remote JSON schemas on OpenShift Local

tumido opened this issue · comments

Clicking the Install Helm chart button results in different outcomes depending on the cluster location:
image

OpenShift Local

image

Developer Sandbox

image

OpenShift (aka remote cluster, non-restricted)

image

I think we need to inline the remote JSON schema references... Unfortunately. This will expose us to copy-paste errors. It's not a great solution.

I'll try to provide a postprocessing step for values.schema.json via https://github.com/APIDevTools/json-schema-ref-parser or similar tool.

Launching a 4.9 cluster via cluster-bot is also issue, although it produces different results than a 4.13 cluster

BackstageHelmChart-4 9-ClusterBot

@serenamarie125 wow, that is an especially weird one. 😂

I've created sample helm repo from the PR #66 to see if it works. Can you please try creating new Helm repository in the catalog and installing backstage from it? It works for me now in DevSandbox

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

I've also noticed a weird issue with the Helm Catalog:

Kapture 2023-06-05 at 16 40 39

It takes me to /k8s/ns/<namespace>/helmchartrepositories/test-repo/edit endpoint. When opening the resource by clicking on the name I can edit via YAML tab (/k8s/ns/<namespace>/helm.openshift.io~v1beta1~ProjectHelmChartRepository/test-repo/yaml endpoint) just fine. 😄

Filed as https://issues.redhat.com/browse/ODC-7323

One more interesting finding to the original issue - if you try installing any other chart and select "YAML view" tap in the installation step, this layout selection is remembered so you can back out and retry the Backstage chart without issues. Only the form layout is broken.

Anyway, filed as https://issues.redhat.com/browse/ODC-7324

Reopening, discovered one new issue with this...

Form view is stuck in endless loading if we reference particular schema version.. I need to investigate further and will follow up with yet another bug report....

image

Traced back to: rjsf-team/react-jsonschema-form#2241 - the library used to validate the chart's schema (totally unnecessary to do on the frontend IMO), doesn't support JSON Schema standard 2019-09 and the current revision 2020-20.

Tracking as: https://issues.redhat.com/browse/OCPBUGS-14874

And another... This is partially due to invalid schema upstream, but OCP should not hang on "In progress" indefinitely.
2023-06-12_21-06

This is related to json-schema-org/json-schema-spec#574

Surprisingly helm CLI schema validation handles this just fine.

Tracking as: https://issues.redhat.com/browse/OCPBUGS-14875

Update: As per JSON Schema standard the "format" keyword should only take an advisory role (like an annotation) and should not affect validation. In OCP helm form view it is somehow used during validation.

Last two comments moved into separate issues. Closing this one.