Skip to content

Commit cc63d58

Browse files
committed
relax client factory cleanup
1 parent 750460b commit cc63d58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cluster/factory.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (f *ClientFactory) Get(clientConfig cluster.ClientConfiguration, impersonat
124124
key := sha256sum(keyData)
125125

126126
if client, ok := f.clients[key]; ok {
127-
client.validUntil = time.Now().Add(10 * time.Minute)
127+
client.validUntil = time.Now().Add(15 * time.Minute)
128128
return client, nil
129129
}
130130

@@ -148,7 +148,7 @@ func (f *ClientFactory) Get(clientConfig cluster.ClientConfiguration, impersonat
148148
discoveryClient: clientset,
149149
eventBroadcaster: eventBroadcaster,
150150
eventRecorder: eventRecorder,
151-
validUntil: time.Now().Add(10 * time.Minute),
151+
validUntil: time.Now().Add(15 * time.Minute),
152152
}
153153
f.clients[key] = client
154154

0 commit comments

Comments
 (0)