mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
test: bump deployment condition timeout
This commit is contained in:
parent
c84f3abca1
commit
e8f1d9bac6
@ -3462,7 +3462,7 @@ func WaitForObservedDeployment(c clientset.Interface, ns, deploymentName string,
|
|||||||
|
|
||||||
func WaitForDeploymentWithCondition(c clientset.Interface, ns, deploymentName, reason string, condType extensions.DeploymentConditionType) error {
|
func WaitForDeploymentWithCondition(c clientset.Interface, ns, deploymentName, reason string, condType extensions.DeploymentConditionType) error {
|
||||||
var conditions []extensions.DeploymentCondition
|
var conditions []extensions.DeploymentCondition
|
||||||
pollErr := wait.PollImmediate(time.Second, 1*time.Minute, func() (bool, error) {
|
pollErr := wait.PollImmediate(time.Second, 5*time.Minute, func() (bool, error) {
|
||||||
deployment, err := c.Extensions().Deployments(ns).Get(deploymentName, metav1.GetOptions{})
|
deployment, err := c.Extensions().Deployments(ns).Get(deploymentName, metav1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
|
Loading…
Reference in New Issue
Block a user