webhook

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthValidator added in v1.1.2

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

AuthValidator validates the authority

func NewAuthValidator added in v1.1.2

func NewAuthValidator(enabled bool, client client.Client, reader client.Reader, authCli *authorizationv1.AuthorizationV1Client,
	clusterScoped bool, targetNamespace string, enableFilterNamespace bool) *AuthValidator

NewAuthValidator returns a new AuthValidator

func (*AuthValidator) Handle added in v1.1.2

AuthValidator admits a pod iff a specific annotation exists.

func (*AuthValidator) InjectDecoder added in v1.1.2

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

InjectDecoder injects the decoder.

type PodInjector

type PodInjector struct {
	Config        *config.Config
	ControllerCfg *controllerCfg.ChaosControllerConfig
	Metrics       *metrics.ChaosCollector
	// contains filtered or unexported fields
}

PodInjector is pod template config injector

func (*PodInjector) Handle

Handle is pod injector handler

func (*PodInjector) InjectClient

func (v *PodInjector) InjectClient(c client.Client) error

InjectClient is pod injector client

func (*PodInjector) InjectDecoder

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

InjectDecoder is pod injector decoder

Jump to

Keyboard shortcuts

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