shoot

package
v1.136.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HandlerName is the name of this authorization webhook handler.
	HandlerName = "shootauthorizer"
	// WebhookPath is the HTTP handler path for this authorization webhook handler.
	WebhookPath = "/webhooks/auth/shoot"
)

Variables

This section is empty.

Functions

func NewAuthorizer

func NewAuthorizer(logger logr.Logger, c client.Client, graph graph.Interface, authorizeWithSelectors authorizerwebhook.WithSelectorsChecker) *authorizer

NewAuthorizer returns a new authorizer for requests from gardenlets running in self-hosted shoots.

Types

type Webhook

type Webhook struct {
	Logger    logr.Logger
	ClientSet kubernetes.Interface
	Handler   http.Handler
}

Webhook represents the webhook of Shoot Authorizer.

func (*Webhook) AddToManager

func (w *Webhook) AddToManager(ctx context.Context, mgr manager.Manager, enableDebugHandlers *bool) error

AddToManager adds Handler to the given manager.

Jump to

Keyboard shortcuts

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