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 ¶
GetClusterAccessConfig returns the access config file of a cluster
func GetClusterName ¶
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
Click to show internal directories.
Click to hide internal directories.