shootkubeconfigsecretref

package
v1.107.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HandlerName is the name of this admission webhook handler.
	HandlerName = "shootkubeconfigsecretref_validator"
	// WebhookPath is the HTTP handler path for this admission webhook handler.
	WebhookPath = "/webhooks/validate-shoot-kubeconfig-secret-ref"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Logger logr.Logger
	Client client.Reader
}

Handler validates shoot kubeconfig secrets.

func (*Handler) AddToManager

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

AddToManager adds Handler to the given manager.

func (*Handler) ValidateCreate

func (h *Handler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateCreate returns nil (not implemented by this handler).

func (*Handler) ValidateDelete

func (h *Handler) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)

ValidateDelete returns nil (not implemented by this handler).

func (*Handler) ValidateUpdate

func (h *Handler) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate validates that the kubeconfig is not removed from kubeconfig secrets referenced in Shoot resources.

Jump to

Keyboard shortcuts

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