Documentation ¶
Index ¶
Constants ¶
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 ¶
var CreateBackups = true
CreateBackups controls if the operator will create a backup of the LINSTOR resources before upgrading.
var CreateMonitoring = true
CreateMonitoring controls if the operator will create a monitoring resources.
Functions ¶
func Add ¶
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
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 ¶
func (r *ReconcileLinstorController) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
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