Skip to content

Commit de39a20

Browse files
committed
Fix potential problem where a terminal to a wrong pod was opened
1 parent c49d90c commit de39a20

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

pkg/devspace/configure/building.go

Lines changed: 0 additions & 6 deletions
This file was deleted.

pkg/devspace/deploy/helm/deploy.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import (
1616
// WaitForReleasePodToGetReady waits for the release pod to get ready
1717
func WaitForReleasePodToGetReady(client *kubernetes.Clientset, releaseName, releaseNamespace string, releaseRevision int) (*k8sv1.Pod, error) {
1818
for true {
19+
time.Sleep(4 * time.Second)
20+
1921
podList, err := client.Core().Pods(releaseNamespace).List(metav1.ListOptions{
2022
LabelSelector: "release=" + releaseName,
2123
})
@@ -71,12 +73,8 @@ func WaitForReleasePodToGetReady(client *kubernetes.Clientset, releaseName, rele
7173
} else {
7274
log.Info("Waiting for release to be deployed.")
7375
}
74-
75-
time.Sleep(2 * time.Second)
7676
}
7777

78-
log.StopWait()
79-
8078
return nil, nil
8179
}
8280

0 commit comments

Comments
 (0)