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

OSD-14573-warn-user-for-old-cli #113

Merged

Conversation

Tafhim
Copy link
Contributor

@Tafhim Tafhim commented May 24, 2023

What type of PR is this?

feature

What this PR does / Why we need it?

In order to help users identify version related issue faster, this PR adds a warning message when they attempt to login to a cluster.

Which Jira/Github issue(s) does this PR fix?

OSD-14573

Special notes for your reviewer

Pre-checks (if applicable)

  • Ran unit tests locally
  • Validated the changes in a cluster
  • Included documentation changes with PR

@openshift-ci openshift-ci bot requested review from bmeng and feichashao May 24, 2023 03:34
Copy link
Contributor

@supreeth7 supreeth7 left a comment

Choose a reason for hiding this comment

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

Looks great overall.
This would be a good warning-level log for the initializing commands.
login being one, can you also add the checkBackplaneVersion function call to cloud console as well? Because users can view the cloud console without logging into the cluster.

cmd/ocm-backplane/login/login.go Outdated Show resolved Hide resolved
@Tafhim Tafhim force-pushed the OSD-14573-warn-user-for-old-bp branch from 33e4916 to cfe7792 Compare May 24, 2023 07:52
OSD-14573 - Add nil safety for command and context objects

OSD-14573 - Change message level to debug

OSD-14573 - Fix version mismatch due to extra characters in GitHub API tags

Update cmd/ocm-backplane/login/login.go

Co-authored-by: Supreeth Basabattini <sbasabat@redhat.com>

OSD-14573 - Move backplane version check functionality to utils

OSD-14573 - Add backplane version check to cloud console
@Tafhim Tafhim force-pushed the OSD-14573-warn-user-for-old-bp branch from 2ad4327 to d887c21 Compare May 24, 2023 08:22
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 24, 2023

@Tafhim: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@supreeth7
Copy link
Contributor

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 24, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: supreeth7, Tafhim

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

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 24, 2023
@openshift-merge-robot openshift-merge-robot merged commit ecfd2e2 into openshift:main May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants