status

package
v0.0.0-...-f49a566 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 13 Imported by: 5 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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