如何迫使头盔等待测试套件的结束?
$ helm test $RELEASE --namespace $NAMESPACE
NAME: myproject-test
LAST DEPLOYED: Fri Feb 14 10:43:04 2020
NAMESPACE: myproject-test-vjuh-init-helm
STATUS: deployed
REVISION: 1
TEST SUITE: myproject-test-django-test
Last Started: Fri Feb 14 10:45:53 2020
Last Completed: Fri Feb 14 10:50:54 2020
Phase: Failed
NOTES:
Deployed
Error: timed out waiting for the condition
ERROR: Job failed: exit code 1
将--timeout 30m
或更长时间添加到您的头盔命令中:
helm test $RELEASE --namespace $NAMESPACE --timeout 30m
如手册helm test --help
中所述:
--timeout duration time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)