Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HandlerBuilderMap HandlerMap contains admission webhook handlers builder HandlerBuilderMap = map[string]framework.HandlerBuilder{ "validate-configmap": &cmBuilder{}, } )
Functions ¶
Types ¶
type ConfigMapValidatingHandler ¶
type ConfigMapValidatingHandler struct { Client client.Client // Decoder decodes objects Decoder *admission.Decoder }
func NewConfigMapValidatingHandler ¶
func NewConfigMapValidatingHandler(c client.Client, d *admission.Decoder) *ConfigMapValidatingHandler
func (*ConfigMapValidatingHandler) Handle ¶
func (h *ConfigMapValidatingHandler) Handle(ctx context.Context, req admission.Request) (resp admission.Response)
Handle handles admission requests.
func (*ConfigMapValidatingHandler) InjectClient ¶
func (h *ConfigMapValidatingHandler) InjectClient(c client.Client) error
InjectClient injects the client into the ValidatingHandler
func (*ConfigMapValidatingHandler) InjectDecoder ¶
func (h *ConfigMapValidatingHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the ValidatingHandler
Click to show internal directories.
Click to hide internal directories.