rest

package
v0.0.0-...-76823b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const PostStartHookName = "rbac/bootstrap-roles"

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyData

type PolicyData struct {
	ClusterRoles        []rbacapiv1.ClusterRole
	ClusterRoleBindings []rbacapiv1.ClusterRoleBinding
	Roles               map[string][]rbacapiv1.Role
	RoleBindings        map[string][]rbacapiv1.RoleBinding
	// ClusterRolesToAggregate maps from previous clusterrole name to the new clusterrole name
	ClusterRolesToAggregate map[string]string
	// ClusterRoleBindingsToSplit maps from previous ClusterRoleBinding Name to a template for the new ClusterRoleBinding
	ClusterRoleBindingsToSplit map[string]rbacapiv1.ClusterRoleBinding
}

func (*PolicyData) EnsureRBACPolicy

func (p *PolicyData) EnsureRBACPolicy() genericapiserver.PostStartHookFunc

type RESTStorageProvider

type RESTStorageProvider struct {
	Authorizer authorizer.Authorizer
}

func (RESTStorageProvider) GroupName

func (p RESTStorageProvider) GroupName() string

func (RESTStorageProvider) NewRESTStorage

func (p RESTStorageProvider) NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter) (genericapiserver.APIGroupInfo, bool)

func (RESTStorageProvider) PostStartHook

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL