controllers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FinalizerNode corev1.FinalizerName = "geth-operator-node"
)

Variables

View Source
var (
	//go:embed geth_init_genesis.sh
	GethInitScript string
)

Functions

func ContainsString

func ContainsString(slice []string, s string) bool

ContainsString is a helper functions to check and remove string from a slice of strings.

func IgnoreAlreadyExists

func IgnoreAlreadyExists(err error) error

func NoRequeue

func NoRequeue() (ctrl.Result, error)

NoRequeue does not requeue when Requeue is False.

func RemoveString

func RemoveString(slice []string, s string) (result []string)

RemoveString removes a specific string from a splice and returns the rest.

func RequeueAfterInterval

func RequeueAfterInterval(interval time.Duration, err error) (ctrl.Result, error)

RequeueAfterInterval requeues after a duration when duration > 0 is specified.

func RequeueIfError

func RequeueIfError(err error) (ctrl.Result, error)

RequeueIfError requeues if an error is found.

func RequeueImmediately

func RequeueImmediately() (ctrl.Result, error)

RequeueImmediately requeues immediately when Requeue is True and no duration is specified.

Types

type ClusterReconciler

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

ClusterReconciler reconciles a Cluster object

func (*ClusterReconciler) Reconcile

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

func (*ClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NodeReconciler

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

NodeReconciler reconciles a Node object

func (*NodeReconciler) Reconcile

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

func (*NodeReconciler) SetupWithManager

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