Customizing OpenShift Container Platform Eclipse Che branding images
This procedure describes how to customize Eclipse Che branding images, including the logo shown in the Eclipse Che dashboard, the loader icon and the ConsoleLink icon.
The branding images are located in the assets/branding directory. Supported image formats, in priority order: jpg, jpeg, png, gif, webp, svg. The svg format is used as the default fallback.
Prerequisites
-
An active
kubectlsession with administrative permissions to the Kubernetes cluster. See Overview of kubectl.
Procedure
-
Create a Secret to override branding images:
kubectl apply -f - <<EOF apiVersion: v1 kind: Secret metadata: name: che-dashboard-customization namespace: eclipse-che annotations: che.eclipse.org/mount-as: subpath che.eclipse.org/mount-path: /public/dashboard/assets/branding labels: app.kubernetes.io/component: che-dashboard-secret app.kubernetes.io/part-of: che.eclipse.org data: loader.svg: <Base64_encoded_content_of_the_image> (1) favicon.ico: <Base64_encoded_content_of_the_image> (2) type: Opaque EOF1 The loader image file name and Base64-encoded content with disabled line wrapping. You can use any supported format ( jpg,jpeg,png,gif,webp,svg). For example,loader.pngwith its Base64-encoded content.2 The favicon file name and Base64-encoded content with disabled line wrapping. You can override one or all images from the /public/dashboard/assets/brandingdirectory in the dashboard pod. Only the images specified in the Secretdatasection are overridden; unspecified images remain unchanged. -
Wait until the rollout of che-dashboard finishes.
Additional resources