conditions

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Ready indicates that the service is ready
	Ready = "Ready"
	// NotReady indicates that the service is not yet ready
	NotReady = "NotReady"
	// Failed indicates that the service has failed
	Failed = "Failed"
	// ReasonServiceAccountFailed indicates that the creation of serviceaccount has failed
	ReasonServiceAccountFailed = "ServiceAccountFailed"
	// ReasonRoleFailed indicates that the creation of serviceaccount has failed
	ReasonRoleFailed = "RoleFailed"
	// ReasonRoleBindingFailed indicates that the creation of rolebinding has failed
	ReasonRoleBindingFailed = "RoleBindingFailed"
	// ReasonServiceFailed indicates that the creation of service has failed
	ReasonServiceFailed = "ServiceFailed"
	// ReasonIngressFailed indicates that the creation of ingress has failed
	ReasonIngressFailed = "IngressFailed"
	// ReasonHPAFailed indicates that the creation of hpa has failed
	ReasonHPAFailed = "HPAFailed"
	// ReasonSCCFailed indicates that the creation of scc has failed
	ReasonSCCFailed = "SCCFailed"
	// ReasonServiceMonitorFailed indicates that the creation of Service Monitor has failed
	ReasonServiceMonitorFailed = "ServiceMonitorFailed"
	// ReasonDeploymentFailed indicates that the creation of deployment has failed
	ReasonDeploymentFailed = "DeploymentFailed"
	// ReasonStatefulSetFailed indicates that the creation of statefulset has failed
	ReasonStatefulSetFailed = "StatefulsetFailed"
)

Variables

This section is empty.

Functions

func IfPresentUpdateCondition

func IfPresentUpdateCondition(conditions *[]metav1.Condition, conditionType string, status metav1.ConditionStatus, reason, message string)

func UpdateCondition

func UpdateCondition(conditions *[]metav1.Condition, conditionType string, status metav1.ConditionStatus, reason, message string)

UpdateCondition updates the given condition into the conditions list

Types

type Updater

type Updater interface {
	SetConditionsReady(ctx context.Context, cr *appsv1alpha1.NIMService, reason, message string) error
	SetConditionsNotReady(ctx context.Context, cr *appsv1alpha1.NIMService, reason, message string) error
	SetConditionsFailed(ctx context.Context, cr *appsv1alpha1.NIMService, reason, message string) error
}

Updater is the condition updater

func NewUpdater

func NewUpdater(c client.Client) Updater

NewUpdater returns an instance of updater

Jump to

Keyboard shortcuts

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