controller

package
v0.0.0-...-e1524c0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const JOB_DONE_MARKER = "DONE"
View Source
const VOLUME_PROTECTION = "storage.metalk8s.scality.com/volume-protection"

Variables

This section is empty.

Functions

func SliceAppendUnique

func SliceAppendUnique(slice []string, newValue string) []string

Append `value` to `slice (if not already present).

Arguments

slice:  the slice to process
target: the value to add.

Returns

A slice with `target` in it.

func SliceRemoveValue

func SliceRemoveValue(slice []string, target string) []string

Remove all the occurrences `target` from `slice` (if present).

Arguments

slice:  the slice to process
target: the value to remove

Returns

A slice without `target`.

Types

type VolumeReconciler

type VolumeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

VolumeReconciler reconciles a Volume object

func (*VolumeReconciler) Reconcile

func (self *VolumeReconciler) 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 (*VolumeReconciler) SetupWithManager

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