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
b2586830
Commit
b2586830
authored
Jan 17, 2017
by
deads2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add heapster role
parent
f7305e6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
policy.go
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
+7
-0
cluster-roles.yaml
...thorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml
+20
-0
No files found.
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
View file @
b2586830
...
@@ -172,6 +172,13 @@ func ClusterRoles() []rbac.ClusterRole {
...
@@ -172,6 +172,13 @@ func ClusterRoles() []rbac.ClusterRole {
},
},
},
},
{
{
// a role to use for heapster's connections back to the API server
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"system:heapster"
},
Rules
:
[]
rbac
.
PolicyRule
{
rbac
.
NewRule
(
Read
...
)
.
Groups
(
legacyGroup
)
.
Resources
(
"events"
,
"pods"
,
"nodes"
,
"namespaces"
)
.
RuleOrDie
(),
},
},
{
// a role for nodes to use to have the access they need for running pods
// a role for nodes to use to have the access they need for running pods
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"system:node"
},
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"system:node"
},
Rules
:
[]
rbac
.
PolicyRule
{
Rules
:
[]
rbac
.
PolicyRule
{
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml
View file @
b2586830
...
@@ -394,6 +394,26 @@ items:
...
@@ -394,6 +394,26 @@ items:
creationTimestamp
:
null
creationTimestamp
:
null
labels
:
labels
:
kubernetes.io/bootstrapping
:
rbac-defaults
kubernetes.io/bootstrapping
:
rbac-defaults
name
:
system:heapster
rules
:
-
apiGroups
:
-
"
"
attributeRestrictions
:
null
resources
:
-
events
-
namespaces
-
nodes
-
pods
verbs
:
-
get
-
list
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1alpha1
kind
:
ClusterRole
metadata
:
creationTimestamp
:
null
labels
:
kubernetes.io/bootstrapping
:
rbac-defaults
name
:
system:kube-aggregator
name
:
system:kube-aggregator
rules
:
rules
:
-
apiGroups
:
-
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