clusterregistry

package
v0.0.0-...-fd0897c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// the pilot's endpoint IP address where this cluster is part of
	ClusterPilotEndpoint = "config.istio.io/pilotEndpoint"

	// The cluster's platform: Kubernetes, Consul, Eureka, CloudFoundry
	ClusterPlatform = "config.istio.io/platform"

	// The cluster's access configuration file
	// E.g., on kubenetes, this file can be usually copied from .kube/config
	ClusterAccessConfigFile = "config.istio.io/accessConfigFile"

	// For the time being, assume that ClusterPilotCfgStore is only set for one cluster only.
	// If set to be true, this cluster will be used as the pilot's config store.
	ClusterPilotCfgStore = "config.istio.io/pilotCfgStore"
)

annotations for a Cluster

Variables

This section is empty.

Functions

func GetClusterAccessConfig

func GetClusterAccessConfig(cluster *k8s_cr.Cluster) string

GetClusterAccessConfig returns the access config file of a cluster

func GetClusterName

func GetClusterName(cluster *k8s_cr.Cluster) string

GetClusterName returns a cluster's name

Types

type ClusterStore

type ClusterStore struct {
	// contains filtered or unexported fields
}

ClusterStore is a collection of clusters

func ReadClusters

func ReadClusters(crPath string) (cs *ClusterStore, err error)

ReadClusters reads multiple clusters from files in a directory

func (*ClusterStore) GetPilotAccessConfig

func (cs *ClusterStore) GetPilotAccessConfig() string

GetPilotAccessConfig returns this pilot's access config file name

func (*ClusterStore) GetPilotClusters

func (cs *ClusterStore) GetPilotClusters() (clusters []*k8s_cr.Cluster)

GetPilotClusters return a list of clusters under this pilot, exclude PilotCfgStore

Jump to

Keyboard shortcuts

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