Skip to content

Commit 65482af

Browse files
committed
add comments
Signed-off-by: Pavel Okhlopkov <[email protected]>
1 parent f246920 commit 65482af

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

internal/common-hooks/readiness/hook.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,14 @@ func CheckModuleReadiness(cfg *ReadinessHookConfig) func(ctx context.Context, in
186186
if probeReason == "" {
187187
delete(cond, "reason")
188188
}
189+
190+
// Update module status phase
191+
phase = probePhase
189192
}
190193

191194
uConditions[condIdx] = cond
192-
// Update module status phase
193-
phase = probePhase
194195

196+
// creating patch
195197
patch, err := json.Marshal(map[string]any{
196198
"status": map[string]any{
197199
"conditions": uConditions,

0 commit comments

Comments
 (0)