secret

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator implements admission.ValidatingAdmissionWebhook.

func NewValidator

func NewValidator(roleCache v1.RoleCache, roleBindingCache v1.RoleBindingCache) *Validator

NewValidator creates a new secret validator which ensures secrets which own rbac objects aren't deleted with options to oprhan those RBAC resources

func (*Validator) Admit

func (v *Validator) Admit(response *webhook.Response, request *webhook.Request) error

Jump to

Keyboard shortcuts

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