common

package
v0.0.0-...-f124d00 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UpdateOption = &client.UpdateOptions{
		FieldManager: "aerospike-operator",
	}
	CreateOption = &client.CreateOptions{
		FieldManager: "aerospike-operator",
	}
)
View Source
var MaxConcurrentReconciles = runtime.NumCPU() * 2

MaxConcurrentReconciles is the Number of Reconcile threads to run Reconcile operations

Functions

func GetBackupServicePodList

func GetBackupServicePodList(k8sClient client.Client, name, namespace string) (*corev1.PodList, error)

func GetConfigSection

func GetConfigSection(config map[string]interface{}, section string) (map[string]interface{}, error)

GetConfigSection returns the section of the config with the given name.

func ReloadBackupServiceConfigInPods

func ReloadBackupServiceConfigInPods(
	k8sClient client.Client,
	log logr.Logger,
	backupSvc *v1beta1.BackupService,
) error

Types

type ReconcileResult

type ReconcileResult struct {
	Err       error
	Result    reconcile.Result
	IsSuccess bool
}

func ReconcileError

func ReconcileError(e error) ReconcileResult

func ReconcileRequeueAfter

func ReconcileRequeueAfter(secs int) ReconcileResult

func ReconcileSuccess

func ReconcileSuccess() ReconcileResult

func (ReconcileResult) GetResult

func (r ReconcileResult) GetResult() (reconcile.Result, error)

Jump to

Keyboard shortcuts

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