secret

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutator

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

Mutator implements admission.MutatingAdmissionWebhook.

func NewMutator

func NewMutator(roleController v1.RoleController, roleBindingController v1.RoleBindingController) *Mutator

NewMutator returns a new mutator which mutates secret objects, and related resources

func (*Mutator) Admit

Admit is the entrypoint for the mutator. Admit will return an error if it unable to process the request.

func (*Mutator) GVR

GVR returns the GroupVersionKind for this CRD.

func (*Mutator) MutatingWebhook

MutatingWebhook returns the MutatingWebhook used for this CRD.

func (*Mutator) Operations

func (m *Mutator) Operations() []admissionregistrationv1.OperationType

Operations returns list of operations handled by this mutator.

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 orphan those RBAC resources.

func (*Validator) Admitters

func (v *Validator) Admitters() []admission.Admitter

Admitters returns the admitter objects used to validate secrets.

func (*Validator) GVR

GVR returns the GroupVersionKind for this CRD.

func (*Validator) Operations

Operations returns list of operations handled by this validator.

func (*Validator) ValidatingWebhook

ValidatingWebhook returns the ValidatingWebhook used for this CRD.

Jump to

Keyboard shortcuts

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