virtualservices

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoGatewayChecker

type NoGatewayChecker struct {
	VirtualService networking_v1alpha3.VirtualService
	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

func (NoGatewayChecker) ValidateVirtualServiceGateways

func (s NoGatewayChecker) ValidateVirtualServiceGateways(validations *[]*models.IstioCheck) bool

ValidateVirtualServiceGateways checks all VirtualService gateways (except mesh, which is reserved word) and checks that they're found from the given list of gatewayNames. Also return index of missing gatways to show clearer error path in editor

type NoHostChecker

type NoHostChecker struct {
	Namespace         string
	Namespaces        models.Namespaces
	ServiceList       models.ServiceList
	VirtualService    networking_v1alpha3.VirtualService
	ServiceEntryHosts map[string][]string
	RegistryServices  []*kubernetes.RegistryService
}

func (NoHostChecker) Check

func (n NoHostChecker) Check() ([]*models.IstioCheck, bool)

type RouteChecker

type RouteChecker struct {
	Namespace      string
	Namespaces     []string
	VirtualService networking_v1alpha3.VirtualService
}

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
	Namespaces              models.Namespaces
	VirtualServices         []networking_v1alpha3.VirtualService
	ExportedVirtualServices []networking_v1alpha3.VirtualService
}

func (SingleHostChecker) Check

type SubsetPresenceChecker

type SubsetPresenceChecker struct {
	Namespace                string
	Namespaces               []string
	DestinationRules         []networking_v1alpha3.DestinationRule
	ExportedDestinationRules []networking_v1alpha3.DestinationRule
	VirtualService           networking_v1alpha3.VirtualService
}

func (SubsetPresenceChecker) Check

func (checker SubsetPresenceChecker) Check() ([]*models.IstioCheck, bool)

Jump to

Keyboard shortcuts

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