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

Shows link to Stackdriver logs if logs retrieval fails and cluster is running in GKE #1310

Merged
merged 3 commits into from
May 13, 2019

Conversation

rileyjbauer
Copy link
Contributor

@rileyjbauer rileyjbauer commented May 10, 2019

Example UI:
image

Clicking on the link will take the user to the Stackdriver log viewer in GCP with a preset query to get just the logs for the relevant pod.

The changes in RunDetails.test.tsx are mostly refactoring/moving. Three new tests are:

  • shows warning banner and link to Stackdriver in logs area if fetching logs failed and cluster is in GKE
  • shows error banner atop logs area if fetching logs failed and getProjectId fails
  • shows error banner atop logs area if fetching logs failed and getClusterName fails

Related to #844


This change is Reviewable

@gaoning777
Copy link
Contributor

Synced with Pascal that we will display two links because it is both too hacky to get the GKE cluster configuration and non-trivial. By the time, GKE default stackdriver is the new kubernetes stackdriver, we can switch to one link, then.

@rileyjbauer
Copy link
Contributor Author

Synced with Pascal that we will display two links because it is both too hacky to get the GKE cluster configuration and non-trivial. By the time, GKE default stackdriver is the new kubernetes stackdriver, we can switch to one link, then.

Sounds good. I've updated the logs pane to include both links.

@rileyjbauer
Copy link
Contributor Author

/test kubeflow-pipeline-e2e-test

@gaoning777
Copy link
Contributor

/lgtm

@rileyjbauer
Copy link
Contributor Author

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rileyjbauer

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

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rileyjbauer

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

@k8s-ci-robot k8s-ci-robot merged commit 1ab4315 into kubeflow:master May 13, 2019
@rileyjbauer rileyjbauer deleted the link-to-stackdriver branch May 21, 2019 23:55
@derekhh derekhh mentioned this pull request Jun 25, 2019
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants