You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// All fields of the condition are updated with the values given in the arguments, but the condition's LastTransitionTime is only updated (with the timestamp contained in the receiver struct) if the status changed.
89
89
// Returns the receiver for easy chaining.
90
90
func (c*conditionUpdater) UpdateCondition(conTypestring, status metav1.ConditionStatus, observedGenerationint64, reason, messagestring) *conditionUpdater {
91
+
ifreason=="" {
92
+
// the metav1.Condition type requires a reason, so let's add a dummy if none is given
It("should not change the last transition time if the same condition is updated multiple times with the last update setting it to the original value again", func() {
0 commit comments