Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HandlerName is the name of this admission webhook handler. HandlerName = "token-review" // WebhookPath is the HTTP handler path for this admission webhook handler. WebhookPath = "/validate-authentication-k8s-io-v1-tokenreview" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// Logger is a logger.
Logger logr.Logger
// Client is the controller-runtime Kubernetes client.
Client client.Client
// Config is the Keystone configuration.
Config config.PersephoneConfig
// ReconcileGardenerProjectResources specifies whether the Gardener project-related resources should be reconciled
// after successful token validation.
ReconcileGardenerProjectResources bool
// contains filtered or unexported fields
}
func (*Handler) AddToManager ¶
AddToManager adds Handler to the given manager.
func (*Handler) Handle ¶
func (h *Handler) Handle(ctx context.Context, request authentication.Request) authentication.Response
Click to show internal directories.
Click to hide internal directories.