Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoGatewayChecker ¶
type NoGatewayChecker struct {
VirtualService kubernetes.IstioObject
GatewayNames map[string]struct{}
}
func (NoGatewayChecker) Check ¶
func (s NoGatewayChecker) Check() ([]*models.IstioCheck, bool)
Check validates that all the VirtualServices are pointing to an existing Gateway
type NoHostChecker ¶
type NoHostChecker struct {
Namespace string
ServiceNames []string
VirtualService kubernetes.IstioObject
ServiceEntryHosts map[string][]string
}
func (NoHostChecker) Check ¶
func (n NoHostChecker) Check() ([]*models.IstioCheck, bool)
type RouteChecker ¶
type RouteChecker struct {
Route kubernetes.IstioObject
}
func (RouteChecker) Check ¶
func (route RouteChecker) Check() ([]*models.IstioCheck, bool)
Check returns both an array of IstioCheck and a boolean indicating if the current route rule is valid. The array of IstioChecks contains the result of running the following validations: 1. All weights with a numeric number. 2. All weights have value between 0 and 100. 3. Sum of all weights are 100 (if only one weight, then it assumes that is 100). 4. All the route has to have weight label.
type SingleHostChecker ¶
type SingleHostChecker struct {
Namespace string
VirtualServices []kubernetes.IstioObject
}
func (SingleHostChecker) Check ¶
func (in SingleHostChecker) Check() models.IstioValidations
type SubsetPresenceChecker ¶
type SubsetPresenceChecker struct {
Namespace string
DestinationRules []kubernetes.IstioObject
VirtualService kubernetes.IstioObject
}
func (SubsetPresenceChecker) Check ¶
func (checker SubsetPresenceChecker) Check() ([]*models.IstioCheck, bool)
Click to show internal directories.
Click to hide internal directories.