hostutils

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// this suffix is used for all global fqdns; this is due to the
	// fact that istio Coredns comes with the *.global suffix already configured:
	// https://istio.io/latest/docs/setup/install/multicluster/gateways/
	GlobalHostnameSuffix = "global"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDomainRegistry

type ClusterDomainRegistry interface {
	// get the domain suffix used by the cluster
	GetClusterDomain(clusterName string) string

	// get the local FQDN of a service in a given cluster.
	// this is the Kubernetes DNS name that clients within that cluster
	// can use to communicate to this cluster.
	GetServiceLocalFQDN(serviceRef ezkube.ClusterResourceId) string

	// get the remote FQDN of a service in a given cluster.
	// this is the DNS name used by Gloo Mesh
	// to establish cross-cluster connectivity.
	GetServiceGlobalFQDN(serviceRef ezkube.ClusterResourceId) string

	// get the FQDN of a service which is being addressed as a
	// destination, e.g. for a traffic split or mirror policy.
	// this will either be the Local or Remote FQDN, depending on the
	// originating cluster.
	GetDestinationServiceFQDN(originatingCluster string, serviceRef ezkube.ClusterResourceId) string
}

ClusterDomainRegistry retrieves known cluster domain suffixes for registered clusters. Returns the default 'cluster.local' when domain cannot be found

Directories

Path Synopsis
Package mock_hostutils is a generated GoMock package.
Package mock_hostutils is a generated GoMock package.

Jump to

Keyboard shortcuts

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