Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
2be623b1
Commit
2be623b1
authored
Mar 10, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
Mar 10, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38805 from xilabao/add-err-info-to-authorize-in-psp
Automatic merge from submit-queue add err info to authorize in psp It's unwise to ignore the err in my view.
parents
e2218290
35d926d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
admission.go
plugin/pkg/admission/security/podsecuritypolicy/admission.go
+4
-1
No files found.
plugin/pkg/admission/security/podsecuritypolicy/admission.go
View file @
2be623b1
...
@@ -304,7 +304,10 @@ func authorizedForPolicy(info user.Info, policy *extensions.PodSecurityPolicy, a
...
@@ -304,7 +304,10 @@ func authorizedForPolicy(info user.Info, policy *extensions.PodSecurityPolicy, a
return
true
return
true
}
}
attr
:=
buildAttributes
(
info
,
policy
)
attr
:=
buildAttributes
(
info
,
policy
)
allowed
,
_
,
_
:=
authz
.
Authorize
(
attr
)
allowed
,
reason
,
err
:=
authz
.
Authorize
(
attr
)
if
err
!=
nil
{
glog
.
V
(
5
)
.
Infof
(
"cannot authorized for policy: %v,%v"
,
reason
,
err
)
}
return
allowed
return
allowed
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment