Documentation ¶
Index ¶
- func Refresh(ctx context.Context, k k8s.Client, req ctrl.Request) error
- func SetComponentsStatus(ctx context.Context, k k8s.Client, req ctrl.Request) error
- func SetDegradedCondition(ctx context.Context, k k8s.Client, req ctrl.Request, msg string, ...) error
- func SetFailedCondition(ctx context.Context, k k8s.Client, req ctrl.Request) error
- func SetPendingCondition(ctx context.Context, k k8s.Client, req ctrl.Request) error
- func SetReadyCondition(ctx context.Context, k k8s.Client, req ctrl.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Refresh ¶
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 ¶
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 ¶
SetFailedCondition updates or appends the condition Failed to the lokistack status conditions. In addition it resets all other Status conditions to false.
func SetPendingCondition ¶
SetPendingCondition updates or appends the condition Pending to the lokistack status conditions. In addition it resets all other Status conditions to false.
Types ¶
This section is empty.