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
a9f57e90
Commit
a9f57e90
authored
Aug 22, 2017
by
Chen Rong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to rbac v1 in bootstrappolicy test
parent
e633a160
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
88 additions
and
88 deletions
+88
-88
BUILD
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/BUILD
+1
-1
policy_test.go
...n/pkg/auth/authorizer/rbac/bootstrappolicy/policy_test.go
+3
-3
cluster-role-bindings.yaml
.../rbac/bootstrappolicy/testdata/cluster-role-bindings.yaml
+8
-8
cluster-roles.yaml
...thorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml
+19
-19
controller-role-bindings.yaml
...ac/bootstrappolicy/testdata/controller-role-bindings.yaml
+22
-22
controller-roles.yaml
...rizer/rbac/bootstrappolicy/testdata/controller-roles.yaml
+22
-22
namespace-role-bindings.yaml
...bac/bootstrappolicy/testdata/namespace-role-bindings.yaml
+6
-6
namespace-roles.yaml
...orizer/rbac/bootstrappolicy/testdata/namespace-roles.yaml
+7
-7
No files found.
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/BUILD
View file @
a9f57e90
...
@@ -40,7 +40,7 @@ go_test(
...
@@ -40,7 +40,7 @@ go_test(
"//pkg/registry/rbac/validation:go_default_library",
"//pkg/registry/rbac/validation:go_default_library",
"//vendor/github.com/ghodss/yaml:go_default_library",
"//vendor/github.com/ghodss/yaml:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
"//vendor/k8s.io/api/rbac/v1
beta1
:go_default_library",
"//vendor/k8s.io/api/rbac/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library",
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy_test.go
View file @
a9f57e90
...
@@ -26,7 +26,7 @@ import (
...
@@ -26,7 +26,7 @@ import (
"github.com/ghodss/yaml"
"github.com/ghodss/yaml"
"k8s.io/api/core/v1"
"k8s.io/api/core/v1"
rbacv1
beta1
"k8s.io/api/rbac/v1beta
1"
rbacv1
"k8s.io/api/rbac/v
1"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/diff"
"k8s.io/apimachinery/pkg/util/diff"
...
@@ -280,11 +280,11 @@ func testObjects(t *testing.T, list *api.List, fixtureFilename string) {
...
@@ -280,11 +280,11 @@ func testObjects(t *testing.T, list *api.List, fixtureFilename string) {
t
.
Fatal
(
err
)
t
.
Fatal
(
err
)
}
}
if
err
:=
runtime
.
EncodeList
(
api
.
Codecs
.
LegacyCodec
(
v1
.
SchemeGroupVersion
,
rbacv1
beta1
.
SchemeGroupVersion
),
list
.
Items
);
err
!=
nil
{
if
err
:=
runtime
.
EncodeList
(
api
.
Codecs
.
LegacyCodec
(
v1
.
SchemeGroupVersion
,
rbacv1
.
SchemeGroupVersion
),
list
.
Items
);
err
!=
nil
{
t
.
Fatal
(
err
)
t
.
Fatal
(
err
)
}
}
jsonData
,
err
:=
runtime
.
Encode
(
api
.
Codecs
.
LegacyCodec
(
v1
.
SchemeGroupVersion
,
rbacv1
beta1
.
SchemeGroupVersion
),
list
)
jsonData
,
err
:=
runtime
.
Encode
(
api
.
Codecs
.
LegacyCodec
(
v1
.
SchemeGroupVersion
,
rbacv1
.
SchemeGroupVersion
),
list
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatal
(
err
)
t
.
Fatal
(
err
)
}
}
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-role-bindings.yaml
View file @
a9f57e90
apiVersion
:
v1
apiVersion
:
v1
items
:
items
:
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -17,7 +17,7 @@ items:
...
@@ -17,7 +17,7 @@ items:
-
apiGroup
:
rbac.authorization.k8s.io
-
apiGroup
:
rbac.authorization.k8s.io
kind
:
Group
kind
:
Group
name
:
system:masters
name
:
system:masters
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -37,7 +37,7 @@ items:
...
@@ -37,7 +37,7 @@ items:
-
apiGroup
:
rbac.authorization.k8s.io
-
apiGroup
:
rbac.authorization.k8s.io
kind
:
Group
kind
:
Group
name
:
system:unauthenticated
name
:
system:unauthenticated
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -57,7 +57,7 @@ items:
...
@@ -57,7 +57,7 @@ items:
-
apiGroup
:
rbac.authorization.k8s.io
-
apiGroup
:
rbac.authorization.k8s.io
kind
:
Group
kind
:
Group
name
:
system:unauthenticated
name
:
system:unauthenticated
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -74,7 +74,7 @@ items:
...
@@ -74,7 +74,7 @@ items:
-
apiGroup
:
rbac.authorization.k8s.io
-
apiGroup
:
rbac.authorization.k8s.io
kind
:
User
kind
:
User
name
:
system:kube-controller-manager
name
:
system:kube-controller-manager
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -91,7 +91,7 @@ items:
...
@@ -91,7 +91,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
kube-dns
name
:
kube-dns
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -108,7 +108,7 @@ items:
...
@@ -108,7 +108,7 @@ items:
-
apiGroup
:
rbac.authorization.k8s.io
-
apiGroup
:
rbac.authorization.k8s.io
kind
:
User
kind
:
User
name
:
system:kube-scheduler
name
:
system:kube-scheduler
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -122,7 +122,7 @@ items:
...
@@ -122,7 +122,7 @@ items:
kind
:
ClusterRole
kind
:
ClusterRole
name
:
system:node
name
:
system:node
subjects
:
[]
subjects
:
[]
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml
View file @
a9f57e90
apiVersion
:
v1
apiVersion
:
v1
items
:
items
:
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -161,7 +161,7 @@ items:
...
@@ -161,7 +161,7 @@ items:
-
patch
-
patch
-
update
-
update
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -181,7 +181,7 @@ items:
...
@@ -181,7 +181,7 @@ items:
-
'
*'
-
'
*'
verbs
:
verbs
:
-
'
*'
-
'
*'
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -322,7 +322,7 @@ items:
...
@@ -322,7 +322,7 @@ items:
-
patch
-
patch
-
update
-
update
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -344,7 +344,7 @@ items:
...
@@ -344,7 +344,7 @@ items:
-
subjectaccessreviews
-
subjectaccessreviews
verbs
:
verbs
:
-
create
-
create
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -360,7 +360,7 @@ items:
...
@@ -360,7 +360,7 @@ items:
-
selfsubjectaccessreviews
-
selfsubjectaccessreviews
verbs
:
verbs
:
-
create
-
create
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -376,7 +376,7 @@ items:
...
@@ -376,7 +376,7 @@ items:
-
certificatesigningrequests/nodeclient
-
certificatesigningrequests/nodeclient
verbs
:
verbs
:
-
create
-
create
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -392,7 +392,7 @@ items:
...
@@ -392,7 +392,7 @@ items:
-
certificatesigningrequests/selfnodeclient
-
certificatesigningrequests/selfnodeclient
verbs
:
verbs
:
-
create
-
create
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -413,7 +413,7 @@ items:
...
@@ -413,7 +413,7 @@ items:
-
/version
-
/version
verbs
:
verbs
:
-
get
-
get
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -442,7 +442,7 @@ items:
...
@@ -442,7 +442,7 @@ items:
-
get
-
get
-
list
-
list
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -461,7 +461,7 @@ items:
...
@@ -461,7 +461,7 @@ items:
-
get
-
get
-
list
-
list
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -523,7 +523,7 @@ items:
...
@@ -523,7 +523,7 @@ items:
verbs
:
verbs
:
-
list
-
list
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -541,7 +541,7 @@ items:
...
@@ -541,7 +541,7 @@ items:
verbs
:
verbs
:
-
list
-
list
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -632,7 +632,7 @@ items:
...
@@ -632,7 +632,7 @@ items:
-
get
-
get
-
list
-
list
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -751,7 +751,7 @@ items:
...
@@ -751,7 +751,7 @@ items:
-
get
-
get
-
list
-
list
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -770,7 +770,7 @@ items:
...
@@ -770,7 +770,7 @@ items:
-
get
-
get
-
list
-
list
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -800,7 +800,7 @@ items:
...
@@ -800,7 +800,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -832,7 +832,7 @@ items:
...
@@ -832,7 +832,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -883,7 +883,7 @@ items:
...
@@ -883,7 +883,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-role-bindings.yaml
View file @
a9f57e90
apiVersion
:
v1
apiVersion
:
v1
items
:
items
:
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -17,7 +17,7 @@ items:
...
@@ -17,7 +17,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
attachdetach-controller
name
:
attachdetach-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -34,7 +34,7 @@ items:
...
@@ -34,7 +34,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
certificate-controller
name
:
certificate-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -51,7 +51,7 @@ items:
...
@@ -51,7 +51,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
cronjob-controller
name
:
cronjob-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -68,7 +68,7 @@ items:
...
@@ -68,7 +68,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
daemon-set-controller
name
:
daemon-set-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -85,7 +85,7 @@ items:
...
@@ -85,7 +85,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
deployment-controller
name
:
deployment-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -102,7 +102,7 @@ items:
...
@@ -102,7 +102,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
disruption-controller
name
:
disruption-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -119,7 +119,7 @@ items:
...
@@ -119,7 +119,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
endpoint-controller
name
:
endpoint-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -136,7 +136,7 @@ items:
...
@@ -136,7 +136,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
generic-garbage-collector
name
:
generic-garbage-collector
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -153,7 +153,7 @@ items:
...
@@ -153,7 +153,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
horizontal-pod-autoscaler
name
:
horizontal-pod-autoscaler
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -170,7 +170,7 @@ items:
...
@@ -170,7 +170,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
job-controller
name
:
job-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -187,7 +187,7 @@ items:
...
@@ -187,7 +187,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
namespace-controller
name
:
namespace-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -204,7 +204,7 @@ items:
...
@@ -204,7 +204,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
node-controller
name
:
node-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -221,7 +221,7 @@ items:
...
@@ -221,7 +221,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
persistent-volume-binder
name
:
persistent-volume-binder
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -238,7 +238,7 @@ items:
...
@@ -238,7 +238,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
pod-garbage-collector
name
:
pod-garbage-collector
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -255,7 +255,7 @@ items:
...
@@ -255,7 +255,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
replicaset-controller
name
:
replicaset-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -272,7 +272,7 @@ items:
...
@@ -272,7 +272,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
replication-controller
name
:
replication-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -289,7 +289,7 @@ items:
...
@@ -289,7 +289,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
resourcequota-controller
name
:
resourcequota-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -306,7 +306,7 @@ items:
...
@@ -306,7 +306,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
route-controller
name
:
route-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -323,7 +323,7 @@ items:
...
@@ -323,7 +323,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
service-account-controller
name
:
service-account-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -340,7 +340,7 @@ items:
...
@@ -340,7 +340,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
service-controller
name
:
service-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -357,7 +357,7 @@ items:
...
@@ -357,7 +357,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
statefulset-controller
name
:
statefulset-controller
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
kind
:
ClusterRoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-roles.yaml
View file @
a9f57e90
apiVersion
:
v1
apiVersion
:
v1
items
:
items
:
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -48,7 +48,7 @@ items:
...
@@ -48,7 +48,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -87,7 +87,7 @@ items:
...
@@ -87,7 +87,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -139,7 +139,7 @@ items:
...
@@ -139,7 +139,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -207,7 +207,7 @@ items:
...
@@ -207,7 +207,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -263,7 +263,7 @@ items:
...
@@ -263,7 +263,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -328,7 +328,7 @@ items:
...
@@ -328,7 +328,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -371,7 +371,7 @@ items:
...
@@ -371,7 +371,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -400,7 +400,7 @@ items:
...
@@ -400,7 +400,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -479,7 +479,7 @@ items:
...
@@ -479,7 +479,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -522,7 +522,7 @@ items:
...
@@ -522,7 +522,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -557,7 +557,7 @@ items:
...
@@ -557,7 +557,7 @@ items:
-
deletecollection
-
deletecollection
-
get
-
get
-
list
-
list
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -605,7 +605,7 @@ items:
...
@@ -605,7 +605,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -701,7 +701,7 @@ items:
...
@@ -701,7 +701,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -725,7 +725,7 @@ items:
...
@@ -725,7 +725,7 @@ items:
-
nodes
-
nodes
verbs
:
verbs
:
-
list
-
list
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -768,7 +768,7 @@ items:
...
@@ -768,7 +768,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -811,7 +811,7 @@ items:
...
@@ -811,7 +811,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -842,7 +842,7 @@ items:
...
@@ -842,7 +842,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -873,7 +873,7 @@ items:
...
@@ -873,7 +873,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -897,7 +897,7 @@ items:
...
@@ -897,7 +897,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -936,7 +936,7 @@ items:
...
@@ -936,7 +936,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -1004,7 +1004,7 @@ items:
...
@@ -1004,7 +1004,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
kind
:
ClusterRole
metadata
:
metadata
:
annotations
:
annotations
:
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/namespace-role-bindings.yaml
View file @
a9f57e90
apiVersion
:
v1
apiVersion
:
v1
items
:
items
:
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
kind
:
RoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -18,7 +18,7 @@ items:
...
@@ -18,7 +18,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
bootstrap-signer
name
:
bootstrap-signer
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
kind
:
RoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -36,7 +36,7 @@ items:
...
@@ -36,7 +36,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
kube-controller-manager
name
:
kube-controller-manager
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
kind
:
RoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -54,7 +54,7 @@ items:
...
@@ -54,7 +54,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
kube-scheduler
name
:
kube-scheduler
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
kind
:
RoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -72,7 +72,7 @@ items:
...
@@ -72,7 +72,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
bootstrap-signer
name
:
bootstrap-signer
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
kind
:
RoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -90,7 +90,7 @@ items:
...
@@ -90,7 +90,7 @@ items:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
cloud-provider
name
:
cloud-provider
namespace
:
kube-system
namespace
:
kube-system
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
kind
:
RoleBinding
metadata
:
metadata
:
annotations
:
annotations
:
...
...
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/namespace-roles.yaml
View file @
a9f57e90
apiVersion
:
v1
apiVersion
:
v1
items
:
items
:
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
kind
:
Role
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -35,7 +35,7 @@ items:
...
@@ -35,7 +35,7 @@ items:
-
create
-
create
-
patch
-
patch
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
kind
:
Role
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -54,7 +54,7 @@ items:
...
@@ -54,7 +54,7 @@ items:
-
configmaps
-
configmaps
verbs
:
verbs
:
-
get
-
get
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
kind
:
Role
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -80,7 +80,7 @@ items:
...
@@ -80,7 +80,7 @@ items:
verbs
:
verbs
:
-
get
-
get
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
kind
:
Role
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -106,7 +106,7 @@ items:
...
@@ -106,7 +106,7 @@ items:
verbs
:
verbs
:
-
get
-
get
-
update
-
update
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
kind
:
Role
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -125,7 +125,7 @@ items:
...
@@ -125,7 +125,7 @@ items:
-
get
-
get
-
list
-
list
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
kind
:
Role
metadata
:
metadata
:
annotations
:
annotations
:
...
@@ -145,7 +145,7 @@ items:
...
@@ -145,7 +145,7 @@ items:
-
get
-
get
-
list
-
list
-
watch
-
watch
-
apiVersion
:
rbac.authorization.k8s.io/v1
beta1
-
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
Role
kind
:
Role
metadata
:
metadata
:
annotations
:
annotations
:
...
...
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