Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Increase ctx timeout default value to 300 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitsakala committed Apr 22, 2020
1 parent 576b793 commit 26403b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/ctx_timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func CtxTimeOut(cfg *config.Config) {

// CtxTimeOutFlags adds to viper flags
func CtxTimeOutFlags(pf *flag.FlagSet, argToEnv map[string]string) {
pf.Int("ctx-timeout", 30, "context timeout for each k8s API request in seconds")
pf.Int("ctx-timeout", 300, "context timeout for each k8s API request in seconds")
viper.BindPFlag("ctx-timeout", pf.Lookup("ctx-timeout"))
argToEnv["ctx-timeout"] = "CTX_TIMEOUT"
}

0 comments on commit 26403b0

Please sign in to comment.