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

feat: Add a chectl preflight check step that verifies that the platform version is supported #500

Merged
merged 8 commits into from
Feb 12, 2020

Conversation

tolusha
Copy link
Collaborator

@tolusha tolusha commented Feb 10, 2020

What does this PR do?

Add minimal versions check for

  • openshift
  • kubernetes
  • helm

What issues does this PR fix or reference?

eclipse-che/che#15680

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
@tolusha tolusha changed the title Add a chectl preflight check step that verifies that the platform version is supported feat: Add a chectl preflight check step that verifies that the platform version is supported Feb 10, 2020
@tolusha tolusha requested a review from sleshchenko February 10, 2020 10:27
src/api/version.ts Outdated Show resolved Hide resolved
src/api/version.ts Outdated Show resolved Hide resolved
src/api/version.ts Outdated Show resolved Hide resolved
return new Error(`The minimal supported version of ${component} is '${minimalVersion} but found '${actualVersion}'. To bypass version check use '--skip-version-check' flag.`)
}

private static async getVersionWithOC(versionPrefix: string): Promise<string | undefined> {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's not versionPrefix (look at removePrefix), it is more like componentLabel or so.

Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
@tolusha tolusha mentioned this pull request Feb 12, 2020
35 tasks
@tolusha tolusha merged commit 7240203 into master Feb 12, 2020
@tolusha tolusha deleted the ab/versions branch February 12, 2020 15:32
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.

3 participants