status

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailedCondition

func FailedCondition(tempo v1alpha1.TempoStack) []metav1.Condition

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

func GetComponentsStatus

GetComponentsStatus executes an aggregate update of the TempoStack 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 HandleTempoMonolithicStatus added in v0.9.0

func HandleTempoMonolithicStatus(ctx context.Context, client client.Client, tempo v1alpha1.TempoMonolithic, reconcileError error) error

HandleTempoMonolithicStatus updates the .status field of a TempoMonolithic CR Status Conditions API conventions: https://github.com/kubernetes/community/blob/c04227d209633696ad49d7f4546fc8cfd9c660ab/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties

func PendingCondition

func PendingCondition(tempo v1alpha1.TempoStack) []metav1.Condition

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

func ReadyCondition

func ReadyCondition(tempo v1alpha1.TempoStack) []metav1.Condition

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

func Refresh

Refresh updates the status field with the Tempo versions and updates the tempostack_status_condition metric.

func UpdateCondition

func UpdateCondition(tempo v1alpha1.TempoStack, condition metav1.Condition) []metav1.Condition

UpdateCondition updates or appends the condition to the TempoStack status conditions. In addition it resets all other status conditions to false.

Types

type ConfigurationError

type ConfigurationError struct {
	Reason  v1alpha1.ConditionReason
	Message string
}

ConfigurationError contains information about why the managed TempoStack has an invalid configuration.

func (*ConfigurationError) Error

func (e *ConfigurationError) Error() string

type StatusClient

type StatusClient interface {
	GetPodsComponent(ctx context.Context, componentName string, stack v1alpha1.TempoStack) (*corev1.PodList, error)
	PatchStatus(ctx context.Context, changed, original *v1alpha1.TempoStack) error
}

StatusClient defines a interface for fetching status information.

Jump to

Keyboard shortcuts

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