Documentation
¶
Index ¶
- func ClearMonolithicMetrics(namespace string, name string)
- func ClearTempoStackMetrics(namespace string, name string)
- func FailedCondition(tempo v1alpha1.TempoStack) []metav1.Condition
- func GetComponentsStatus(ctx context.Context, k StatusClient, s v1alpha1.TempoStack) (v1alpha1.TempoStackStatus, error)
- func HandleTempoMonolithicStatus(ctx context.Context, client client.Client, tempo v1alpha1.TempoMonolithic, ...) error
- func PendingCondition(tempo v1alpha1.TempoStack) []metav1.Condition
- func ReadyCondition(tempo v1alpha1.TempoStack) []metav1.Condition
- func Refresh(ctx context.Context, k StatusClient, tempo v1alpha1.TempoStack, ...) error
- func UpdateCondition(tempo v1alpha1.TempoStack, condition metav1.Condition) []metav1.Condition
- type ConfigurationError
- type StatusClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearMonolithicMetrics ¶ added in v0.13.0
ClearMonolithicMetrics sets status condition metrics to zero.
func ClearTempoStackMetrics ¶ added in v0.13.0
ClearTempoStackMetrics sets status condition metrics to zero.
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 ¶
func GetComponentsStatus(ctx context.Context, k StatusClient, s v1alpha1.TempoStack) (v1alpha1.TempoStackStatus, error)
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 ¶
func Refresh(ctx context.Context, k StatusClient, tempo v1alpha1.TempoStack, status *v1alpha1.TempoStackStatus) error
Refresh updates the status field with the Tempo versions and updates the tempostack_status_condition metric.
func UpdateCondition ¶
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.