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

Bug 1830121: Enable pod list to display node instead of owner #5368

Merged
merged 1 commit into from May 18, 2020

Conversation

rhamilto
Copy link
Member

@rhamilto rhamilto commented May 8, 2020

and enable for daemon sets, jobs, replica sets, replication controllers, and stateful sets

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1830121

localhost_9000_k8s_ns_openshift-controller-manager_daemonsets_controller-manager_pods(5  PFXL)

@rhamilto rhamilto added the kind/bug Categorizes issue or PR as related to a bug. label May 8, 2020
@rhamilto rhamilto added this to the v4.5 milestone May 8, 2020
@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. labels May 8, 2020
@openshift-ci-robot
Copy link
Contributor

@rhamilto: This pull request references Bugzilla bug 1830121, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

[WIP] Bug 1830121: Change daemon set pod list to display node instead of owner

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.

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label May 8, 2020
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 8, 2020
@openshift-ci-robot
Copy link
Contributor

@rhamilto: This pull request references Bugzilla bug 1830121, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

[WIP] Bug 1830121: Change daemon set pod list to display node instead of owner

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.

@rhamilto
Copy link
Member Author

/retest

@TheRealJon
Copy link
Member

TheRealJon commented May 14, 2020

@rhamilto I don't mind this solution too much, but I would prefer to use redux instead of passing the prop down through all of the intermediate components. PodTableRow is already connected to redux, so it shouldn't be too difficult to hook something up there. We just need to make sure to unset that state when we leave the pages that use it. Should be easy enough to set up a hook to do that as well. The only other thing I would say is that maybe we could name the useAltTable prop to something a little bit more descriptive?

In the long run, it would be nice if we came up with a way to handle this using a bit of logic. We can figure out if the current resource owns all the pods on the Pods tab using owner references and the uid of the currently viewed resource. That being said, I think a solution like that might blow up the scope of this PR, so I'd be fine with a solution that uses redux as above.

@spadgett
Copy link
Member

We should be able to use the existing customData prop to pass down any additional data without adding a new prop.

@rhamilto
Copy link
Member Author

rhamilto commented May 14, 2020

Take 2 using customData, which I now remember @spadgett mentioning before. SMH ;-)

@rhamilto
Copy link
Member Author

Note: I intend to squash commits, but wanted to confirm we want the change for Jobs, ReplicaSets, and StatefulSets.

Copy link
Member

@TheRealJon TheRealJon left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 14, 2020
@rhamilto
Copy link
Member Author

Note: I intend to squash commits, but wanted to confirm we want the change for Jobs, ReplicaSets, and StatefulSets.

What about ReplicationControllers, too?

@spadgett
Copy link
Member

I think it makes sense to add Replication Controllers here as well.

We want to see the owner for Deployments, Deployment Configs, and Cron Jobs. I see you've left out those resources, which is probably right.

It would be nice to hide the Namespace column, but we can make that a separate change.

and enable for daemon sets, jobs, replica sets, replication controllers, and stateful sets
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label May 18, 2020
@rhamilto rhamilto changed the title [WIP] Bug 1830121: Change daemon set pod list to display node instead of owner Bug 1830121: Enable pod list to display node instead of owner May 18, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 18, 2020
@rhamilto rhamilto requested a review from TheRealJon May 18, 2020 19:51
@openshift-ci-robot
Copy link
Contributor

@rhamilto: This pull request references Bugzilla bug 1830121, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1830121: Enable pod list to display node instead of owner

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.

Copy link
Member

@TheRealJon TheRealJon left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 18, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhamilto, TheRealJon

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-merge-robot openshift-merge-robot merged commit 0472abc into openshift:master May 18, 2020
@openshift-ci-robot
Copy link
Contributor

@rhamilto: All pull requests linked via external trackers have merged: openshift/console#5368. Bugzilla bug 1830121 has been moved to the MODIFIED state.

In response to this:

Bug 1830121: Enable pod list to display node instead of owner

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.

@rhamilto rhamilto deleted the bz1830121 branch May 18, 2020 23:44
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. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/core Related to console core functionality kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants