...

Package webhook

import "github.com/chaos-mesh/chaos-mesh/pkg/webhook"
Overview
Index

Overview ▾

type AuthValidator

AuthValidator validates the authority

type AuthValidator struct {
    // contains filtered or unexported fields
}

func NewAuthValidator

func NewAuthValidator(enabled bool, authCli *authorizationv1.AuthorizationV1Client, decoderScheme *runtime.Scheme,
    clusterScoped bool, targetNamespace string, enableFilterNamespace bool, logger logr.Logger) *AuthValidator

NewAuthValidator returns a new AuthValidator

func (*AuthValidator) Handle

func (v *AuthValidator) Handle(ctx context.Context, req admission.Request) admission.Response

AuthValidator admits a pod iff a specific annotation exists.