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
68999bae
Commit
68999bae
authored
Jan 17, 2017
by
deads2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add node problem detector role
parent
e1fa1512
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
policy.go
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
+10
-0
cluster-roles.yaml
...thorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml
+28
-0
No files found.
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
View file @
68999bae
...
...
@@ -220,6 +220,16 @@ func ClusterRoles() []rbac.ClusterRole {
},
},
{
// a role to use for node-problem-detector access. It does not get bound to default location since
// deployment locations can reasonably vary.
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
"system:node-problem-detector"
},
Rules
:
[]
rbac
.
PolicyRule
{
rbac
.
NewRule
(
"get"
)
.
Groups
(
legacyGroup
)
.
Resources
(
"nodes"
)
.
RuleOrDie
(),
rbac
.
NewRule
(
"patch"
)
.
Groups
(
legacyGroup
)
.
Resources
(
"nodes/status"
)
.
RuleOrDie
(),
eventsRule
(),
},
},
{
// a role to use for setting up a proxy
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
"system:node-proxier"
},
Rules
:
[]
rbac
.
PolicyRule
{
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml
View file @
68999bae
...
...
@@ -600,6 +600,34 @@ items:
creationTimestamp
:
null
labels
:
kubernetes.io/bootstrapping
:
rbac-defaults
name
:
system:node-problem-detector
rules
:
-
apiGroups
:
-
"
"
resources
:
-
nodes
verbs
:
-
get
-
apiGroups
:
-
"
"
resources
:
-
nodes/status
verbs
:
-
patch
-
apiGroups
:
-
"
"
resources
:
-
events
verbs
:
-
create
-
patch
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1alpha1
kind
:
ClusterRole
metadata
:
creationTimestamp
:
null
labels
:
kubernetes.io/bootstrapping
:
rbac-defaults
name
:
system:node-proxier
rules
:
-
apiGroups
:
...
...
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