Documentation

Index

Constants

View Source
const (
	// GardenerShootControlPlaneSchedulerName is the name of the scheduler used for
	// shoot control plane pods.
	GardenerShootControlPlaneSchedulerName = "gardener-shoot-controlplane-scheduler"
	// GardenerShootControlPlaneSchedulerWebhookPath is the path of the webhook server
	// that sets the "gardener-shoot-controlplane-scheduler" schedulerName for Pods.
	GardenerShootControlPlaneSchedulerWebhookPath = "/webhooks/default-pod-scheduler-name/" + GardenerShootControlPlaneSchedulerName
)

Variables

This section is empty.

Functions

func DefaultShootControlPlanePodsSchedulerName

func DefaultShootControlPlanePodsSchedulerName(_ context.Context, request admission.Request) admission.Response

DefaultShootControlPlanePodsSchedulerName is a webhook handler that sets "gardener-shoot-controlplane-scheduler" as schedulerName on shoot control plane Pods.

func NewExtensionDeletionProtection

func NewExtensionDeletionProtection(logger logrus.FieldLogger) admission.Handler

NewExtensionDeletionProtection creates a new handler validating DELETE requests for extension CRDs and extension resources, that are marked for deletion protection (`gardener.cloud/deletion-protected`). TODO: remove this constructor in favor of InjectLogger once we have switched to logr.

Types

This section is empty.