projectedtokenmount

package
v1.105.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HandlerName is the name of the webhook handler.
	HandlerName = "projected-token-mount"
	// WebhookPath is the path at which the handler should be registered.
	WebhookPath = "/webhooks/mount-projected-service-account-token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v1.59.0

type Handler struct {
	Logger            logr.Logger
	TargetReader      client.Reader
	ExpirationSeconds int64
}

Handler handles admission requests and configures volumes and mounts for projected ServiceAccount tokens in Pod resources.

func (*Handler) AddToManager added in v1.59.0

func (h *Handler) AddToManager(mgr manager.Manager) error

AddToManager adds Handler to the given manager.

func (*Handler) Default added in v1.59.0

func (h *Handler) Default(ctx context.Context, obj runtime.Object) error

Default defaults the volumes and mounts for the projected ServiceAccount token of the provided pod.

Jump to

Keyboard shortcuts

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