controllers

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIDRClaimerReconciler

type CIDRClaimerReconciler struct {
	client.Client
	ControlPlaneNamespace string
	ClusterName           string
	NodeName              string
	TemplateNames         []string
	ClaimNameGenerator    func(templateName string) string
	Labels                func(templateName string) map[string]string
	AllocatedCallback     func(cidr string)

	Scheme *runtime.Scheme
}

CIDRClaimerReconciler reconciles a CIDRClaimer object

func (*CIDRClaimerReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the CIDRClaimer object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*CIDRClaimerReconciler) SetupWithManager

func (r *CIDRClaimerReconciler) SetupWithManager(mgr ctrl.Manager, name string) error

SetupWithManager sets up the controller with the Manager.

type ExtraPodCIDRSyncReconciler

type ExtraPodCIDRSyncReconciler struct {
	client.Client
	Scheme                *runtime.Scheme
	ClusterName           string
	NodeName              string
	ControlPlaneNamespace string

	Local cluster.Cluster
}

ExtraPodCIDRSyncReconciler reconciles a ExtraPodCIDRSync object

func (*ExtraPodCIDRSyncReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ExtraPodCIDRSync object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*ExtraPodCIDRSyncReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PeerNodeSyncReconciler

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

	ControlPlaneNamespace  string
	ClusterName            string
	NodeName               string
	Engine                 tetraengine.TetraEngine
	StaticAdvertisedRoutes []string
	// contains filtered or unexported fields
}

PeerNodeSyncReconciler reconciles a PeerNodeSync object

func (*PeerNodeSyncReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the PeerNodeSync object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*PeerNodeSyncReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PeersSyncReconciler

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

	ControlPlaneNamespace string
	ClusterName           string
	NodeName              string
	Engine                tetraengine.TetraEngine

	PrivateKey string
	// ListenPort is immutable field
	ListenPort   int
	STUNEndpoint string
}

PeersSyncReconciler reconciles a PeersSync object

func (*PeersSyncReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the PeersSync object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*PeersSyncReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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