mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
Merge pull request #7364 from zexi/hotfix/adjust-sched-condition-width
adjust schedule resource condition width
This commit is contained in:
@@ -105,7 +105,7 @@ type SDynamicschedtag struct {
|
||||
|
||||
// 动态调度标间的匹配条件
|
||||
// example: host.sys_load > 1.5 || host.mem_used_percent > 0.7 => "high_load"
|
||||
Condition string `width:"256" charset:"ascii" nullable:"false" list:"user" create:"required" update:"admin"`
|
||||
Condition string `width:"1024" charset:"ascii" nullable:"false" list:"user" create:"required" update:"admin"`
|
||||
|
||||
// 动态调度标签对应的调度标签
|
||||
// SchedtagId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required" update:"admin"`
|
||||
|
||||
@@ -58,7 +58,7 @@ type SSchedpolicy struct {
|
||||
db.SStandaloneResourceBase
|
||||
SSchedtagResourceBase
|
||||
|
||||
Condition string `width:"256" charset:"ascii" nullable:"false" list:"user" create:"required" update:"user"`
|
||||
Condition string `width:"1024" charset:"ascii" nullable:"false" list:"user" create:"required" update:"user"`
|
||||
Strategy string `width:"32" charset:"ascii" nullable:"false" list:"user" create:"required" update:"user"`
|
||||
|
||||
Enabled tristate.TriState `nullable:"false" default:"true" create:"optional" list:"user" update:"user"`
|
||||
|
||||
Reference in New Issue
Block a user