Skip to content

Commit

Permalink
feat: Customize dashboard logo (#1722)
Browse files Browse the repository at this point in the history
* feat: Customize dashboard logo

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update dev resources

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

---------

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha authored Jul 13, 2023
1 parent 25facd9 commit 0128427
Show file tree
Hide file tree
Showing 10 changed files with 161 additions and 2 deletions.
14 changes: 14 additions & 0 deletions api/v2/checluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,20 @@ type Dashboard struct {
// Dashboard header message.
// +optional
HeaderMessage *DashboardHeaderMessage `json:"headerMessage,omitempty"`
// Dashboard branding resources.
// +optional
Branding *Branding `json:"branding,omitempty"`
}

type Branding struct {
// Dashboard logo.
// +optional
Logo *Icon `json:"logo,omitempty"`
}

type Icon struct {
Data string `json:"base64data"`
MediaType string `json:"mediatype"`
}

// Configuration settings related to the plug-in registry used by the Che installation.
Expand Down
40 changes: 40 additions & 0 deletions api/v2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ metadata:
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/eclipse-che/che-operator
support: Eclipse Foundation
name: eclipse-che.v7.71.0-803.next
name: eclipse-che.v7.71.0-804.next
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -1231,7 +1231,7 @@ spec:
minKubeVersion: 1.19.0
provider:
name: Eclipse Foundation
version: 7.71.0-803.next
version: 7.71.0-804.next
webhookdefinitions:
- admissionReviewVersions:
- v1
Expand Down
15 changes: 15 additions & 0 deletions bundle/next/eclipse-che/manifests/org.eclipse.che_checlusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4369,6 +4369,21 @@ spec:
description: Configuration settings related to the dashboard
used by the Che installation.
properties:
branding:
description: Dashboard branding resources.
properties:
logo:
description: Dashboard logo.
properties:
base64data:
type: string
mediatype:
type: string
required:
- base64data
- mediatype
type: object
type: object
deployment:
description: Deployment override options.
properties:
Expand Down
15 changes: 15 additions & 0 deletions config/crd/bases/org.eclipse.che_checlusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4237,6 +4237,21 @@ spec:
description: Configuration settings related to the dashboard used
by the Che installation.
properties:
branding:
description: Dashboard branding resources.
properties:
logo:
description: Dashboard logo.
properties:
base64data:
type: string
mediatype:
type: string
required:
- base64data
- mediatype
type: object
type: object
deployment:
description: Deployment override options.
properties:
Expand Down
15 changes: 15 additions & 0 deletions deploy/deployment/kubernetes/combined.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4256,6 +4256,21 @@ spec:
description: Configuration settings related to the dashboard used
by the Che installation.
properties:
branding:
description: Dashboard branding resources.
properties:
logo:
description: Dashboard logo.
properties:
base64data:
type: string
mediatype:
type: string
required:
- base64data
- mediatype
type: object
type: object
deployment:
description: Deployment override options.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4251,6 +4251,21 @@ spec:
description: Configuration settings related to the dashboard used
by the Che installation.
properties:
branding:
description: Dashboard branding resources.
properties:
logo:
description: Dashboard logo.
properties:
base64data:
type: string
mediatype:
type: string
required:
- base64data
- mediatype
type: object
type: object
deployment:
description: Deployment override options.
properties:
Expand Down
15 changes: 15 additions & 0 deletions deploy/deployment/openshift/combined.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4256,6 +4256,21 @@ spec:
description: Configuration settings related to the dashboard used
by the Che installation.
properties:
branding:
description: Dashboard branding resources.
properties:
logo:
description: Dashboard logo.
properties:
base64data:
type: string
mediatype:
type: string
required:
- base64data
- mediatype
type: object
type: object
deployment:
description: Deployment override options.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4251,6 +4251,21 @@ spec:
description: Configuration settings related to the dashboard used
by the Che installation.
properties:
branding:
description: Dashboard branding resources.
properties:
logo:
description: Dashboard logo.
properties:
base64data:
type: string
mediatype:
type: string
required:
- base64data
- mediatype
type: object
type: object
deployment:
description: Deployment override options.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4251,6 +4251,21 @@ spec:
description: Configuration settings related to the dashboard used
by the Che installation.
properties:
branding:
description: Dashboard branding resources.
properties:
logo:
description: Dashboard logo.
properties:
base64data:
type: string
mediatype:
type: string
required:
- base64data
- mediatype
type: object
type: object
deployment:
description: Deployment override options.
properties:
Expand Down

0 comments on commit 0128427

Please sign in to comment.