Documentation ¶
Index ¶
- Constants
- func DefaultShootControlPlanePodsSchedulerName(_ context.Context, request admission.Request) admission.Response
- type ExtensionDeletionProtection
- func (h *ExtensionDeletionProtection) Handle(ctx context.Context, request admission.Request) admission.Response
- func (h *ExtensionDeletionProtection) InjectAPIReader(reader client.Reader) error
- func (h *ExtensionDeletionProtection) InjectDecoder(d *admission.Decoder) error
- func (h *ExtensionDeletionProtection) InjectLogger(l logr.Logger) error
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
func (h *ExtensionDeletionProtection) Handle(ctx context.Context, request admission.Request) admission.Response
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.
Click to show internal directories.
Click to hide internal directories.