Documentation ¶
Overview ¶
Package tunnelendpointcreator implements the logic to create TunnelEndpoints given the parameters negotiated through NetworkConfig resources.
Index ¶
- type TunnelEndpointCreator
- func (tec *TunnelEndpointCreator) GetTunnelEndpoint(ctx context.Context, destinationClusterID, namespace string) (*netv1alpha1.TunnelEndpoint, bool, error)
- func (tec *TunnelEndpointCreator) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (tec *TunnelEndpointCreator) SetupSignalHandlerForTunEndCreator() context.Context
- func (tec *TunnelEndpointCreator) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TunnelEndpointCreator ¶
type TunnelEndpointCreator struct { client.Client Scheme *runtime.Scheme IPManager liqonetIpam.Ipam }
TunnelEndpointCreator manages the most of liqo networking.
func (*TunnelEndpointCreator) GetTunnelEndpoint ¶
func (tec *TunnelEndpointCreator) GetTunnelEndpoint(ctx context.Context, destinationClusterID, namespace string) ( *netv1alpha1.TunnelEndpoint, bool, error)
GetTunnelEndpoint retrieves the tunnelEndpoint resource related to a cluster.
func (*TunnelEndpointCreator) Reconcile ¶
func (tec *TunnelEndpointCreator) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reconciles the state of NetworkConfig resources.
func (*TunnelEndpointCreator) SetupSignalHandlerForTunEndCreator ¶
func (tec *TunnelEndpointCreator) SetupSignalHandlerForTunEndCreator() context.Context
SetupSignalHandlerForTunEndCreator 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
SetupWithManager informs the manager that the tunnelEndpointCreator will deal with networkconfigs.
Click to show internal directories.
Click to hide internal directories.