Documentation ¶
Overview ¶
Package hibernation contains all the logic to hibernate a CNPG cluster
Index ¶
Constants ¶
View Source
const ( // HibernationOff is the shadow of utils.HibernationAnnotationValueOff, for compatibility HibernationOff = string(utils.HibernationAnnotationValueOff) // HibernationOn is the shadow of utils.HibernationAnnotationValueOn, for compatibility HibernationOn = string(utils.HibernationAnnotationValueOn) )
View Source
const ( // HibernationConditionType is the name of the condition representing // the hibernation status HibernationConditionType = "cnpg.io/hibernation" // HibernationConditionReasonWrongAnnotationValue is the value of the hibernation // condition that is used when the value of the annotation is not correct HibernationConditionReasonWrongAnnotationValue = "WrongAnnotationValue" // HibernationConditionReasonHibernated is the value of the hibernation // condition that is used when the cluster is hibernated HibernationConditionReasonHibernated = "Hibernated" // HibernationConditionReasonDeletingPods is the value of the hibernation // condition that is used when the operator is deleting // the cluster's Pod HibernationConditionReasonDeletingPods = "DeletingPods" // HibernationConditionReasonWaitingPodsDeletion is the value of the // hibernation condition that is used when the operator is waiting for a Pod // to be deleted HibernationConditionReasonWaitingPodsDeletion = "WaitingPodsDeletion" )
Variables ¶
This section is empty.
Functions ¶
func EnrichStatus ¶
EnrichStatus obtains and classifies the hibernation status of the cluster
Types ¶
type ErrInvalidHibernationValue ¶
type ErrInvalidHibernationValue struct {
// contains filtered or unexported fields
}
ErrInvalidHibernationValue is raised when the hibernation annotation has an invalid value
func (*ErrInvalidHibernationValue) Error ¶
func (err *ErrInvalidHibernationValue) Error() string
Error implements the error interface
Click to show internal directories.
Click to hide internal directories.