status

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 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, credentialMode lokiv1.CredentialMode, degradedErr *DegradedError) 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

Jump to

Keyboard shortcuts

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