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

fix: Detect olm installer type for server:update command #701

Merged
merged 2 commits into from
May 18, 2020

Conversation

tolusha
Copy link
Collaborator

@tolusha tolusha commented May 14, 2020

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

What does this PR do?

Check if subscription exists and automatically set installer type to olm if it wasn't specified.

What issues does this PR fix or reference?

eclipse-che/che#16861

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
@tolusha tolusha changed the title Detect olm installer type for server:update command fix: Detect olm installer type for server:update command May 14, 2020
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
async setDefaultInstaller(flags: any): Promise<void> {
const cheVersion = DEFAULT_CHE_OPERATOR_IMAGE.split(':')[1]
const kubeHelper = new KubeHelper(flags)
if (flags.platform === 'openshift' && await kubeHelper.isOpenShift4() && cheVersion !== 'nightly' && cheVersion !== 'latest') {
Copy link
Contributor

Choose a reason for hiding this comment

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

what about crc ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is just for openshift

@tolusha tolusha merged commit e980051 into master May 18, 2020
@tolusha tolusha deleted the detectinstallertype branch May 18, 2020 05:10
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

3 participants