Documentation ¶
Index ¶
- type WebhookHandler
- func (wh *WebhookHandler) Handle(ctx context.Context, req admission.Request) admission.Response
- func (wh *WebhookHandler) InjectDecoder(d *admission.Decoder) error
- func (wh WebhookHandler) MutateTLSConfig(cfg *tls.Config)
- func (wh *WebhookHandler) ValidateCreate(ctx context.Context, dryrun bool, hc *v1beta1.HyperConverged) error
- func (wh WebhookHandler) ValidateDelete(ctx context.Context, dryrun bool, hc *v1beta1.HyperConverged) error
- func (wh *WebhookHandler) ValidateUpdate(extCtx context.Context, dryrun bool, requested *v1beta1.HyperConverged, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookHandler ¶
type WebhookHandler struct {
// contains filtered or unexported fields
}
func NewWebhookHandler ¶
func NewWebhookHandler(logger logr.Logger, cli client.Client, namespace string, isOpenshift bool, hcoTlsSecurityProfile *openshiftconfigv1.TLSSecurityProfile) *WebhookHandler
func (*WebhookHandler) InjectDecoder ¶ added in v1.8.0
func (wh *WebhookHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder. WebhookHandler implements admission.DecoderInjector so a decoder will be automatically injected.
func (WebhookHandler) MutateTLSConfig ¶ added in v1.8.0
func (wh WebhookHandler) MutateTLSConfig(cfg *tls.Config)
func (*WebhookHandler) ValidateCreate ¶
func (wh *WebhookHandler) ValidateCreate(ctx context.Context, dryrun bool, hc *v1beta1.HyperConverged) error
func (WebhookHandler) ValidateDelete ¶
func (wh WebhookHandler) ValidateDelete(ctx context.Context, dryrun bool, hc *v1beta1.HyperConverged) error
func (*WebhookHandler) ValidateUpdate ¶
func (wh *WebhookHandler) ValidateUpdate(extCtx context.Context, dryrun bool, requested *v1beta1.HyperConverged, exists *v1beta1.HyperConverged) error
ValidateUpdate is the ValidateUpdate webhook implementation. It calls all the resources in parallel, to dry-run the upgrade.
Click to show internal directories.
Click to hide internal directories.