mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #32866 from wojtek-t/decrease_namespace_creation_timeout
Automatic merge from submit-queue Decrease timeout for namespace creation in test If apiserver is unresponsive (e.g. because of crashloop or sth), we are wasting a lot of test time on retries.
This commit is contained in:
commit
0dc72b7522
@ -1027,7 +1027,7 @@ func CreateTestingNS(baseName string, c *client.Client, labels map[string]string
|
||||
}
|
||||
// Be robust about making the namespace creation call.
|
||||
var got *api.Namespace
|
||||
if err := wait.PollImmediate(Poll, SingleCallTimeout, func() (bool, error) {
|
||||
if err := wait.PollImmediate(Poll, 30*time.Second, func() (bool, error) {
|
||||
var err error
|
||||
got, err = c.Namespaces().Create(namespaceObj)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user