diff --git a/cmd/bridge/main.go b/cmd/bridge/main.go index 8117ae3dad1..27b8269f4d4 100644 --- a/cmd/bridge/main.go +++ b/cmd/bridge/main.go @@ -110,7 +110,7 @@ func main() { fKubectlClientSecretFile := fs.String("kubectl-client-secret-file", "", "File containing the OAuth2 client_secret of kubectl.") fK8sPublicEndpoint := fs.String("k8s-public-endpoint", "", "Endpoint to use when rendering kubeconfigs for clients. Useful for when bridge uses an internal endpoint clients can't access for communicating with the API server.") - fBranding := fs.String("branding", "okd", "Console branding for the masthead logo and title. One of okd, openshift, ocp, online, dedicated, or azure. Defaults to okd.") + fBranding := fs.String("branding", "okd", "Console branding for the masthead logo and title. One of okd, openshift, ocp, online, dedicated, azure, or rosa. Defaults to okd.") fCustomProductName := fs.String("custom-product-name", "", "Custom product name for console branding.") fCustomLogoFile := fs.String("custom-logo-file", "", "Custom product image for console branding.") fStatuspageID := fs.String("statuspage-id", "", "Unique ID assigned by statuspage.io page that provides status info.") @@ -216,8 +216,9 @@ func main() { case "online": case "dedicated": case "azure": + case "rosa": default: - bridge.FlagFatalf("branding", "value must be one of okd, openshift, ocp, online, dedicated, or azure") + bridge.FlagFatalf("branding", "value must be one of okd, openshift, ocp, online, dedicated, azure, or rosa") } if *fCustomLogoFile != "" { diff --git a/frontend/public/components/masthead.jsx b/frontend/public/components/masthead.jsx index ac274ea1c77..08c4d2116cb 100644 --- a/frontend/public/components/masthead.jsx +++ b/frontend/public/components/masthead.jsx @@ -17,6 +17,7 @@ import okdLogoImg from '../imgs/okd-logo.svg'; import openshiftLogoImg from '../imgs/openshift-logo.svg'; import onlineLogoImg from '../imgs/openshift-online-logo.svg'; import dedicatedLogoImg from '../imgs/openshift-dedicated-logo.svg'; +import rosaLogoImg from '../imgs/openshift-service-on-aws-logo.svg'; export const getBrandingDetails = () => { let logoImg, productName; @@ -42,6 +43,10 @@ export const getBrandingDetails = () => { logoImg = openshiftLogoImg; productName = 'Azure Red Hat OpenShift'; break; + case 'rosa': + logoImg = rosaLogoImg; + productName = 'Red Hat OpenShift Service on AWS'; + break; default: logoImg = okdLogoImg; productName = 'OKD'; diff --git a/frontend/public/imgs/openshift-service-on-aws-logo.svg b/frontend/public/imgs/openshift-service-on-aws-logo.svg new file mode 100644 index 00000000000..1d9d19fd794 --- /dev/null +++ b/frontend/public/imgs/openshift-service-on-aws-logo.svg @@ -0,0 +1 @@ + diff --git a/frontend/public/index.html b/frontend/public/index.html index cea8ec2b378..45d6c2f3856 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -33,6 +33,10 @@ Azure Red Hat OpenShift [[ end ]] + [[ if eq .Branding "rosa" ]] + Red Hat OpenShift Service on AWS + + [[ end ]] [[ if eq .Branding "okd" ]] diff --git a/frontend/public/module/k8s/cluster-settings.ts b/frontend/public/module/k8s/cluster-settings.ts index 0e78559eb2b..d328c994116 100644 --- a/frontend/public/module/k8s/cluster-settings.ts +++ b/frontend/public/module/k8s/cluster-settings.ts @@ -273,6 +273,9 @@ export const getReportBugLink = ( case 'azure': productName = 'Azure Red Hat OpenShift'; break; + case 'rosa': + productName = 'Red Hat OpenShift Service on AWS'; + break; default: productName = 'OKD'; }