File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -334,15 +334,19 @@ def status(self):
334334 if condition ["type" ] == self .Conditions .Type .AVAILABLE :
335335 return condition ["reason" ]
336336
337- def _wait_for_configuration_status_unknown (self ):
337+ def _wait_for_configuration_conditions_unknown_or_progressing (self ):
338338 samples = TimeoutSampler (
339339 wait_timeout = 30 , sleep = 1 , func = lambda : self .instance .status .conditions
340340 )
341341 for sample in samples :
342342 if (
343343 sample
344344 and sample [0 ]["type" ] == self .Conditions .Type .AVAILABLE
345- and sample [0 ]["status" ] == self .Condition .Status .UNKNOWN
345+ and (
346+ sample [0 ]["status" ] == self .Condition .Status .UNKNOWN
347+ or sample [0 ]["reason" ]
348+ == self .Conditions .Reason .CONFIGURATION_PROGRESSING
349+ )
346350 ):
347351 return
348352
@@ -367,7 +371,7 @@ def _process_failed_status():
367371 )
368372
369373 # if we get here too fast there are no conditions, we need to wait.
370- self ._wait_for_configuration_status_unknown ()
374+ self ._wait_for_configuration_conditions_unknown_or_progressing ()
371375
372376 samples = TimeoutSampler (wait_timeout = 480 , sleep = 1 , func = self .status )
373377 try :
You can’t perform that action at this time.
0 commit comments