virtual_services

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host added in v0.5.0

type Host struct {
	Service   string
	Namespace string
	Cluster   string
}

type NoHostChecker

type NoHostChecker struct {
	Namespace      string
	ServiceNames   []string
	VirtualService kubernetes.IstioObject
}

func (NoHostChecker) Check

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

type RouteChecker added in v0.5.0

type RouteChecker struct{ kubernetes.IstioObject }

func (RouteChecker) Check added in v0.5.0

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 added in v0.5.0

type SingleHostChecker struct {
	Namespace       string
	VirtualServices []kubernetes.IstioObject
}

func (SingleHostChecker) Check added in v0.5.0

type SubsetPresenceChecker added in v0.5.0

type SubsetPresenceChecker struct {
	Namespace        string
	DestinationRules []kubernetes.IstioObject
	VirtualService   kubernetes.IstioObject
}

func (SubsetPresenceChecker) Check added in v0.5.0

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