app

package
v0.24.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name = "app"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsParsingFailed

func IsParsingFailed(err error) bool

IsParsingFailed asserts parsingFailedError.

func IsPspRemoval added in v0.21.0

func IsPspRemoval(err error) bool

IsPspRemoval asserts pspRemovalError.

Types

type Mutator

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

func NewMutator

func NewMutator(config MutatorConfig) (*Mutator, error)

func (*Mutator) Debugf added in v0.3.0

func (m *Mutator) Debugf(ctx context.Context, format string, params ...interface{})

func (*Mutator) Errorf added in v0.3.0

func (m *Mutator) Errorf(ctx context.Context, err error, format string, params ...interface{})

func (*Mutator) Mutate

func (*Mutator) MutateApp

func (m *Mutator) MutateApp(ctx context.Context, oldApp, app v1alpha1.App, operation admissionv1.Operation) ([]mutator.PatchOperation, error)

func (*Mutator) Resource

func (m *Mutator) Resource() string

type MutatorConfig

type MutatorConfig struct {
	K8sClient     k8sclient.Interface
	Logger        micrologger.Logger
	Provider      string
	ConfigPatches []config.ConfigPatch
}

type Validator

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

func NewValidator

func NewValidator(config ValidatorConfig) (*Validator, error)

func (*Validator) Debugf added in v0.3.0

func (v *Validator) Debugf(ctx context.Context, format string, params ...interface{})

func (*Validator) Errorf added in v0.3.0

func (v *Validator) Errorf(ctx context.Context, err error, format string, params ...interface{})

func (*Validator) Resource

func (v *Validator) Resource() string

func (*Validator) Validate

func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)

type ValidatorConfig

type ValidatorConfig struct {
	Event     recorder.Interface
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger

	Provider  string
	Inspector *secins.Inspector
}

Jump to

Keyboard shortcuts

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