Equal returns true if the condition is identical to the supplied condition, ignoring the LastTransitionTime.
(other Condition)
| 87 | // Equal returns true if the condition is identical to the supplied condition, |
| 88 | // ignoring the LastTransitionTime. |
| 89 | func (c Condition) Equal(other Condition) bool { |
| 90 | return c.Type == other.Type && |
| 91 | c.Status == other.Status && |
| 92 | c.Reason == other.Reason && |
| 93 | c.Message == other.Message |
| 94 | } |
| 95 | |
| 96 | // WithMessage returns a condition by adding the provided message to existing |
| 97 | // condition. |
no outgoing calls