File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ func (s CustomWaitingResource) IsDoneApplying() DoneApplyState {
131
131
}
132
132
133
133
unblockChangeMsg := ""
134
+ message := "No failing or successful conditions found"
134
135
135
136
// If no failure conditions found, check on successful ones
136
137
for _ , condMatcher := range s .waitRule .ConditionMatchers {
@@ -151,6 +152,9 @@ func (s CustomWaitingResource) IsDoneApplying() DoneApplyState {
151
152
cond .Type , condMatcher .Status , cond .Reason )
152
153
continue
153
154
}
155
+ if cond .Message != "" {
156
+ message = cond .Message
157
+ }
154
158
}
155
159
}
156
160
}
@@ -164,7 +168,7 @@ func (s CustomWaitingResource) IsDoneApplying() DoneApplyState {
164
168
return DoneApplyState {Done : false , UnblockChanges : true , Message : unblockChangeMsg }
165
169
}
166
170
167
- return DoneApplyState {Done : false , Message : "No failing or successful conditions found" }
171
+ return DoneApplyState {Done : false , Message : message }
168
172
}
169
173
170
174
func (s CustomWaitingResource ) hasTimeoutOccurred (timeout string , key string ) bool {
You can’t perform that action at this time.
0 commit comments