Documentation ¶
Index ¶
Constants ¶
View Source
const (
InvalidSnapshotErrMessage = "validation is disabled due to an invalid resource which has been written to storage. " +
"Please correct any Rejected resources to re-enable validation."
)
Variables ¶
View Source
var ( NotReadyErr = errors.Errorf("validation is yet not available. Waiting for first snapshot") RouteTableDeleteErr = func(parentVirtualServices, parentRouteTables []core.ResourceRef) error { return errors.Errorf("Deletion blocked because active Routes delegate to this Route Table. Remove delegate actions to this route table the virtual services: %v and the route tables: %v, then try again", parentVirtualServices, parentRouteTables) } VirtualServiceDeleteErr = func(parentGateways []core.ResourceRef) error { return errors.Errorf("Deletion blocked because active Gateways reference this Virtual Service. Remove refs to this virtual service from the gateways: %v, then try again", parentGateways) } )
Functions ¶
func NewValidator ¶
func NewValidator(translator translator.Translator, validationClient validation.ProxyValidationServiceClient, writeNamespace string) *validator
Types ¶
type Validator ¶
type Validator interface { v2.ApiSyncer Ready() bool ValidateGateway(ctx context.Context, gw *v2.Gateway) error ValidateVirtualService(ctx context.Context, vs *v1.VirtualService) error ValidateDeleteVirtualService(ctx context.Context, vs core.ResourceRef) error ValidateRouteTable(ctx context.Context, rt *v1.RouteTable) error ValidateDeleteRouteTable(ctx context.Context, rt core.ResourceRef) error }
Click to show internal directories.
Click to hide internal directories.