From cf486a480e3f915c4527c6f0f5c046a1dfbcd9ff Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Thu, 17 Jan 2019 13:15:48 -0800 Subject: [PATCH] Hooks result should have Running phase by default (given we don't have Pending state) (#1037) --- controller/sync_hooks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controller/sync_hooks.go b/controller/sync_hooks.go index a70fd06af9..d9109742ff 100644 --- a/controller/sync_hooks.go +++ b/controller/sync_hooks.go @@ -311,6 +311,7 @@ func newHookStatus(hook *unstructured.Unstructured, hookType appv1.HookType) app Group: gvk.Group, Version: gvk.Version, HookType: hookType, + HookPhase: appv1.OperationRunning, Namespace: hook.GetNamespace(), } if isBatchJob(gvk) {