Avoid throttling when some Flux CRDs are not registered

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
pull/1349/head
Stefan Prodan 4 years ago
parent d68158ddc9
commit 3ed3e553e7
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

@ -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
}

Loading…
Cancel
Save