-
Notifications
You must be signed in to change notification settings - Fork 584
Add Custom product name and logo to api #304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| package v1 | ||
|
|
||
| import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
| import ( | ||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
|
|
||
| "github.com/openshift/api/config/v1" | ||
| ) | ||
|
|
||
| // +genclient | ||
| // +genclient:nonNamespaced | ||
|
|
@@ -39,6 +43,21 @@ type ConsoleCustomization struct { | |
| // documentation URL. | ||
| // Invalid value will prevent a console rollout. | ||
| DocumentationBaseURL string `json:"documentationBaseURL,omitempty"` | ||
| // customProductName is the name that will be displayed in page titles, logo alt text, and the about dialog | ||
| // instead of the normal OpenShift product name. | ||
| // +optional | ||
| CustomProductName string `json:"customProductName,omitempty"` | ||
| // customLogoFile replaces the default OpenShift logo in the masthead and about dialog. It is a reference to a | ||
| // ConfigMap in the openshift-config namespace. This can be created with a command like | ||
| // 'oc create configmap custom-logo --from-file=/path/to/file -n openshift-config'. | ||
| // Image size must be less than 1 MB due to constraints on the ConfigMap size. | ||
| // The ConfigMap key should include a file extension so that the console serves the file | ||
| // with the correct MIME type. | ||
| // Recommended logo specifications: | ||
| // Dimensions: Max height of 68px and max width of 200px | ||
| // SVG format preferred | ||
| // +optional | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe // customLogoFile replaces the default OpenShift logo in the masthead and about dialog. It is a reference to a
// ConfigMap in the openshift-config namespace. This can be created with a command like
// 'oc create configmap custom-logo --from-file=/path/to/logo.svg -n openshift-config'.
// Image size must be less than 1 MB due to constraints on the ConfigMap size.
// The ConfigMap key should include a file extension so that the console serves the file
// with the correct MIME type.
// +optional
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We might want to give guidance on recommended dimensions (although I don't know what those are offhand).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like we set the viewbox to 100x100 on the SVGs. Should I add that?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @spadgett
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 100x100 can't be right since the logo is not square. Maybe we simply say "An SVG logo is recommended, but other image types are supported." and leave it at that.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like we should indicate a recommended size, along with https://github.com/openshift/console/blob/master/frontend/public/imgs/openshift-dedicated-logo.svg Are
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @zherman0 the PatternFly variable I would say |
||
| CustomLogoFile v1.ConfigMapFileReference `json:"customLogoFile,omitempty"` | ||
| } | ||
|
|
||
| // Brand is a specific supported brand within the console | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.