Help us shape the future of Go! Take the 2026 Go Developer Survey

shoot

package
v1.153.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 39 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, seedAuthorizer auth.Authorizer) *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, seedAuthorizer auth.Authorizer) 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