feat(servers): 新建服务器默认空闲 10 分钟自动停服,面板可调,converge 回填旧服,系统服不休眠
This commit is contained in:
23 files changed
+453
-18
No files matched your search
@@ -1576,6 +1576,9 @@ func (c *fakeCluster) PatchServerSpec(_ context.Context, n string, p ServerSpecP
|
||||
if p.AutostartPolicy != nil {
|
||||
info.AutostartPolicy = string(*p.AutostartPolicy)
|
||||
}
|
||||
if p.IdleStopSeconds != nil {
|
||||
info.IdleStopSeconds = *p.IdleStopSeconds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user