mutation

package
v2.23.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmissionHandler

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

AdmissionHandler for mutating Kubermatic Cluster CRD.

func NewAdmissionHandler

func NewAdmissionHandler(client ctrlruntimeclient.Client, configGetter provider.KubermaticConfigurationGetter, seedGetter provider.SeedGetter, caBundle *x509.CertPool) *AdmissionHandler

NewAdmissionHandler returns a new cluster AdmissionHandler.

func (*AdmissionHandler) Handle

func (*AdmissionHandler) InjectDecoder

func (h *AdmissionHandler) InjectDecoder(d *admission.Decoder) error

func (*AdmissionHandler) InjectLogger

func (h *AdmissionHandler) InjectLogger(l logr.Logger) error

func (*AdmissionHandler) SetupWebhookWithManager

func (h *AdmissionHandler) SetupWebhookWithManager(mgr ctrlruntime.Manager)

type Mutator added in v2.22.0

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

Mutator for mutating Kubermatic Cluster CRD.

func NewMutator added in v2.22.0

func NewMutator(client ctrlruntimeclient.Client, configGetter provider.KubermaticConfigurationGetter, seedGetter provider.SeedGetter, caBundle *x509.CertPool) *Mutator

NewAdmissionHandler returns a new cluster AdmissionHandler.

func (*Mutator) Mutate added in v2.22.0

func (m *Mutator) Mutate(ctx context.Context, oldCluster, newCluster *kubermaticv1.Cluster) (*kubermaticv1.Cluster, *field.Error)

Jump to

Keyboard shortcuts

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