Customizing OpenShift Container Platform Eclipse Che branding images
Customize the branding images for the Eclipse Che dashboard by overriding the default images in the assets/branding directory. The following images can be customized:
-
che-logo.svg— the logo displayed in the dashboard header. -
loader.svg— the loader icon displayed during dashboard loading. The loader image supports the following formats, in priority order:jpg,jpeg,png,gif,webp,svg. Thesvgformat is used as the default fallback. -
favicon.ico— the browser tab icon.
-
An active
kubectlsession with administrative permissions to the Kubernetes cluster. See Overview of kubectl.
-
Create a Secret that mounts custom branding images into the dashboard:
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: che-logo.svg: <Base64_encoded_content_of_the_image> (1) loader.svg: <Base64_encoded_content_of_the_image> (2) favicon.ico: <Base64_encoded_content_of_the_image> (3) type: Opaque EOF1 The dashboard logo. Replace che-logo.svgwith the Base64-encoded content of your custom logo with disabled line wrapping.2 The loader icon. Replace loader.svgwith the filename matching your image format (for example,loader.png,loader.webp). The value is the Base64-encoded content of the image with disabled line wrapping.3 The favicon. The value is the Base64-encoded content of the .icofile 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. -
Verify that the rollout completes:
kubectl rollout status deployment/che-dashboard -n eclipse-che
-
Open the Eclipse Che dashboard in a browser and confirm that the custom branding images are displayed.