From 2c9945225f9a701002d1b3eba30d3d9404c12adb Mon Sep 17 00:00:00 2001 From: Mike Turley Date: Mon, 13 Apr 2026 13:25:55 -0400 Subject: [PATCH] fix(catalog): rename default-sources ConfigMap to match operator The operator renamed the ConfigMap from model-catalog-default-sources to default-catalog-sources in model-registry-operator#489, but the BFF and kustomize manifests were not updated, causing a 500 error on the Model Catalog Settings page. Ref: RHOAIENG-57824 Co-Authored-By: Claude Opus 4.6 Signed-off-by: Mike Turley --- clients/ui/bff/internal/integrations/kubernetes/client.go | 2 +- .../internal/integrations/kubernetes/k8mocks/base_testenv.go | 2 +- .../kustomize/options/catalog/overlays/odh/kustomization.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/ui/bff/internal/integrations/kubernetes/client.go b/clients/ui/bff/internal/integrations/kubernetes/client.go index dffdc734e3..e6b777e1b2 100644 --- a/clients/ui/bff/internal/integrations/kubernetes/client.go +++ b/clients/ui/bff/internal/integrations/kubernetes/client.go @@ -12,7 +12,7 @@ const ComponentLabelValue = "model-registry" const ComponentLabelValueCatalog = "model-catalog" const CatalogSourceKey = "sources.yaml" -const CatalogSourceDefaultConfigMapName = "model-catalog-default-sources" +const CatalogSourceDefaultConfigMapName = "default-catalog-sources" const CatalogSourceUserConfigMapName = "model-catalog-sources" type KubernetesClientInterface interface { diff --git a/clients/ui/bff/internal/integrations/kubernetes/k8mocks/base_testenv.go b/clients/ui/bff/internal/integrations/kubernetes/k8mocks/base_testenv.go index 4b6d817d73..8acf16ae44 100644 --- a/clients/ui/bff/internal/integrations/kubernetes/k8mocks/base_testenv.go +++ b/clients/ui/bff/internal/integrations/kubernetes/k8mocks/base_testenv.go @@ -347,7 +347,7 @@ catalogs: } if _, err := k8sClient.CoreV1().ConfigMaps(namespace).Create(ctx, cm, metav1.CreateOptions{}); err != nil { - return fmt.Errorf("failed to create model-catalog-default-sources configmap: %w", err) + return fmt.Errorf("failed to create default-catalog-sources configmap: %w", err) } return nil diff --git a/manifests/kustomize/options/catalog/overlays/odh/kustomization.yaml b/manifests/kustomize/options/catalog/overlays/odh/kustomization.yaml index 6e721b922f..bada2bcab8 100644 --- a/manifests/kustomize/options/catalog/overlays/odh/kustomization.yaml +++ b/manifests/kustomize/options/catalog/overlays/odh/kustomization.yaml @@ -8,7 +8,7 @@ configMapGenerator: - behavior: create files: - sources.yaml=default-sources.yaml - name: model-catalog-default-sources + name: default-catalog-sources options: disableNameSuffixHash: true @@ -34,7 +34,7 @@ patches: value: name: default-sources configMap: - name: model-catalog-default-sources + name: default-catalog-sources - op: add path: /spec/template/spec/containers/0/volumeMounts/1 value: