Documentation ¶
Index ¶
- Constants
- func BuildGlobalServiceConfigs(globalService *datamodel.GlobalService, clusters []string, ...) (map[string][]*IstioConfigDescriptor, error)
- func GenerateConfigs(dm datamodel.DataModel, infra datamodel.Infrastructure, clusters []string) ([]string, map[string]map[string][]*IstioConfigDescriptor, error)
- type IstioConfigDescriptor
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
Click to show internal directories.
Click to hide internal directories.