Documentation ¶
Overview ¶
Package condition provides functions to more easily work with kubernetes node conditions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeCondition ¶
type NodeCondition struct {
// contains filtered or unexported fields
}
NodeCondition is used to maintain state over individual conditions
func New ¶
func New(initial bool, condition corev1.NodeConditionType) NodeCondition
New returns a new condition struct
func (*NodeCondition) Get ¶
func (c *NodeCondition) Get() corev1.NodeCondition
Get returns the NodeCondition
func (*NodeCondition) Update ¶
func (c *NodeCondition) Update(condition bool) corev1.NodeCondition
Update returns the correct node condition based on the given condition
Click to show internal directories.
Click to hide internal directories.