Skip to content

Commit b94392c

Browse files
authored
Update the default hardcoded k8sTimeout value to configurable variable
1 parent 83f05b7 commit b94392c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/concurrent_core_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package core
55
import (
66
"context"
77
"encoding/json"
8+
"fmt"
89
"sync"
910
"testing"
1011

operator/controllers/orchestrator/installer/installer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const (
5252
VolumeReferenceCRDName = "tridentvolumereferences.trident.netapp.io"
5353
ConfiguratorCRDName = "tridentconfigurators.trident.netapp.io"
5454

55-
DefaultTimeout = 30
55+
DefaultTimeout = 180
5656
)
5757

5858
var (
@@ -1903,7 +1903,7 @@ func (i *Installer) getTridentVersionYAML(imageName string, controllingCRDetails
19031903
}
19041904

19051905
// Wait for Trident version pod to provide information
1906-
timeout := 30 * time.Second
1906+
timeout := k8sTimeout
19071907
output, err := i.client.ExecPodForVersionInformation(podName, tridentVersionCommand, timeout)
19081908
if err != nil {
19091909
errMessage := fmt.Sprintf("failed to exec Trident version pod '%s' (image: '%s') for the information; err: %v",

0 commit comments

Comments
 (0)