AuthValidator validates the authority
type AuthValidator struct {
// contains filtered or unexported fields
}
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 (v *AuthValidator) Handle(ctx context.Context, req admission.Request) admission.Response
AuthValidator admits a pod iff a specific annotation exists.