Hooks result should have Running phase by default (given we don't have Pending state) (#1037)

This commit is contained in:
Alexander Matyushentsev 2019-01-17 13:15:48 -08:00 committed by GitHub
parent a36af99dcd
commit cf486a480e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {