increase kubectl command timeout

pull/16387/head
Steven Powell 2023-04-26 22:01:25 -07:00
parent 6d9a5bfaa1
commit 1fad41a69d
1 changed files with 1 additions and 1 deletions

View File

@ -439,7 +439,7 @@ func enableOrDisableAddonInternal(cc *config.ClusterConfig, addon *assets.Addon,
// Retry, because sometimes we race against an apiserver restart
apply := func() error {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
defer cancel()
_, err := runner.RunCmd(kubectlCommand(ctx, cc, deployFiles, enable, force))
if err != nil {