Skip to content
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

chore: Make server:update command more informative #827

Merged
merged 3 commits into from
Aug 28, 2020
Merged

Conversation

tolusha
Copy link
Collaborator

@tolusha tolusha commented Aug 27, 2020

Signed-off-by: Anatolii Bazko abazko@redhat.com

What does this PR do?

Provides more information to a user before before updating Eclipse Che

What issues does this PR fix or reference?

https://issues.redhat.com/browse/CRW-1175

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tolusha
To complete the pull request process, please assign
You can assign the PR to them by writing /assign in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

export default class Update extends Command {
static description = 'update Eclipse Che server'
static description = `Update Eclipse Che server to ${getImageTag(DEFAULT_CHE_OPERATOR_IMAGE)} version.`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have hardcoded version of Che server to update to here. So just running chectl server:update is not enough (otherwise user will see a message that Che server is up to date, however in reality it could be pretty old). The right flow as of now is to, firstly, update chectl, secondly, Che server. As we cannot just update Che server without chectl update, probably we have to improve the flow. It would be good to check for chectl update if chectl server:update says "up to date" and maybe ask user to comfirm automatic update. This could be tricky to implement, so maybe it worth to create a separate issue for that. I think we should at least print warning to user, that it is required to update chectl first using command ****.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realized that in case of olm the description will be irrelevant.

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants