Skip to content

Commit 3652fce

Browse files
committed
fix hook error stopped readiness
Signed-off-by: Pavel Okhlopkov <[email protected]>
1 parent df213e9 commit 3652fce

File tree

1 file changed

+2
-1
lines changed
  • internal/common-hooks/readiness

1 file changed

+2
-1
lines changed

internal/common-hooks/readiness/hook.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ const (
7474
conditionStatusIsReady = "IsReady"
7575
modulePhaseReconciling = "Reconciling"
7676
modulePhaseReady = "Ready"
77+
modulePhaseHookError = "HookError"
7778
)
7879

7980
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
130131
return errors.New("can't find status.phase")
131132
}
132133

133-
if phase != modulePhaseReconciling && phase != modulePhaseReady {
134+
if phase != modulePhaseReconciling && phase != modulePhaseReady && phase != modulePhaseHookError {
134135
logger.Debug("waiting for sustainable phase", slog.String("phase", phase))
135136

136137
return nil

0 commit comments

Comments
 (0)