1
0
mirror of synced 2026-03-13 23:26:55 +00:00

Merge pull request #1349 from fluxcd/fix-throttling

Avoid throttling when some Flux CRDs are not registered
This commit is contained in:
Hidde Beydals
2021-05-26 17:42:22 +02:00
committed by GitHub

View File

@@ -156,6 +156,10 @@ func KubeConfig(kubeConfigPath string, kubeContext string) (*rest.Config, error)
return nil, fmt.Errorf("kubernetes configuration load failed: %w", err)
}
// avoid throttling request when some Flux CRDs are not registered
cfg.QPS = 50
cfg.Burst = 100
return cfg, nil
}