fix random pod spread

Signed-off-by: Areeb Ahmed <areebahmed0709@gmail.com>
This commit is contained in:
Areeb Ahmed
2026-07-08 15:44:39 +03:00
parent 041dcec566
commit ec41ad745d
8 changed files with 73 additions and 9 deletions
+11
View File
@@ -128,6 +128,17 @@ func (d *DriverHandle) Client(ctx context.Context, opt ...client.ClientOpt) (*cl
return d.client, d.err
}
func (d *DriverHandle) UncachedClient(ctx context.Context) (*client.Client, error) {
return d.Driver.Client(ctx, d.getClientOptions()...)
}
func (d *DriverHandle) RequiresUncachedClient() bool {
if p, ok := d.Driver.(UncachedClientDriver); ok {
return p.RequiresUncachedClient()
}
return false
}
func (d *DriverHandle) getClientOptions() []client.ClientOpt {
return []client.ClientOpt{
client.WithTracerDelegate(delegated.DefaultExporter),