Skip to content

Commit 76f6520

Browse files
authored
[installer] Actually add 'inactivityPeriodForRepos' to server configmap
1 parent cf4b991 commit 76f6520

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

install/installer/pkg/components/server/configmap.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
176176
return nil
177177
})
178178

179+
inactivityPeriodForRepos := 0
180+
_ = ctx.WithExperimental(func(cfg *experimental.Config) error {
181+
if cfg.WebApp != nil && cfg.WebApp.Server != nil && cfg.WebApp.Server.InactivityPeriodForRepos != nil {
182+
inactivityPeriodForRepos = *cfg.WebApp.Server.InactivityPeriodForRepos
183+
}
184+
return nil
185+
})
186+
179187
// todo(sje): all these values are configurable
180188
scfg := ConfigSerialized{
181189
Version: ctx.VersionManifest.Version,
@@ -264,6 +272,7 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
264272
"*": 50,
265273
},
266274
WorkspaceClasses: workspaceClasses,
275+
InactivityPeriodForRepos: inactivityPeriodForRepos,
267276
}
268277

269278
fc, err := common.ToJSONString(scfg)

0 commit comments

Comments
 (0)