routing

package
v0.0.0-...-5f7f3f3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDomainSuffix = "global"

DefaultDomainSuffix is the shared DNS suffix for all such global services. TODO: make this configurable

Variables

This section is empty.

Functions

func BuildGlobalServiceConfigs

func BuildGlobalServiceConfigs(globalService *datamodel.GlobalService, clusters []string, infrastructure datamodel.Infrastructure) (map[string][]*IstioConfigDescriptor, error)

func GenerateConfigs

func GenerateConfigs(dm datamodel.DataModel, infra datamodel.Infrastructure, clusters []string) ([]string, map[string]map[string][]*IstioConfigDescriptor, error)

GenerateConfigs generates configuration for every cluster, service pair in the DataModel. It returns a map of (service name -> (cluster name -> configs))

Types

type IstioConfigDescriptor

type IstioConfigDescriptor struct {
	// Name of the resource
	Name string
	// Hosts associated with the resource (applies to Gateway, DestinationRules, VirtualServices)
	Hosts []string
	// Config is the configuration associated with the object (proto, plus config meta)
	Config *istioconfig.Config
	// Yaml is the CRD in yaml form
	Yaml []byte
	// Cluster where this config needs to be present
	Cluster string
}

IstioConfigDescriptor describes an Istio networking configuration object along with other metadata useful for processing

Jump to

Keyboard shortcuts

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