globalrolebinding

package
v0.5.8-rc.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package globalrolebinding holds admission logic for the v3 management.cattle.io.globalrolebindings CRD.

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(grCache v3.GlobalRoleCache) *Mutator

NewMutator returns a new mutator for GlobalRoleBindings.

func (*Mutator) Admit

Admit handles the webhook admission request sent to this webhook. If this function is called without NewMutator(..) calls will panic.

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 is used to validate operations to GlobalRoleBindings.

func NewValidator

NewValidator returns a new validator for GlobalRoleBindings.

func (*Validator) Admitters

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

Admitters returns the admitter objects used to validate globalRoleBindings.

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