Developer Catalog error in the OpenShift console

Latest response

I've just finished setting up the OCP cluster and am trying to access it for the first time through the console.

I encountered an issue where the Developer Catalog in the OpenShift console is not functioning due to an "Error Loading Catalog items: Could not fetch all data. This data are missing: Devfiles."

Firstly, I checked the logs of the problematic console pod and confirmed that the below errors was occuring

"E0921 08:44:54.558127 1 proxy.go:92] Error retrieving index file for &{openshift-helm-charts https://charts.openshift.io false 0x29f4400}: Get "https://charts.openshift.io/index.yaml": x509: certificate is valid for *.apps.devops.hololy.local, not charts.openshift.io
E0921 08:44:54.560093 1 devfile-handler.go:31] Failed to read from registry https://registry.devfile.io: Get "https://registry.devfile.io/index/sample": x509: certificate is valid for *.apps.devops.hololy.local, not registry.devfile.io"

To resolve this, I attempted to download the problematic certificates and add them to the trusted-ca-bundle configmap, which is used when creating pods.

However, I encountered a another error, preventing the update of the configmap like this.

Warning: resource configmaps/trusted-ca-bundle is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by oc apply. oc apply should only be used on resources created declaratively by either oc create --save-config or oc apply. The missing annotation will be patched automatically.
The ConfigMap "trusted-ca-bundle" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

How can I resolve this error and successfully get Developer Catalog?<img

Responses