add sleep to failing-dc fixture so docker have time to gather logs from hook container
@@ -22,8 +22,14 @@ spec:
execNewPod:
containerName: myapp
command:
- - /bin/echo
- - test pre hook executed
+ - /bin/sh
+ - -c
+ - |
+ echo test pre hook executed
+ # FIXME: The sleep here is needed so the Docker have time to acquire the
+ # logs from this hook. This is a bug and this sleep should be removed
+ # when the Docker bug is fixed.
+ sleep 1
template:
metadata:
creationTimestamp: null
