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

Wait for cluster version resource to load #3091

Merged
merged 1 commit into from
Oct 25, 2019

Conversation

rawagner
Copy link
Contributor

@spadgett this will fix the case when alerts are loaded (and there arent any) and the status card will show No cluster alerts or messages and after a while Cluster Version resource is loaded and the card will show available update.

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 24, 2019
@openshift-ci-robot openshift-ci-robot added component/core Related to console core functionality component/dashboard Related to dashboard approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 24, 2019
@@ -167,6 +167,7 @@ const ClusterAlerts = withDashboardResources(
const alerts = getAlerts(alertsResponse);

const cv = _.get(resources.cv, 'data') as ClusterVersionKind;
const cvLoaded = _.get(resources.cv, 'loaded');
Copy link
Member

Choose a reason for hiding this comment

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

We probably want to check the CLUSTER_VERSION flag before watching this resource.

@spadgett
Copy link
Member

@rawagner It looks like the dashboards page is available on native k8s. I suspect a lot of things will fail when not running on OpenShift.

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/lgtm

Let's get this fix in, but we might look at adding flag checks for resources before we request them in a follow on

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 24, 2019
@spadgett
Copy link
Member

/retest

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rawagner, spadgett

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

@spadgett
Copy link
Member

/retest

@spadgett
Copy link
Member

known olm flake

/retest

@spadgett
Copy link
Member

/retest

@spadgett spadgett added this to the v4.3 milestone Oct 24, 2019
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 2cc0b4f into openshift:master Oct 25, 2019
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. component/core Related to console core functionality component/dashboard Related to dashboard lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants