status

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Refresh

func Refresh(ctx context.Context, k k8s.Client, req ctrl.Request, now time.Time, statusInfo *LokiStackStatusInfo) error

Refresh executes an aggregate update of the LokiStack Status struct, i.e. - It recreates the Status.Components pod status map per component. - It sets the appropriate Status.Condition to true that matches the pod status maps.

func SetStorageSchemaStatus

func SetStorageSchemaStatus(ctx context.Context, k k8s.Client, req ctrl.Request, schemas []lokiv1.ObjectStorageSchema) error

SetStorageSchemaStatus updates the storage status component

Types

type DegradedError

type DegradedError struct {
	Message string
	Reason  lokiv1.LokiStackConditionReason
	Requeue bool
}

DegradedError contains information about why the managed LokiStack has an invalid configuration.

func (*DegradedError) Error

func (e *DegradedError) Error() string

type LokiStackStatusInfo added in v0.9.0

type LokiStackStatusInfo struct {
	// DegradedError contains information about why the managed LokiStack has an invalid configuration.
	DegradedError *DegradedError

	// Storage contains the credential mode used for object storage access
	Storage lokiv1.CredentialMode

	// NetworkPolicies indicates which set of network policies has been deployed, if any
	NetworkPolicies lokiv1.NetworkPolicyRuleSet
}

LokiStackStatusInfo holds all status information calculated during LokiStack reconciliation

Jump to

Keyboard shortcuts

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