@@ -2104,19 +2104,21 @@ Write out the current server config as YAML to stdout.`,
2104
2104
Default : (time .Minute * 5 ).String (),
2105
2105
Group : & deploymentGroupNotifications ,
2106
2106
YAML : "retry-interval" ,
2107
+ Annotations : serpent.Annotations {}.Mark (annotationFormatDuration , "true" ),
2107
2108
},
2108
2109
{
2109
2110
Name : "Notifications: Store Sync Interval" ,
2110
2111
Description : "The notifications system buffers message updates in memory to ease pressure on the database. " +
2111
2112
"This option controls how often it synchronizes its state with the database. The shorter this value the " +
2112
2113
"lower the change of state inconsistency in a non-graceful shutdown - but it also increases load on the " +
2113
2114
"database. It is recommended to keep this option at its default value." ,
2114
- Flag : "notifications-store-sync-interval" ,
2115
- Env : "CODER_NOTIFICATIONS_STORE_SYNC_INTERVAL" ,
2116
- Value : & c .Notifications .StoreSyncInterval ,
2117
- Default : (time .Second * 2 ).String (),
2118
- Group : & deploymentGroupNotifications ,
2119
- YAML : "store-sync-interval" ,
2115
+ Flag : "notifications-store-sync-interval" ,
2116
+ Env : "CODER_NOTIFICATIONS_STORE_SYNC_INTERVAL" ,
2117
+ Value : & c .Notifications .StoreSyncInterval ,
2118
+ Default : (time .Second * 2 ).String (),
2119
+ Group : & deploymentGroupNotifications ,
2120
+ YAML : "store-sync-interval" ,
2121
+ Annotations : serpent.Annotations {}.Mark (annotationFormatDuration , "true" ),
2120
2122
},
2121
2123
{
2122
2124
Name : "Notifications: Store Sync Buffer Size" ,
@@ -2149,12 +2151,13 @@ Write out the current server config as YAML to stdout.`,
2149
2151
"is important in order for multiple running notifiers to not pick the same messages to deliver concurrently. " +
2150
2152
"This lease period will only expire if a notifier shuts down ungracefully; a dispatch of the notification " +
2151
2153
"releases the lease." ,
2152
- Flag : "notifications-lease-period" ,
2153
- Env : "CODER_NOTIFICATIONS_LEASE_PERIOD" ,
2154
- Value : & c .Notifications .LeasePeriod ,
2155
- Default : (time .Minute * 2 ).String (),
2156
- Group : & deploymentGroupNotifications ,
2157
- YAML : "lease-period" ,
2154
+ Flag : "notifications-lease-period" ,
2155
+ Env : "CODER_NOTIFICATIONS_LEASE_PERIOD" ,
2156
+ Value : & c .Notifications .LeasePeriod ,
2157
+ Default : (time .Minute * 2 ).String (),
2158
+ Group : & deploymentGroupNotifications ,
2159
+ YAML : "lease-period" ,
2160
+ Annotations : serpent.Annotations {}.Mark (annotationFormatDuration , "true" ),
2158
2161
},
2159
2162
{
2160
2163
Name : "Notifications: Lease Count" ,
@@ -2175,6 +2178,7 @@ Write out the current server config as YAML to stdout.`,
2175
2178
Default : (time .Second * 15 ).String (),
2176
2179
Group : & deploymentGroupNotifications ,
2177
2180
YAML : "fetch-interval" ,
2181
+ Annotations : serpent.Annotations {}.Mark (annotationFormatDuration , "true" ),
2178
2182
},
2179
2183
{
2180
2184
Name : "Notifications: Method" ,
@@ -2195,6 +2199,7 @@ Write out the current server config as YAML to stdout.`,
2195
2199
Default : time .Minute .String (),
2196
2200
Group : & deploymentGroupNotifications ,
2197
2201
YAML : "dispatch-timeout" ,
2202
+ Annotations : serpent.Annotations {}.Mark (annotationFormatDuration , "true" ),
2198
2203
},
2199
2204
{
2200
2205
Name : "Notifications: Email: From Address" ,
@@ -2210,6 +2215,7 @@ Write out the current server config as YAML to stdout.`,
2210
2215
Description : "The intermediary SMTP host through which emails are sent." ,
2211
2216
Flag : "notifications-email-smarthost" ,
2212
2217
Env : "CODER_NOTIFICATIONS_EMAIL_SMARTHOST" ,
2218
+ Default : "localhost:587" , // To pass validation.
2213
2219
Value : & c .Notifications .SMTP .Smarthost ,
2214
2220
Group : & deploymentGroupNotificationsEmail ,
2215
2221
YAML : "smarthost" ,
0 commit comments