@@ -403,8 +403,9 @@ type HealthcheckConfig struct {
403
403
}
404
404
405
405
const (
406
- annotationEnterpriseKey = "enterprise"
407
- annotationSecretKey = "secret"
406
+ annotationFormatDuration = "format_duration"
407
+ annotationEnterpriseKey = "enterprise"
408
+ annotationSecretKey = "secret"
408
409
// annotationExternalProxies is used to mark options that are used by workspace
409
410
// proxies. This is used to filter out options that are not relevant.
410
411
annotationExternalProxies = "external_workspace_proxies"
@@ -630,6 +631,7 @@ when required by your organization's security policy.`,
630
631
Default : time .Minute .String (),
631
632
Value : & c .AutobuildPollInterval ,
632
633
YAML : "autobuildPollInterval" ,
634
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
633
635
},
634
636
{
635
637
Name : "Job Hang Detector Interval" ,
@@ -640,6 +642,7 @@ when required by your organization's security policy.`,
640
642
Default : time .Minute .String (),
641
643
Value : & c .JobHangDetectorInterval ,
642
644
YAML : "jobHangDetectorInterval" ,
645
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
643
646
},
644
647
httpAddress ,
645
648
tlsBindAddress ,
@@ -1333,6 +1336,7 @@ when required by your organization's security policy.`,
1333
1336
Value : & c .Provisioner .DaemonPollInterval ,
1334
1337
Group : & deploymentGroupProvisioning ,
1335
1338
YAML : "daemonPollInterval" ,
1339
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
1336
1340
},
1337
1341
{
1338
1342
Name : "Poll Jitter" ,
@@ -1343,6 +1347,7 @@ when required by your organization's security policy.`,
1343
1347
Value : & c .Provisioner .DaemonPollJitter ,
1344
1348
Group : & deploymentGroupProvisioning ,
1345
1349
YAML : "daemonPollJitter" ,
1350
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
1346
1351
},
1347
1352
{
1348
1353
Name : "Force Cancel Interval" ,
@@ -1353,6 +1358,7 @@ when required by your organization's security policy.`,
1353
1358
Value : & c .Provisioner .ForceCancelInterval ,
1354
1359
Group : & deploymentGroupProvisioning ,
1355
1360
YAML : "forceCancelInterval" ,
1361
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
1356
1362
},
1357
1363
{
1358
1364
Name : "Provisioner Daemon Pre-shared Key (PSK)" ,
@@ -1502,10 +1508,11 @@ when required by your organization's security policy.`,
1502
1508
// The default value is essentially "forever", so just use 100 years.
1503
1509
// We have to add in the 25 leap days for the frontend to show the
1504
1510
// "100 years" correctly.
1505
- Default : ((100 * 365 * time .Hour * 24 ) + (25 * time .Hour * 24 )).String (),
1506
- Value : & c .MaxTokenLifetime ,
1507
- Group : & deploymentGroupNetworkingHTTP ,
1508
- YAML : "maxTokenLifetime" ,
1511
+ Default : ((100 * 365 * time .Hour * 24 ) + (25 * time .Hour * 24 )).String (),
1512
+ Value : & c .MaxTokenLifetime ,
1513
+ Group : & deploymentGroupNetworkingHTTP ,
1514
+ YAML : "maxTokenLifetime" ,
1515
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
1509
1516
},
1510
1517
{
1511
1518
Name : "Enable swagger endpoint" ,
@@ -1613,6 +1620,7 @@ when required by your organization's security policy.`,
1613
1620
Hidden : true ,
1614
1621
Default : time .Hour .String (),
1615
1622
Value : & c .MetricsCacheRefreshInterval ,
1623
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
1616
1624
},
1617
1625
{
1618
1626
Name : "Agent Stat Refresh Interval" ,
@@ -1622,6 +1630,7 @@ when required by your organization's security policy.`,
1622
1630
Hidden : true ,
1623
1631
Default : (30 * time .Second ).String (),
1624
1632
Value : & c .AgentStatRefreshInterval ,
1633
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
1625
1634
},
1626
1635
{
1627
1636
Name : "Agent Fallback Troubleshooting URL" ,
@@ -1688,6 +1697,7 @@ when required by your organization's security policy.`,
1688
1697
Value : & c .SessionDuration ,
1689
1698
Group : & deploymentGroupNetworkingHTTP ,
1690
1699
YAML : "sessionDuration" ,
1700
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
1691
1701
},
1692
1702
{
1693
1703
Name : "Disable Session Expiry Refresh" ,
@@ -1790,6 +1800,7 @@ Write out the current server config as YAML to stdout.`,
1790
1800
Value : & c .ProxyHealthStatusInterval ,
1791
1801
Group : & deploymentGroupNetworkingHTTP ,
1792
1802
YAML : "proxyHealthInterval" ,
1803
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
1793
1804
},
1794
1805
{
1795
1806
Name : "Default Quiet Hours Schedule" ,
@@ -1821,6 +1832,7 @@ Write out the current server config as YAML to stdout.`,
1821
1832
Value : & c .Healthcheck .Refresh ,
1822
1833
Group : & deploymentGroupIntrospectionHealthcheck ,
1823
1834
YAML : "refresh" ,
1835
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
1824
1836
},
1825
1837
{
1826
1838
Name : "Health Check Threshold: Database" ,
@@ -1831,6 +1843,7 @@ Write out the current server config as YAML to stdout.`,
1831
1843
Value : & c .Healthcheck .ThresholdDatabase ,
1832
1844
Group : & deploymentGroupIntrospectionHealthcheck ,
1833
1845
YAML : "thresholdDatabase" ,
1846
+ Annotations : clibase.Annotations {}.Mark (annotationFormatDuration , "true" ),
1834
1847
},
1835
1848
}
1836
1849
0 commit comments