istio: istio.io/istio/pilot/pkg/config/clusterregistry Index | Files

package clusterregistry

import "istio.io/istio/pilot/pkg/config/clusterregistry"

Index

Package Files

multicluster.go

type Multicluster Uses

type Multicluster struct {
    WatchedNamespace string
    DomainSuffix     string
    ResyncPeriod     time.Duration

    XDSUpdater model.XDSUpdater
    // contains filtered or unexported fields
}

Multicluster structure holds the remote kube Controllers and multicluster specific attributes.

func NewMulticluster Uses

func NewMulticluster(kc kubernetes.Interface, secretNamespace string,
    watchedNamespace string, domainSuffix string, resyncPeriod time.Duration,
    serviceController *aggregate.Controller, xds model.XDSUpdater, meshNetworks *meshconfig.MeshNetworks) (*Multicluster, error)

NewMulticluster initializes data structure to store multicluster information It also starts the secret controller

func (*Multicluster) AddMemberCluster Uses

func (m *Multicluster) AddMemberCluster(clientset kubernetes.Interface, clusterID string) error

AddMemberCluster is passed to the secret controller as a callback to be called when a remote cluster is added. This function needs to set up all the handlers to watch for resources being added, deleted or changed on remote clusters.

func (*Multicluster) DeleteMemberCluster Uses

func (m *Multicluster) DeleteMemberCluster(clusterID string) error

DeleteMemberCluster is passed to the secret controller as a callback to be called when a remote cluster is deleted. Also must clear the cache so remote resources are removed.

func (*Multicluster) ReloadNetworkLookup Uses

func (m *Multicluster) ReloadNetworkLookup(meshNetworks *meshconfig.MeshNetworks)

Hot reload mesh networks for remote clusters

Package clusterregistry imports 11 packages (graph) and is imported by 2 packages. Updated 2019-10-17. Refresh now. Tools for package owners.