package policybased

import "k8s.io/kubernetes/pkg/registry/rbac/clusterrolebinding/policybased"

Package policybased implements a standard storage for ClusterRoleBinding that prevents privilege escalation.

Index

Types

type Storage

type Storage struct {
	rest.StandardStorage
	// contains filtered or unexported fields
}

func NewStorage

func (*Storage) Create

func (s *Storage) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (*Storage) Destroy

func (r *Storage) Destroy()

Destroy cleans up resources on shutdown.

func (*Storage) GetSingularName

func (s *Storage) GetSingularName() string

func (*Storage) NamespaceScoped

func (r *Storage) NamespaceScoped() bool

func (*Storage) StorageVersion

func (r *Storage) StorageVersion() runtime.GroupVersioner

func (*Storage) Update

func (s *Storage) Update(ctx context.Context, name string, obj rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)

Source Files

storage.go

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

Tools for package owners.