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
commit 700cef0989
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
}