admission

package
v0.0.0-...-b39e775 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataReport

type MetadataReport struct {
	admissionv1.AdmissionRequest
	NamespaceMetadata map[string]any `json:"namespaceMetadata,omitempty"`
}

type Mutator

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

Mutator is the entry point for the admission webhook.

func (*Mutator) Handle

Handle for Validator to run validation checks.

func (*Mutator) InjectConfig

func (m *Mutator) InjectConfig(c models.Configuration) error

InjectConfig injects the config.

type Validator

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

Validator is the entry point for the admission webhook.

func NewValidator

func NewValidator(clientset *kubernetes.Clientset, iConfig models.InsightsConfig) *Validator

func (*Validator) Handle

Handle for Validator to run validation checks.

func (*Validator) InjectConfig

func (v *Validator) InjectConfig(c models.Configuration) error

InjectConfig injects the config.

func (*Validator) InjectDecoder

func (v *Validator) InjectDecoder(d admission.Decoder) error

InjectDecoder injects the decoder.

func (*Validator) SetWebhookFailurePolicy

func (v *Validator) SetWebhookFailurePolicy(s string) bool

SetWebhookFailurePolicy parses a string into one of the webhookFailurePolicy* constants and sets the webhookFailurePolicy field of the Validator struct. SetWebhookFailurePolicy returns true if the string is parsed successfully.

Jump to

Keyboard shortcuts

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