Documentation ¶
Index ¶
Constants ¶
View Source
const ( // HandlerName is the name of this admission webhook handler. HandlerName = "kubeconfig_validator" // WebhookPath is the HTTP handler path for this admission webhook handler. WebhookPath = "/webhooks/validate-kubeconfig-secrets" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶ added in v1.60.0
Handler checks, if the secrets contains a kubeconfig and denies kubeconfigs with invalid fields (e.g. tokenFile or exec).
func (*Handler) AddToManager ¶ added in v1.60.0
AddToManager adds Handler to the given manager.
func (*Handler) ValidateCreate ¶ added in v1.60.0
ValidateCreate performs the check.
func (*Handler) ValidateDelete ¶ added in v1.60.0
ValidateDelete returns nil (not implemented by this handler).
Click to show internal directories.
Click to hide internal directories.