File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
internal/common-hooks/readiness Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ const (
74
74
conditionStatusIsReady = "IsReady"
75
75
modulePhaseReconciling = "Reconciling"
76
76
modulePhaseReady = "Ready"
77
+ modulePhaseHookError = "HookError"
77
78
)
78
79
79
80
func CheckModuleReadiness (cfg * ReadinessHookConfig ) func (ctx context.Context , input * pkg.HookInput ) error {
@@ -130,7 +131,7 @@ func CheckModuleReadiness(cfg *ReadinessHookConfig) func(ctx context.Context, in
130
131
return errors .New ("can't find status.phase" )
131
132
}
132
133
133
- if phase != modulePhaseReconciling && phase != modulePhaseReady {
134
+ if phase != modulePhaseReconciling && phase != modulePhaseReady && phase != modulePhaseHookError {
134
135
logger .Debug ("waiting for sustainable phase" , slog .String ("phase" , phase ))
135
136
136
137
return nil
You can’t perform that action at this time.
0 commit comments