-
Notifications
You must be signed in to change notification settings - Fork 88
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
che #14809 Enable CodeReady branding on the ConsoleLink elements created by the che operator with 'codeready' flavor #101
Conversation
pkg/deploy/defaults.go
Outdated
defaultConsoleLinkCheName = "che" | ||
defaultConsoleLinkCodeReadyName = "codeready" | ||
defaultConsoleLinkCheDisplayName = "Eclipse Che" | ||
defaultConsoleLinkCodeReadyDisplayName = "CodeReady Workspaces" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-1, for a few reasons...
a) "CodeReady" is a brand, not a product, so should NOT be used here. Options are "Red Hat CodeReady Workspaces", "CodeReady Workspaces", "Workspaces" or if an internal variable not exposed to the end user in the UI/UX, then CRW is ok. But...
b) the existing convention used in https://github.com/eclipse/che-operator/blob/master/pkg/deploy/defaults.go#L40-L41 to differentiate upstream/downstream versions of variables is with "Upstream" prefix on the variable name, so we could keep using that, eg., defaultConsoleLinkUpstreamName
and defaultConsoleLinkName
where does the ConsoleLinkName
appear? if it's UI, it shouldn't be "codeready" but rather "workspaces" or "Workspaces" as that's the product's shortname. "CodeReady" includes Studio, Builder, Containers, and more, so we can't just slap that in Workspaces and OCP and assume people will think we mean the Che-based product.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @slemeur
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slemeur Could you provide some guidance here (related to point a: wording of the Display Name) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to comment b, it's right that the most general case for variables is to have the raw property name for CRW, and property name + "upstream" for Eclipse Che. So to increase consistency we could use this naming scheme here as well.
As for the consoleLinkName, I'm don't think it is displayed to the user, and changing it might break the OS 4.2 integration if they would be searching for the ConsoleLink by name.
In fact looking into the OpenShift 4.2 console, it is clear that we should not change the ConsoleLinkName:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looks good but David's the go expert in this repo. :) and I don't like the variable names, so -1 but he can overrule me.
pkg/deploy/defaults.go
Outdated
DefaultConsoleLinkDisplayName = "Eclipse Che" | ||
DefaultConsoleLinkSection = "Red Hat Applications" | ||
DefaultConsoleLinkSection = "Red Hat Applications" | ||
DefaultConsoleLinkImage = "/dashboard/assets/branding/loader.svg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the Che image? or the CRW image? I'm guessing if we've built the dashboard correctly in CRW it'll use the CRW one, but just wanted to ask.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickboldt variables names already contain CodeReady, so I just follow the standard that is in place e.g. defaultCodeReadyServerImageRepo
https://github.com/eclipse/che-operator/blob/master/pkg/deploy/defaults.go#L24 or defaultCodeReadyServerImageTag
- https://github.com/eclipse/che-operator/blob/master/pkg/deploy/defaults.go#L24
and I do not plan to do the refactoring. The rule of thumb is either to follow the convention that is already in place (even if you do not like) or proceed with the major refactoring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the Che image? or the CRW image?
I suppose it should use CRW image but I can not confirm since I can not verify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickboldt doesn't the CRW assembly replace the image with a CRW one during packaging ? And in this case is the relative path of the image still the same ?
If it's the case we wouldn't need to change the loader image.
variables names already contain CodeReady, so I just follow the standard that is in place e.g. defaultCodeReadyServerImageRepo https://github.com/eclipse/che-operator/blob/master/pkg/deploy/defaults.go#L24 or defaultCodeReadyServerImageTag - https://github.com/eclipse/che-operator/blob/master/pkg/deploy/defaults.go#L24 and I do not plan to do the refactoring. The rule of thumb is either to follow the convention that is already in place (even if you do not like) or proceed with the major refactoring |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Despite the fact that https://github.com/eclipse/che-operator/blob/master/pkg/deploy/defaults.go#L23-L26 uses "CodeReady" as if it's a product, and https://github.com/eclipse/che-operator/blob/master/pkg/deploy/defaults.go#L36-L52 uses the "Upstream" convention to differentiate Che from CRW config, ... +1.
You're right, refactoring can be dealt with later: eclipse-che/che#14957
Please remove the "WIP" marker before you merge this. |
I plan to review tomorrow morning. |
@nickboldt well, I plan to verify it first before merging ;-) |
pkg/deploy/defaults.go
Outdated
DefaultConsoleLinkDisplayName = "Eclipse Che" | ||
DefaultConsoleLinkSection = "Red Hat Applications" | ||
DefaultConsoleLinkSection = "Red Hat Applications" | ||
DefaultConsoleLinkImage = "/dashboard/assets/branding/loader.svg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickboldt doesn't the CRW assembly replace the image with a CRW one during packaging ? And in this case is the relative path of the image still the same ?
If it's the case we wouldn't need to change the loader image.
pkg/deploy/defaults.go
Outdated
defaultConsoleLinkCheName = "che" | ||
defaultConsoleLinkCodeReadyName = "codeready" | ||
defaultConsoleLinkCheDisplayName = "Eclipse Che" | ||
defaultConsoleLinkCodeReadyDisplayName = "CodeReady Workspaces" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to comment b, it's right that the most general case for variables is to have the raw property name for CRW, and property name + "upstream" for Eclipse Che. So to increase consistency we could use this naming scheme here as well.
As for the consoleLinkName, I'm don't think it is displayed to the user, and changing it might break the OS 4.2 integration if they would be searching for the ConsoleLink by name.
In fact looking into the OpenShift 4.2 console, it is clear that we should not change the ConsoleLinkName:
In fact, afaik, the use of |
@ibuziuk Did you try to deploy it simply through the OperatorHub (from the UI), and then change the docker image to your docker image in the deployed CSV, and operator deployment ? Not sure CheCtl is the recommended install mode for Openhsift 4.2 that has OperatorHub inside it. |
…ted by the che operator with 'codeready' flavor Signed-off-by: Ilya Buziuk <[email protected]>
@nickboldt @davidfestal PR has been updated and verified against crc. ConsoleLink functionality works just fine, but the CodeReady image was not applied: @nickboldt will the logo issue be addressed as part of the https://issues.jboss.org/browse/CRW-315?focusedCommentId=13803743&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13803743 |
The display name should be "CodeReady Workspaces". |
I believe so, yes. @evidolob is investigating the branding problem now, hopefully fixed tomorrow. See eclipse-che/che#14982 I have no idea which icon is used for the devconsole dropdown but if it's one from the CRW assembly or the crw-theia assembly then we should be OK once branding is fixed. |
The icon is @rhopp @davidfestal may I get your reviews ;-) |
Ah, well for CRW 2 we're using https://github.com/redhat-developer/codeready-workspaces/blob/master/assembly/codeready-workspaces-assembly-dashboard-war/src/main/webapp/assets/branding/CodeReady_icon_loader.svg not |
@nickboldt would be great if you could do the image renaming ;-) |
@nickboldt awesome, lemme know against which image I can re-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Ilya.
Should be able to check new image names in 2.0-377 or later. Building now in https://codeready-workspaces-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/CRW_CI/view/Pipelines/job/crw_master/882/ then will trigger brew build. Should be there in an hour or so, unless something goes wacky. https://quay.io/repository/crw/server-rhel8?tag=2.0&tab=tags |
@nickboldt tested against |
@ibuziuk If you use self-signed cert - it may be caused by an untrusted host. You can easily figure out it by discovering Developer Tools of browser. |
Che issue - eclipse-che/che#14809
ConsoleLink functionality works just fine
Verified against crc:
./run server:start -a operator -p crc -b console-openshift-console.apps-crc.testing -n crw-link --che-operator-image=quay.io/ibuziuk/che-operator:che-14809-new --che-operator-cr-yaml=crw.yaml
crw.yaml: