mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-24 08:31:47 +00:00
Merge pull request #1349 from fluxcd/fix-throttling
Avoid throttling when some Flux CRDs are not registered
This commit is contained in:
commit
700cef0989
1 changed files with 4 additions and 0 deletions
|
|
@ -156,6 +156,10 @@ func KubeConfig(kubeConfigPath string, kubeContext string) (*rest.Config, error)
|
||||||
return nil, fmt.Errorf("kubernetes configuration load failed: %w", err)
|
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
|
return cfg, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue