linstorcontroller

package
v1.10.9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BackupAnnotationPreviousVersion marks the annotation that stores the upgraded-from cluster version.
	BackupAnnotationPreviousVersion = spec.APIGroup + "/backup-previous-version"
	// BackupAnnotationUpdateVersion marks the annotations that stores the upgraded-to cluster version.
	BackupAnnotationUpdateVersion = spec.APIGroup + "/backup-update-version"
	// BackupLabel is used for all backup secrets
	BackupLabel = spec.APIGroup + "/linstor-backup"
)

Variables

View Source
var CreateBackups = true

CreateBackups controls if the operator will create a backup of the LINSTOR resources before upgrading.

View Source
var CreateMonitoring = true

CreateMonitoring controls if the operator will create a monitoring resources.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new LinstorController Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func NewConfigMapForResource added in v1.2.0

func NewConfigMapForResource(controllerResource *piraeusv1.LinstorController) (*corev1.ConfigMap, error)

func ToCleanedK8sResourceYAML added in v1.8.0

func ToCleanedK8sResourceYAML(obj Resource) ([]byte, error)

ToCleanedK8sResourceYAML returns a stripped down version of the kubernetes object in YAML format.

* It only contains human-controlled metadata (name, namespace, labels, annotations). * It does not contain a status section.

Types

type ReconcileLinstorController

type ReconcileLinstorController struct {
	// contains filtered or unexported fields
}

ReconcileLinstorController reconciles a LinstorController object

func (*ReconcileLinstorController) Reconcile

Reconcile reads that state of the cluster for a LinstorController object and makes changes based on the state read and what is in the LinstorController.Spec

type Resource added in v1.8.0

type Resource interface {
	metav1.Object
	metav1.Type
}

Jump to

Keyboard shortcuts

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