Skip to content

Commit

Permalink
changing pod selection algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Stafford committed May 4, 2021
1 parent d29bc32 commit 14ee0b8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
22 changes: 22 additions & 0 deletions admin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"Version": "2012-10-17",
"Statement": [{
"Action": [
"admin:*"
],
"Effect": "Allow",
"Sid": ""
},
{
"Action": [
"s3:*"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::*"
],
"Sid": ""
}
]
}

13 changes: 12 additions & 1 deletion restapi/admin_tenants.go
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,18 @@ func getTenantPodsResponse(session *models.Principal, params admin_api.GetTenant
if err != nil {
return nil, prepareError(err)
}
listOpts := metav1.ListOptions{}
listOpts := metav1.ListOptions{
TypeMeta: metav1.TypeMeta{},
LabelSelector: "",
FieldSelector: "",
Watch: false,
AllowWatchBookmarks: false,
ResourceVersion: "",
ResourceVersionMatch: "",
TimeoutSeconds: nil,
Limit: 0,
Continue: "",
}
pods, err := clientset.CoreV1().Pods(params.Namespace).List(ctx, listOpts)
if err != nil {
return nil, prepareError(err)
Expand Down

0 comments on commit 14ee0b8

Please sign in to comment.