controllers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveClusterDetector

func RemoveClusterDetector(localClient client.Client, log logr.Logger) error

NewClusterDetectorReconciler returns a new ClusterDetectorReconciler

func SetupClusterDetector

func SetupClusterDetector(localClient client.Client, log logr.Logger) error

Create a Custom Resource ClusterDetector and register the remote cluster status.

Types

type ClusterDetectorReconciler

type ClusterDetectorReconciler struct {
	client.Client
}

ClusterDetectorReconciler reconciles a ClusterDetector object

func (*ClusterDetectorReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ReplicateRuntime

type ReplicateRuntime struct {
	ClientSet  *kubernetes.Clientset
	IsPrimary  bool
	Context    context.Context
	Log        logr.Logger
	Cluster    string
	Replicator plumberv1.Replicator
	Request    reconcile.Request
}

type ReplicatorReconciler

type ReplicatorReconciler struct {
	client.Client
	Recorder record.EventRecorder
	Scheme   *runtime.Scheme
}

ReplicatorReconciler reconciles a Replicator object

func (*ReplicatorReconciler) Replicate

func (r *ReplicatorReconciler) Replicate(
	ctx context.Context,
	log logr.Logger,
	req ctrl.Request,
	primaryClientSet map[string]*kubernetes.Clientset,
	secondaryClientsets map[string]*kubernetes.Clientset,
) error

func (*ReplicatorReconciler) SetupWithManager

func (r *ReplicatorReconciler) 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