Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusKey = "consul.io/node-health" StatusConditionHealthy = "healthy" NodeHealthyMessage = "All node health checks are passing" NodeUnhealthyMessage = "One or more node health checks are not passing" )
Variables ¶
View Source
var ( ConditionPassing = &pbresource.Condition{ Type: StatusConditionHealthy, State: pbresource.Condition_STATE_TRUE, Reason: pbcatalog.Health_HEALTH_PASSING.String(), Message: NodeHealthyMessage, } ConditionWarning = &pbresource.Condition{ Type: StatusConditionHealthy, State: pbresource.Condition_STATE_FALSE, Reason: pbcatalog.Health_HEALTH_WARNING.String(), Message: NodeUnhealthyMessage, } ConditionCritical = &pbresource.Condition{ Type: StatusConditionHealthy, State: pbresource.Condition_STATE_FALSE, Reason: pbcatalog.Health_HEALTH_CRITICAL.String(), Message: NodeUnhealthyMessage, } ConditionMaintenance = &pbresource.Condition{ Type: StatusConditionHealthy, State: pbresource.Condition_STATE_FALSE, Reason: pbcatalog.Health_HEALTH_MAINTENANCE.String(), Message: NodeUnhealthyMessage, } Conditions = map[pbcatalog.Health]*pbresource.Condition{ pbcatalog.Health_HEALTH_PASSING: ConditionPassing, pbcatalog.Health_HEALTH_WARNING: ConditionWarning, pbcatalog.Health_HEALTH_CRITICAL: ConditionCritical, pbcatalog.Health_HEALTH_MAINTENANCE: ConditionMaintenance, } )
Functions ¶
func NodeHealthController ¶
func NodeHealthController() controller.Controller
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.