Revert "Revert "feat: Support config files with viper"" (#4693)

This commit is contained in:
Garrett Delfosse
2022-10-21 16:55:20 -04:00
committed by GitHub
parent d15b4159ef
commit 372fb1f345
35 changed files with 921 additions and 1089 deletions

View File

@ -91,7 +91,7 @@ type Options struct {
IncludeProvisionerDaemon bool
MetricsCacheRefreshInterval time.Duration
AgentStatsRefreshInterval time.Duration
DeploymentFlags *codersdk.DeploymentFlags
DeploymentConfig *codersdk.DeploymentConfig
// Overriding the database is heavily discouraged.
// It should only be used in cases where multiple Coder
@ -268,7 +268,7 @@ func NewOptions(t *testing.T, options *Options) (func(http.Handler), context.Can
AutoImportTemplates: options.AutoImportTemplates,
MetricsCacheRefreshInterval: options.MetricsCacheRefreshInterval,
AgentStatsRefreshInterval: options.AgentStatsRefreshInterval,
DeploymentFlags: options.DeploymentFlags,
DeploymentConfig: options.DeploymentConfig,
}
}