Skip to content

Commit

Permalink
Merge pull request #2142 from yanggangtony/fix-config
Browse files Browse the repository at this point in the history
🌱fix default value for cfg.Burst
  • Loading branch information
k8s-ci-robot committed Jan 27, 2023
2 parents 80c1894 + 66eae81 commit dd6bafd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/client/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ func GetConfigWithContext(context string) (*rest.Config, error) {
if err != nil {
return nil, err
}

if cfg.QPS == 0.0 {
cfg.QPS = 20.0
cfg.Burst = 30.0
}

if cfg.Burst == 0 {
cfg.Burst = 30
}
return cfg, nil
}

Expand Down

0 comments on commit dd6bafd

Please sign in to comment.