-
Notifications
You must be signed in to change notification settings - Fork 4.7k
to plug service account informer to podsecuritypolicyreview #11612
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
to plug service account informer to podsecuritypolicyreview #11612
Conversation
@@ -97,7 +99,7 @@ func (r *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, err | |||
return pspr, nil | |||
} | |||
|
|||
func getServiceAccounts(psprSpec securityapi.PodSecurityPolicyReviewSpec, client clientset.Interface, namespace string) ([]*kapi.ServiceAccount, error) { | |||
func getServiceAccounts(psprSpec securityapi.PodSecurityPolicyReviewSpec, saCache *oscache.StoreToServiceAccountLister, namespace string) ([]*kapi.ServiceAccount, error) { | |||
serviceAccounts := []*kapi.ServiceAccount{} | |||
// TODO: express 'all service accounts' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still want to do this? It seems to me that you want just the service accounts associated with the psp, right?
Looks good, had an unrelated question. |
0d677a1
to
dc761fb
Compare
[test] |
Evaluated for origin test up to dc761fb |
@mfojtik this LGTM - tag when possible |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10787/) (Base Commit: 4e99352) |
@mfojtik mind merging this one? |
[merge] |
Flake #11661. |
re [merge] |
Evaluated for origin merge up to dc761fb |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10787/) (Base Commit: 21040e2) (Image: devenv-rhel7_5300) |
@Kargakis as discussed here
@soltysh fyi