externalnetworkcontroller

package
v0.11.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package externalnetworkcontroller contains the logic to manage the external network CRD.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalNetworkReconciler

type ExternalNetworkReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	KubeClient    kubernetes.Interface
	LiqoNamespace string
	HomeCluster   *discoveryv1alpha1.ClusterIdentity

	ServiceType corev1.ServiceType
	Port        int32
	MTU         int
	Proxy       bool
}

ExternalNetworkReconciler manage ExternalNetwork lifecycle.

func NewExternalNetworkReconciler

func NewExternalNetworkReconciler(cl client.Client, s *runtime.Scheme,
	kubeClient kubernetes.Interface, liqoNamespace string,
	homeCluster *discoveryv1alpha1.ClusterIdentity,
	serviceType corev1.ServiceType, port int32, mtu int, proxy bool) *ExternalNetworkReconciler

NewExternalNetworkReconciler returns a new ExternalNetworkReconciler.

func (*ExternalNetworkReconciler) Reconcile

func (r *ExternalNetworkReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile manage ExternalNetwork lifecycle.

func (*ExternalNetworkReconciler) SetupWithManager

func (r *ExternalNetworkReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager register the ExternalNetworkReconciler to the manager.

Jump to

Keyboard shortcuts

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