status

package
v0.0.0-...-33faed3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 13 Imported by: 7

Documentation

Index

Constants

View Source
const (
	// ErrMsgCannotGetDeployment deployment not found
	ErrMsgCannotGetDeployment = "unable to get the deployment"

	// ErrMsgDeploymentConditionNotReady deployment not ready
	ErrMsgDeploymentConditionNotReady = "deployment has unready status conditions"
)
View Source
const (
	ErrMsgClusterConnectionNotFound              = "the cluster connection was not found"
	ErrMsgClusterConnectionLastProbeTimeExceeded = "exceeded the maximum duration since the last probe"
)

error messages related to cluster connection

Variables

This section is empty.

Functions

func DeploymentAvailableCondition

func DeploymentAvailableCondition() appsv1.DeploymentCondition

func DeploymentNotAvailableCondition

func DeploymentNotAvailableCondition() appsv1.DeploymentCondition

func DeploymentNotProgressingCondition

func DeploymentNotProgressingCondition() appsv1.DeploymentCondition

func DeploymentProgressingCondition

func DeploymentProgressingCondition() appsv1.DeploymentCondition

func GetDeploymentStatusConditions

func GetDeploymentStatusConditions(ctx context.Context, client client.Client, name, namespace string) []toolchainv1alpha1.Condition

GetDeploymentStatusConditions looks up a deployment with the given name within the given namespace and checks its status and finally returns a condition summarizing the status

func GetToolchainClusterConditions

func GetToolchainClusterConditions(logger logr.Logger, attrs ToolchainClusterAttributes) []toolchainv1alpha1.Condition

GetToolchainClusterConditions uses the provided ToolchainCluster attributes to determine status conditions

func NewComponentErrorCondition

func NewComponentErrorCondition(reason, msg string) *toolchainv1alpha1.Condition

func NewComponentReadyCondition

func NewComponentReadyCondition(reason string) *toolchainv1alpha1.Condition

func ValidateComponentConditionReady

func ValidateComponentConditionReady(conditions ...toolchainv1alpha1.Condition) error

ValidateComponentConditionReady checks whether the provided conditions signal that the component is ready, returns an error otherwise

Types

type Health

type Health struct {
	Alive       bool   `json:"alive"`
	Environment string `json:"environment"`
	Revision    string `json:"revision"`
	BuildTime   string `json:"buildTime"`
	StartTime   string `json:"startTime"`
}

Health payload

type ToolchainClusterAttributes

type ToolchainClusterAttributes struct {
	GetClusterFunc func() (*cluster.CachedToolchainCluster, bool)
	Period         time.Duration
	Timeout        time.Duration
}

ToolchainClusterAttributes required attributes for obtaining ToolchainCluster status

Jump to

Keyboard shortcuts

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