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

Add link to controller on pod and replica set pages #1732

Merged

Conversation

spadgett
Copy link
Member

Add the following links to the detail pages in the console using
controller references:

  • pod -> replication controller (not part of deployment config)
  • pod -> replica set
  • pod -> build
  • replica set -> deployment

We previously added a link to deployment configs using pod and
replication controller labels.

Add the following links to the detail pages in the console using
controller references:

* pod -> replication controller (not part of deployment config)
* pod -> replica set
* pod -> build
* replica set -> deployment

We previously added a link to deployment configs using pod and
replication controller labels.
@spadgett spadgett requested a review from jwforres June 19, 2017 12:40
@spadgett
Copy link
Member Author

Replaces #1574

@jwforres Arguably a usability bug fix? We were already showing the links for deployment configs, but not deployments.

if (!$scope.dcName) {
var controllerReferences = OwnerReferencesService.getControllerReferences(pod);
$scope.controllerRef = _.find(controllerReferences, function(ref) {
return ref.kind === 'ReplicationController' ||
Copy link
Member

Choose a reason for hiding this comment

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

what does the owner ref on the deployer pod look like?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not a controller ref so won't show up.

  ownerReferences:
    - apiVersion: v1
      kind: ReplicationController
      name: hello-openshift-2
      uid: e567f54d-5541-11e7-90d1-9e0e2b8a4114

@jwforres
Copy link
Member

[merge][severity:bug]

@openshift-bot
Copy link

Evaluated for origin web console merge up to abf8ca9

@openshift-bot
Copy link

openshift-bot commented Jun 20, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1569/) (Base Commit: 0bdb929) (PR Branch Commit: abf8ca9) (Extended Tests: bug)

@openshift-bot openshift-bot merged commit ca13e6d into openshift:master Jun 20, 2017
@spadgett spadgett deleted the deployment-links-from-owner-refs branch June 20, 2017 00:51
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