Skip to content
Snippets Groups Projects
Unverified Commit 700cef09 authored by Hidde Beydals's avatar Hidde Beydals Committed by GitHub
Browse files

Merge pull request #1349 from fluxcd/fix-throttling

Avoid throttling when some Flux CRDs are not registered
parents d68158dd 3ed3e553
No related branches found
No related tags found
No related merge requests found
...@@ -156,6 +156,10 @@ func KubeConfig(kubeConfigPath string, kubeContext string) (*rest.Config, error) ...@@ -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
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment