controllers

package
v0.0.0-...-c7d55cc Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Divide

type Divide struct {
	reconcile.BaseStep[*v1beta1.Simple, *SimpleRReq]
}

func (Divide) Do

func (s Divide) Do(r *SimpleRReq, log logr.Logger) reconcile.Result

func (Divide) GetManagedConditions

func (s Divide) GetManagedConditions() condition.Conditions

func (Divide) GetName

func (s Divide) GetName() string

type DivideAndStore

type DivideAndStore struct {
	reconcile.BaseStep[*v1beta1.RWExternal, *RWExternalRReq]
}

func (DivideAndStore) Cleanup

func (DivideAndStore) Do

func (DivideAndStore) GetManagedConditions

func (s DivideAndStore) GetManagedConditions() condition.Conditions

func (DivideAndStore) GetName

func (s DivideAndStore) GetName() string

type EnsureInput

type EnsureInput struct {
	reconcile.BaseStep[*v1beta1.RWExternal, *RWExternalRReq]
}

func (EnsureInput) Do

func (EnsureInput) GetManagedConditions

func (s EnsureInput) GetManagedConditions() condition.Conditions

func (EnsureInput) GetName

func (s EnsureInput) GetName() string

type EnsureNonZeroDivisor

type EnsureNonZeroDivisor struct {
	reconcile.BaseStep[*v1beta1.Simple, *SimpleRReq]
}

func (EnsureNonZeroDivisor) Do

func (EnsureNonZeroDivisor) GetManagedConditions

func (s EnsureNonZeroDivisor) GetManagedConditions() condition.Conditions

func (EnsureNonZeroDivisor) GetName

func (s EnsureNonZeroDivisor) GetName() string

type RWExternalRReq

type RWExternalRReq struct {
	reconcile.Req[*v1beta1.RWExternal]
	Dividend     *int
	Divisor      *int
	OutputSecret *corev1.Secret
}

type RWExternalReconciler

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

RWExternalReconciler reconciles a RWExternal object

func (*RWExternalReconciler) Reconcile

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

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

func (*RWExternalReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ServiceWithDBReconciler

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

ServiceWithDBReconciler reconciles a ServiceWithDB object

func (*ServiceWithDBReconciler) Reconcile

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

func (*ServiceWithDBReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type SimpleRReq

type SimpleRReq struct {
	reconcile.DefaultReq[*v1beta1.Simple]
}

type SimpleReconciler

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

SimpleReconciler reconciles a Simple object

func (*SimpleReconciler) Reconcile

func (r *SimpleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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.

func (*SimpleReconciler) SetupWithManager

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