Merge pull request #34019 from deads2k/rbac-12-default-bindings

Automatic merge from submit-queue

Add default cluster role bindings

Add default cluster roles bindings to rbac bootstrapping.  Also adds a case for allowing escalation when you have no authenticator.

@liggitt I expect you may need to make peace with this.
This commit is contained in:
Kubernetes Submit Queue
2016-10-10 23:53:34 -07:00
committed by GitHub
11 changed files with 188 additions and 71 deletions

View File

@@ -5004,6 +5004,23 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
Dependencies: []string{
"api.ObjectMeta", "rbac.RoleRef", "rbac.Subject", "unversioned.TypeMeta"},
},
"rbac.ClusterRoleBindingBuilder": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ClusterRoleBindingBuilder let's us attach methods. A no-no for API types. We use it to construct bindings in code. It's more compact than trying to write them out in a literal.",
Properties: map[string]spec.Schema{
"ClusterRoleBinding": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/rbac.ClusterRoleBinding"),
},
},
},
Required: []string{"ClusterRoleBinding"},
},
},
Dependencies: []string{
"rbac.ClusterRoleBinding"},
},
"rbac.ClusterRoleBindingList": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{