validator

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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) Handle added in v1.8.0

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.

Jump to

Keyboard shortcuts

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