namespace

package
v0.6.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package namespace holds the Admitters and Validator for webhook validation of requests modifying namespace objects.

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 validates the namespace admission request.

func NewValidator

NewValidator returns a new validator used for validation of namespace requests.

func (*Validator) Admitters

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

Admitters returns the psaAdmitter and the projectNamespaceAdmitter for namespaces.

func (*Validator) GVR

GVR returns the GroupVersionKind for this CRD.

func (*Validator) Operations

func (v *Validator) Operations() []admissionv1.OperationType

Operations returns list of operations handled by this validator.

func (*Validator) ValidatingWebhook

func (v *Validator) ValidatingWebhook(clientConfig admissionv1.WebhookClientConfig) []admissionv1.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