tunnelEndpointCreator

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TunEndpointNamePrefix    = "tun-endpoint-"
	NetConfigNamePrefix      = "net-config-"
	DefaultPodCIDRValue      = "None"
	DefaultExternalCIDRValue = "None"
)

Variables

View Source
var (
	GwPodLabelKey   = "net.liqo.io/gatewayPod"
	GwPodLabelValue = "true"
)
View Source
var (
	ResyncPeriod = 30 * time.Second
)

Functions

This section is empty.

Types

type TunnelEndpointCreator

type TunnelEndpointCreator struct {
	client.Client
	ClientSet    *k8s.Clientset
	Scheme       *runtime.Scheme
	Manager      ctrl.Manager
	DynClient    dynamic.Interface
	EndpointIP   string
	EndpointPort string
	PodCIDR      string
	ServiceCIDR  string
	ExternalCIDR string

	ReservedSubnets []string
	AdditionalPools []string
	IPManager       liqonet.Ipam
	Mutex           sync.Mutex
	WaitConfig      *sync.WaitGroup
	IpamConfigured  bool

	IsConfigured               bool
	Configured                 chan bool
	ForeignClusterStartWatcher chan bool
	ForeignClusterStopWatcher  chan struct{}

	SecretStopWatcher chan struct{}
	RunningWatchers   bool
	Namespace         string

	RetryTimeout time.Duration
	// contains filtered or unexported fields
}

func (*TunnelEndpointCreator) CreateTunnelEndpoint

func (tec *TunnelEndpointCreator) CreateTunnelEndpoint(param networkParam, owner *metav1.OwnerReference) error

func (*TunnelEndpointCreator) ForeignClusterHandlerAdd

func (tec *TunnelEndpointCreator) ForeignClusterHandlerAdd(obj interface{})

func (*TunnelEndpointCreator) ForeignClusterHandlerDelete

func (tec *TunnelEndpointCreator) ForeignClusterHandlerDelete(obj interface{})

func (*TunnelEndpointCreator) ForeignClusterHandlerUpdate

func (tec *TunnelEndpointCreator) ForeignClusterHandlerUpdate(oldObj interface{}, newObj interface{})

func (*TunnelEndpointCreator) GetAdditionalPools

func (tec *TunnelEndpointCreator) GetAdditionalPools(config *configv1alpha1.ClusterConfig) []string

func (*TunnelEndpointCreator) GetNetworkConfig

func (tec *TunnelEndpointCreator) GetNetworkConfig(destinationClusterID string) (*netv1alpha1.NetworkConfig, bool, error)

func (*TunnelEndpointCreator) GetReservedSubnets

func (tec *TunnelEndpointCreator) GetReservedSubnets(config *configv1alpha1.ClusterConfig) []string

func (*TunnelEndpointCreator) GetTunnelEndpoint

func (tec *TunnelEndpointCreator) GetTunnelEndpoint(destinationClusterID string) (*netv1alpha1.TunnelEndpoint, bool, error)

func (*TunnelEndpointCreator) ProcessTunnelEndpoint

func (tec *TunnelEndpointCreator) ProcessTunnelEndpoint(param networkParam, owner *metav1.OwnerReference) error

func (*TunnelEndpointCreator) Reconcile

func (tec *TunnelEndpointCreator) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*TunnelEndpointCreator) SetNetParameters

func (tec *TunnelEndpointCreator) SetNetParameters(config *configv1alpha1.ClusterConfig)

func (*TunnelEndpointCreator) SetupSignalHandlerForTunEndCreator

func (tec *TunnelEndpointCreator) SetupSignalHandlerForTunEndCreator() (stopCh <-chan struct{})

SetupSignalHandlerForTunnelEndpointCreator registers for SIGTERM, SIGINT, SIGKILL. A stop channel is returned which is closed on one of these signals.

func (*TunnelEndpointCreator) SetupWithManager

func (tec *TunnelEndpointCreator) SetupWithManager(mgr ctrl.Manager) error

func (*TunnelEndpointCreator) StartForeignClusterWatcher

func (tec *TunnelEndpointCreator) StartForeignClusterWatcher()

func (*TunnelEndpointCreator) StartGWPodWatcher

func (tec *TunnelEndpointCreator) StartGWPodWatcher()

func (*TunnelEndpointCreator) StartSecretWatcher

func (tec *TunnelEndpointCreator) StartSecretWatcher()

func (*TunnelEndpointCreator) StartServiceWatcher

func (tec *TunnelEndpointCreator) StartServiceWatcher()

func (*TunnelEndpointCreator) UpdatePools

func (tec *TunnelEndpointCreator) UpdatePools(additionalPools []string) error

func (*TunnelEndpointCreator) UpdateReservedSubnets

func (tec *TunnelEndpointCreator) UpdateReservedSubnets(reservedSubnets []string) error

func (*TunnelEndpointCreator) UpdateSpecTunnelEndpoint

func (tec *TunnelEndpointCreator) UpdateSpecTunnelEndpoint(param networkParam) error

func (*TunnelEndpointCreator) UpdateStatusTunnelEndpoint

func (tec *TunnelEndpointCreator) UpdateStatusTunnelEndpoint(param networkParam) error

func (*TunnelEndpointCreator) WatchConfiguration

func (tec *TunnelEndpointCreator) WatchConfiguration(config *rest.Config, gv *schema.GroupVersion)

func (*TunnelEndpointCreator) Watcher

func (tec *TunnelEndpointCreator) Watcher(sharedDynFactory dynamicinformer.DynamicSharedInformerFactory, resourceType schema.GroupVersionResource, handlerFuncs cache.ResourceEventHandlerFuncs, stopCh chan struct{})

Jump to

Keyboard shortcuts

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