Skip to content

Commit 5f8b864

Browse files
committed
fix status apply
Signed-off-by: Pavel Okhlopkov <[email protected]>
1 parent 82f31d4 commit 5f8b864

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

internal/common-hooks/readiness/hook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func CheckModuleReadiness(cfg *ReadinessHookConfig) func(ctx context.Context, in
200200
return fmt.Errorf("failed to change status.conditions: %w", err)
201201
}
202202

203-
if _, err = k8sClient.Dynamic().Resource(*GetModuleGVK()).UpdateStatus(ctx, uModule, metav1.UpdateOptions{}); err != nil {
203+
if _, err = k8sClient.Dynamic().Resource(*GetModuleGVK()).ApplyStatus(ctx, cfg.ModuleName, uModule, metav1.ApplyOptions{}); err != nil {
204204
return fmt.Errorf("update module resource: %w", err)
205205
}
206206

0 commit comments

Comments
 (0)