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
22ff2673
Unverified
Commit
22ff2673
authored
Nov 27, 2018
by
k8s-ci-robot
Committed by
GitHub
Nov 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #71406 from WanLinghao/rootcacert_clusterrole_fix
Fix feature-gate inconsistent between rootcacertpublisher and post-start clusterroles
parents
414cfbd8
0bab5ee5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
43 deletions
+1
-43
controller_policy.go
...auth/authorizer/rbac/bootstrappolicy/controller_policy.go
+1
-1
controller-role-bindings.yaml
...ac/bootstrappolicy/testdata/controller-role-bindings.yaml
+0
-17
controller-roles.yaml
...rizer/rbac/bootstrappolicy/testdata/controller-roles.yaml
+0
-25
No files found.
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/controller_policy.go
View file @
22ff2673
...
@@ -353,7 +353,7 @@ func buildControllerRoles() ([]rbacv1.ClusterRole, []rbacv1.ClusterRoleBinding)
...
@@ -353,7 +353,7 @@ func buildControllerRoles() ([]rbacv1.ClusterRole, []rbacv1.ClusterRoleBinding)
})
})
}
}
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
TokenRequest
)
{
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
BoundServiceAccountTokenVolume
)
{
addControllerRole
(
&
controllerRoles
,
&
controllerRoleBindings
,
rbacv1
.
ClusterRole
{
addControllerRole
(
&
controllerRoles
,
&
controllerRoleBindings
,
rbacv1
.
ClusterRole
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
saRolePrefix
+
"root-ca-cert-publisher"
},
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
saRolePrefix
+
"root-ca-cert-publisher"
},
Rules
:
[]
rbacv1
.
PolicyRule
{
Rules
:
[]
rbacv1
.
PolicyRule
{
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-role-bindings.yaml
View file @
22ff2673
...
@@ -365,23 +365,6 @@ items:
...
@@ -365,23 +365,6 @@ items:
creationTimestamp
:
null
creationTimestamp
:
null
labels
:
labels
:
kubernetes.io/bootstrapping
:
rbac-defaults
kubernetes.io/bootstrapping
:
rbac-defaults
name
:
system:controller:root-ca-cert-publisher
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
ClusterRole
name
:
system:controller:root-ca-cert-publisher
subjects
:
-
kind
:
ServiceAccount
name
:
root-ca-cert-publisher
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
annotations
:
rbac.authorization.kubernetes.io/autoupdate
:
"
true"
creationTimestamp
:
null
labels
:
kubernetes.io/bootstrapping
:
rbac-defaults
name
:
system:controller:route-controller
name
:
system:controller:route-controller
roleRef
:
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
apiGroup
:
rbac.authorization.k8s.io
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-roles.yaml
View file @
22ff2673
...
@@ -1039,31 +1039,6 @@ items:
...
@@ -1039,31 +1039,6 @@ items:
creationTimestamp
:
null
creationTimestamp
:
null
labels
:
labels
:
kubernetes.io/bootstrapping
:
rbac-defaults
kubernetes.io/bootstrapping
:
rbac-defaults
name
:
system:controller:root-ca-cert-publisher
rules
:
-
apiGroups
:
-
"
"
resources
:
-
configmaps
verbs
:
-
create
-
update
-
apiGroups
:
-
"
"
resources
:
-
events
verbs
:
-
create
-
patch
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
annotations
:
rbac.authorization.kubernetes.io/autoupdate
:
"
true"
creationTimestamp
:
null
labels
:
kubernetes.io/bootstrapping
:
rbac-defaults
name
:
system:controller:route-controller
name
:
system:controller:route-controller
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