lcmconfig

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName   = "pelagia-config-controller"
	LcmConfigMapName = "pelagia-lcmconfig"
)

Variables

View Source
var ParamsToControl = ControlParamsAll

vars to specify required params to control

Functions

func Add

func Add(mgr manager.Manager) error

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

Types

type ControlParams

type ControlParams string
const (
	ControlParamsAll     ControlParams = "all"
	ControlParamsHealth  ControlParams = "health"
	ControlParamsTask    ControlParams = "task"
	ControlParamsCephDpl ControlParams = "cephdeployment"
)

type DeployParams

type DeployParams struct {
	// log level for task controller
	LogLevel zerolog.Level
	// ceph image represents current image with ceph installed
	CephImage string
	// ceph release to go
	CephRelease string
	// rook image to go
	RookImage string
	// deploy network policy objects or not
	NetPolEnabled bool
	// service selector providing rgw public access (ingress, loadbalancer)
	RgwPublicAccessLabel string
	// namespace for sharing secrets between openstack and ceph
	OpenstackCephSharedNamespace string
	// secret with cabundle for multisite public access between zones
	MultisiteCabundleSecretRef string
}

type HealthParams

type HealthParams struct {
	// log level for health controller
	LogLevel zerolog.Level
	// cephdeployment health checks to skip
	ChecksSkip []string
	// ceph cluster health issues to ignore
	CephIssuesToIgnore []string
	// regexp for collection pool usage/capacity details
	UsageDetailsClassesFilter string
	// regexp for collection class usage/capacity details
	UsageDetailsPoolsFilter string
	// service selector providing rgw public access (ingress, loadbalancer)
	RgwPublicAccessLabel string
}

type LcmConfig

type LcmConfig struct {
	// main rook deployment namespace
	RookNamespace string
	// disk daemon label
	DiskDaemonPlacementLabel string
	// disk daemon api port for collecting info
	DiskDaemonPort int32
	// params related to health controller
	HealthParams *HealthParams
	// params related to task controller
	TaskParams *TaskParams
	// params related to cephdeployment controller
	DeployParams *DeployParams
}

func GetConfiguration

func GetConfiguration(namespace string) LcmConfig

func ReadConfiguration

func ReadConfiguration(objLog zerolog.Logger, configData map[string]string) LcmConfig

type ReconcileCephDeploymentHealthConfig

type ReconcileCephDeploymentHealthConfig struct {
	Client client.Client
	Scheme *runtime.Scheme
}

func (*ReconcileCephDeploymentHealthConfig) Reconcile

type TaskParams

type TaskParams struct {
	// log level for task controller
	LogLevel zerolog.Level
	// timeout for osd rebalance during remove task execution
	OsdPgRebalanceTimeout time.Duration
	// allow to destroy and remove lvm created not by rook
	AllowToRemoveManuallyCreatedLVM bool
}

Jump to

Keyboard shortcuts

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