Documentation ¶
Index ¶
- Constants
- func IsInvalidConfig(err error) bool
- func IsParsingFailed(err error) bool
- func IsPspRemoval(err error) bool
- type Mutator
- func (m *Mutator) Debugf(ctx context.Context, format string, params ...interface{})
- func (m *Mutator) Errorf(ctx context.Context, err error, format string, params ...interface{})
- func (m *Mutator) Mutate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateApp(ctx context.Context, oldApp, app v1alpha1.App, operation admissionv1.Operation) ([]mutator.PatchOperation, error)
- func (m *Mutator) Resource() string
- type MutatorConfig
- type Validator
- func (v *Validator) Debugf(ctx context.Context, format string, params ...interface{})
- func (v *Validator) Errorf(ctx context.Context, err error, format string, params ...interface{})
- func (v *Validator) Resource() string
- func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
- type ValidatorConfig
Constants ¶
View Source
const (
Name = "app"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsParsingFailed ¶
IsParsingFailed asserts parsingFailedError.
func IsPspRemoval ¶ added in v0.21.0
IsPspRemoval asserts pspRemovalError.
Types ¶
type Mutator ¶
type Mutator struct {
// contains filtered or unexported fields
}
func NewMutator ¶
func NewMutator(config MutatorConfig) (*Mutator, error)
func (*Mutator) Mutate ¶
func (m *Mutator) Mutate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
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) Validate ¶
func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
Click to show internal directories.
Click to hide internal directories.