Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-5020

Extend console config CRD and export actual catalog categories

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • UI
    • None
    • ODC Sprint 192, ODC Sprint 193

      Description

      As a admin, I want to add, update or remove some of the catalog categories. For this we will move the static categories into a custom resource.

      We want to use the "customization" spec in the CRD "Console/operator.openshift.io/v1" with the name "cluster" in the namespace "openshift-console". We need to extend this CRD and move the actual definitions into a yaml resource.

      Acceptance Criteria

      1. Extend the "customization" spec type definition for the CRD in the openshift/api project

      Additional Details:

      • The console config was saved as "console-public" in the namespace "openshift-config-managed" within the customization spec.
      • The old type definition for a catalog category is:
        export type Categories = Record<string, Catalog>;
        
        export interface Catalog {
          id: string;
          label: string;
          field?: string;
          values?: string[];
          subcategories?: Categories;
        }
        
        export const catalogCategories: Categories = ...
        

            cjerolim Christoph Jerolimov
            cjerolim Christoph Jerolimov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: