Skip to content

Commit

Permalink
Add option to define (and customize) console catalog categories
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-jerolimov committed Oct 20, 2020
1 parent 8356aa4 commit 34c88e2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions operator/v1/0000_70_console-operator.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ spec:
prevent a console rollout.
type: string
pattern: ^$|^(ocp|origin|okd|dedicated|online|azure)$
catalog:
description: console allow the cluster admin to configure the
shown categories.
type: string
customLogoFile:
description: 'customLogoFile replaces the default OpenShift logo
in the masthead and about dialog. It is a reference to a ConfigMap
Expand Down
26 changes: 26 additions & 0 deletions operator/v1/types_console.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,32 @@ type ConsoleCustomization struct {
// SVG format preferred
// +optional
CustomLogoFile configv1.ConfigMapFileReference `json:"customLogoFile,omitempty"`
// console allow the cluster admin to configure the shown categories.
// +optional
ConsoleCatalogCustomization string `json:"catalog"`
}

// ConsoleCatalog allow the cluster admin to configure catalog UI parts.
type ConsoleCatalogCustomization struct {
// categories which are shown the in the console.
// +optional
Categories ConsoleCatalogCategories `json:"categories"`
}

type ConsoleCatalogCategories struct {
// id
ID string `json:"id"`
// label which was shown in the console
Label string `json:"label"`
// field
// +optional
Field string `json:"field,omitempty"`
// values
// +optional
Values []string `json:"values,omitempty"`
// subcategories
// +optional
Subcategories string `json:"subcategories,omitempty"`
}

// Brand is a specific supported brand within the console.
Expand Down

0 comments on commit 34c88e2

Please sign in to comment.