错误:长时间头盔测试期间等待条件超时

问题描述 投票:0回答:1

如何迫使头盔等待测试套件的结束?

 $ 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
kubernetes-helm
1个回答
0
投票

--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)
© www.soinside.com 2019 - 2024. All rights reserved.