mutator

package
v0.0.0-...-223ca90 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MutatorName = "mutator"
	MutatorPath = "/webhooks/mutate"
)

Variables

This section is empty.

Functions

func GetAutoUpdateVersion

func GetAutoUpdateVersion(versions map[string]profile.Version) (*string, error)

func GetForceUpdateVersion

func GetForceUpdateVersion(version string, versions map[string]profile.Version) (*string, error)

func New

New creates a new webhook that validates Shoot resources.

func NewShootMutator

func NewShootMutator(mgr manager.Manager) extensionswebhook.Mutator

NewShootMutator returns a new instance of a shoot mutator.

Types

type Shoot

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

shoot mutates shoots

func NewShoot

func NewShoot(mgr manager.Manager) *Shoot

func (*Shoot) ExtractFalcoConfig

func (s *Shoot) ExtractFalcoConfig(shoot *gardencorev1beta1.Shoot) (*service.FalcoServiceConfig, error)

func (*Shoot) Mutate

func (s *Shoot) Mutate(ctx context.Context, new, _ client.Object) error

Mutate implements extensionswebhook.Mutator.Mutate

func (*Shoot) UpdateFalcoConfig

func (s *Shoot) UpdateFalcoConfig(shoot *gardencorev1beta1.Shoot, config *service.FalcoServiceConfig) error

Jump to

Keyboard shortcuts

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