destinationrules

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DestinationRulesCheckerType = "destinationrule"

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	Service   string
	Namespace string
	Cluster   string
}

func FormatHostnameForPrefixSearch

func FormatHostnameForPrefixSearch(hostName, namespace, clusterName string) Host

FormatHostnameForPrefixSearch formats given DR host information to a FQDN format

type MultiMatchChecker

type MultiMatchChecker struct {
	DestinationRules []kubernetes.IstioObject
}

func (MultiMatchChecker) Check

Check validates that no two destinationRules target the same host+subset combination

type NoDestinationChecker

type NoDestinationChecker struct {
	Namespace       string
	Services        map[string][]string
	DestinationRule kubernetes.IstioObject
}

func (NoDestinationChecker) Check

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

Check parses the DestinationRule definitions and verifies that they point to an existing service, including any subset definitions

Jump to

Keyboard shortcuts

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