kubernetesk8s.io/kubernetes/pkg/registry/rbac/rest Index | Files

package rest

import "k8s.io/kubernetes/pkg/registry/rbac/rest"

Index

Constants

const PostStartHookName = "rbac/bootstrap-roles"

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, error)

func (RESTStorageProvider) PostStartHook

Source Files

storage_rbac.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
35 packages
Last checked
6 hours ago

Tools for package owners.