Help us shape the future of Go! Take the 2026 Go Developer Survey

controllers

package
v2.20.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MPL-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScaleFromZero

func ScaleFromZero(current, sts *appsv1.StatefulSet) bool

ScaleFromZero checks if the current replicas is zero and the desired replicas is greater than zero.

func ScaleToZero

func ScaleToZero(current, sts *appsv1.StatefulSet) bool

ScaleToZero checks if the desired replicas is zero and the current replicas is not zero.

Types

type PodExecutor

type PodExecutor interface {
	Exec(clientset *kubernetes.Clientset, clusterConfig *rest.Config, namespace, podName, containerName string, command ...string) (string, string, error)
}

func NewPodExecutor

func NewPodExecutor() PodExecutor

type RabbitmqClusterReconciler

type RabbitmqClusterReconciler struct {
	client.Client
	APIReader               client.Reader
	Scheme                  *runtime.Scheme
	Namespace               string
	Recorder                record.EventRecorder
	ClusterConfig           *rest.Config
	Clientset               *kubernetes.Clientset
	PodExecutor             PodExecutor
	DefaultRabbitmqImage    string
	DefaultUserUpdaterImage string
	DefaultImagePullSecrets string
	ControlRabbitmqImage    bool
}

RabbitmqClusterReconciler reconciles a RabbitmqCluster object

func (*RabbitmqClusterReconciler) Reconcile

func (*RabbitmqClusterReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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