mutation

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmissionReview

type AdmissionReview interface {
	GetObject() (metaV1.Object, error)
	GetRawObject() []byte
	SetError(err error)
	ToSerializeable() interface{}
	SetPatches(patches []jsonpatch.Operation) error
	IsDryRun() bool
	GetStatus() int
}

func NewAdmissionReview

func NewAdmissionReview(body []byte) (AdmissionReview, error)

type Mutator

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

func NewMutator

func NewMutator(rules relabel.Relabeler, logger *slog.Logger) *Mutator

func (*Mutator) Mutate

func (m *Mutator) Mutate(req AdmissionReview)

Jump to

Keyboard shortcuts

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