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

Allow to use selector when listing clusterroles #12461

Merged
merged 1 commit into from
Jan 14, 2017

Conversation

mfojtik
Copy link
Contributor

@mfojtik mfojtik commented Jan 12, 2017

Fixes: #12450

Basically pass the ListOptions when filtering the policies.

@mfojtik
Copy link
Contributor Author

mfojtik commented Jan 12, 2017

@liggitt @smarterclayton PTAL

@@ -47,7 +47,7 @@ func (m *VirtualStorage) NewList() runtime.Object {
}

func (m *VirtualStorage) List(ctx kapi.Context, options *kapi.ListOptions) (runtime.Object, error) {
policyList, err := m.PolicyStorage.ListPolicies(ctx, options)
Copy link
Contributor

Choose a reason for hiding this comment

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

is the same change needed for RoleBindings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I will check and add some tests

@liggitt
Copy link
Contributor

liggitt commented Jan 12, 2017

would like to see tests exercising this

@mfojtik mfojtik force-pushed the clusterroles-selector branch from 88e9b10 to f2a189d Compare January 13, 2017 12:29
@mfojtik
Copy link
Contributor Author

mfojtik commented Jan 13, 2017

@liggitt updated.

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to f2a189d

@liggitt
Copy link
Contributor

liggitt commented Jan 13, 2017

LGTM, [merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12836/) (Base Commit: 8a41d6f)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to f2a189d

@openshift-bot
Copy link
Contributor

openshift-bot commented Jan 14, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12874/) (Base Commit: 4d6e336) (Image: devenv-rhel7_5676)

@openshift-bot openshift-bot merged commit 46bdbfa into openshift:master Jan 14, 2017
@mfojtik
Copy link
Contributor Author

mfojtik commented Jan 17, 2017

@jmazzitelli I believe delete and get are using the same selector code underneath, but I will verify it.

can you confirm that with this fix you can at least get with selector?

@mfojtik mfojtik deleted the clusterroles-selector branch September 5, 2018 21:07
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.

4 participants