seedadmission

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 21 Imported by: 0

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.
	// Note: In the future we might want to have additional scheduler names
	// so lets have the handler be of pattern "/webhooks/default-pod-scheduler-name/{scheduler-name}"
	GardenerShootControlPlaneSchedulerWebhookPath = "/webhooks/default-pod-scheduler-name/" + GardenerShootControlPlaneSchedulerName
	// ExtensionDeletionProtectionWebhookPath is the path of the webhook endpoint
	// that validates DELETE requests for extension CRDs and extension
	// resources, that are marked for deletion protection (`gardener.cloud/deletion-protected`).
	ExtensionDeletionProtectionWebhookPath = "/webhooks/validate-extension-crd-deletion"
)

Variables

This section is empty.

Functions

func DefaultShootControlPlanePodsSchedulerName added in v1.16.0

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.

Types

type ExtensionDeletionProtection added in v1.17.0

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

ExtensionDeletionProtection is a webhook handler validating DELETE requests for extension CRDs and extension resources, that are marked for deletion protection (`gardener.cloud/deletion-protected`).

func (*ExtensionDeletionProtection) Handle added in v1.17.0

Handle implements the webhook handler for extension deletion protection.

func (*ExtensionDeletionProtection) InjectAPIReader added in v1.17.0

func (h *ExtensionDeletionProtection) InjectAPIReader(reader client.Reader) error

InjectAPIReader injects a reader into the handler.

func (*ExtensionDeletionProtection) InjectDecoder added in v1.17.0

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

InjectDecoder injects a decoder capable of decoding objects included in admission requests.

func (*ExtensionDeletionProtection) InjectLogger added in v1.17.0

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

InjectLogger inject a logger into the handler.

Jump to

Keyboard shortcuts

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