Merge pull request #980 from hongchaodeng/f2

e2e: work around k8s 1.6 grace period issue
This commit is contained in:
Hongchao Deng 2017-04-21 14:54:10 -07:00 коммит произвёл GitHub
Родитель 9f449f9a37 4b45db451e
Коммит 7f12589890
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -147,7 +147,9 @@ func (f *Framework) DeleteEtcdOperatorCompletely() error {
if err != nil {
return err
}
err = retryutil.Retry(2*time.Second, 5, func() (bool, error) {
// On k8s 1.6.1, grace period isn't accurate. It took ~10s for operator pod to completely disappear.
// We work around by increasing the wait time. Revisit this later.
err = retryutil.Retry(5*time.Second, 6, func() (bool, error) {
_, err := f.KubeClient.CoreV1().Pods(f.Namespace).Get("etcd-operator", metav1.GetOptions{})
if err == nil {
return false, nil