status

package
v0.0.0-...-8c8647d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 10 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) 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 SetComponentsStatus

func SetComponentsStatus(ctx context.Context, k k8s.Client, req ctrl.Request) error

SetComponentsStatus updates the pod status map component

func SetDegradedCondition

func SetDegradedCondition(ctx context.Context, k k8s.Client, req ctrl.Request, msg string, reason lokiv1beta1.LokiStackConditionReason) error

SetDegradedCondition appends the condition Degraded to the lokistack status conditions.

func SetFailedCondition

func SetFailedCondition(ctx context.Context, k k8s.Client, req ctrl.Request) error

SetFailedCondition updates or appends the condition Failed to the lokistack status conditions. In addition it resets all other Status conditions to false.

func SetPendingCondition

func SetPendingCondition(ctx context.Context, k k8s.Client, req ctrl.Request) error

SetPendingCondition updates or appends the condition Pending to the lokistack status conditions. In addition it resets all other Status conditions to false.

func SetReadyCondition

func SetReadyCondition(ctx context.Context, k k8s.Client, req ctrl.Request) error

SetReadyCondition updates or appends the condition Ready to the lokistack status conditions. In addition it resets all other Status conditions to false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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