Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit e5635ed

Browse files
committed
Configurable token duration
Returns the default sync interval to 10 minutes as well.
1 parent 070caae commit e5635ed

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

main.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,15 @@ func main() {
7373
flag.DurationVar(
7474
&syncPeriod,
7575
"sync-period",
76-
9*time.Minute,
77-
"The minimum interval at which watched resources are reconciled (e.g. 9m)",
76+
10*time.Minute,
77+
"The minimum interval at which watched resources are reconciled (e.g. 10m)",
78+
)
79+
80+
flag.DurationVar(
81+
&controllers.DefaultTokenTTL,
82+
"bootstrap-token-ttl",
83+
15*time.Minute,
84+
"The amount of time the bootstrap token will be valid",
7885
)
7986

8087
flag.StringVar(

0 commit comments

Comments
 (0)