condition

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkloadReady = "Ready"
	// WorkloadNotUpToDate is added when one of workloads is not up-to-date.
	WorkloadNotUpToDate = "WorkloadNotUpToDate"
	// MetadUnhealthy is added when one of metad pods is unhealthy.
	MetadUnhealthy = "MetadUnhealthy"
	// StoragedUnhealthy is added when one of storaged pods is unhealthy.
	StoragedUnhealthy = "StoragedUnhealthy"
	// GraphdUnhealthy is added when one of graphd pods is unhealthy.
	GraphdUnhealthy = "GraphdUnhealthy"
	// VolumeNotProvisioning is added when one of the workloads volume is not provisioning.
	VolumeNotProvisioning = "VolumeNotProvisioning"
)

Variables

This section is empty.

Functions

func GetNodeTrueConditions added in v1.8.0

func GetNodeTrueConditions(status *corev1.NodeStatus) []corev1.NodeCondition

func IsBackupClean added in v1.8.0

func IsBackupClean(backup *v1alpha1.NebulaBackup) bool

func IsBackupComplete added in v1.8.0

func IsBackupComplete(backup *v1alpha1.NebulaBackup) bool

func IsBackupFailed added in v1.8.0

func IsBackupFailed(backup *v1alpha1.NebulaBackup) bool

func IsBackupInvalid added in v1.8.0

func IsBackupInvalid(backup *v1alpha1.NebulaBackup) bool

func IsNodeReadyFalseOrUnknown added in v1.8.0

func IsNodeReadyFalseOrUnknown(status *corev1.NodeStatus) bool

func IsRestoreComplete added in v1.4.0

func IsRestoreComplete(restore *v1alpha1.NebulaRestore) bool

func IsRestoreFailed added in v1.4.0

func IsRestoreFailed(restore *v1alpha1.NebulaRestore) bool

func IsRestoreInvalid added in v1.4.0

func IsRestoreInvalid(restore *v1alpha1.NebulaRestore) bool

func IsRestoreMetadComplete added in v1.4.0

func IsRestoreMetadComplete(restore *v1alpha1.NebulaRestore) bool

func IsRestoreStoragedComplete added in v1.4.0

func IsRestoreStoragedComplete(restore *v1alpha1.NebulaRestore) bool

func NewNebulaClusterCondition

func NewNebulaClusterCondition(
	condType v1alpha1.NebulaClusterConditionType,
	status corev1.ConditionStatus,
	reason, message string,
) *v1alpha1.NebulaClusterCondition

func SetNebulaClusterCondition

func SetNebulaClusterCondition(status *v1alpha1.NebulaClusterStatus, condition *v1alpha1.NebulaClusterCondition)

func UpdateNebulaBackupCondition added in v1.8.0

func UpdateNebulaBackupCondition(status *v1alpha1.BackupStatus, condition *v1alpha1.BackupCondition) bool

func UpdateNebulaRestoreCondition added in v1.4.0

func UpdateNebulaRestoreCondition(status *v1alpha1.RestoreStatus, condition *v1alpha1.RestoreCondition) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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