controller

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientConfig        *rest.Config
	BindClient          *bindclient.Clientset
	KubeClient          *kubernetesclient.Clientset
	ApiextensionsClient *apiextensionsclient.Clientset

	KubeInformers          kubeinformers.SharedInformerFactory
	BindInformers          bindinformers.SharedInformerFactory
	ApiextensionsInformers apiextensionsinformers.SharedInformerFactory
}

func NewConfig

func NewConfig() (*Config, error)

type Informer

type Informer struct {
	// contains filtered or unexported fields
}

func NewInformer

func NewInformer(informer InformerRunnable) *Informer

func (*Informer) Start

func (i *Informer) Start(ctx context.Context) error

type InformerRunnable

type InformerRunnable interface {
	Start(stopCh <-chan struct{})
}

type RancherBindReconciler

type RancherBindReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

RancherBindReconciler reconciles a RancherBind object

func (*RancherBindReconciler) Reconcile

func (r *RancherBindReconciler) 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 RancherBind 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/[email protected]/pkg/reconcile

func (*RancherBindReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type Threaded

type Threaded struct {
	// contains filtered or unexported fields
}

func NewThreaded

func NewThreaded(runnable ThreadedRunable, threads int) *Threaded

func (*Threaded) Start

func (t *Threaded) Start(ctx context.Context) error

type ThreadedRunable

type ThreadedRunable interface {
	// Start starts running the component.  The component will stop running
	// when the context is closed. Start blocks until the context is closed or
	// an error occurs.
	Start(context.Context, int)
}

Jump to

Keyboard shortcuts

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