@@ -8,7 +8,7 @@ use url::Url;
88#[ derive( Debug , Serialize , Deserialize , Clone , JsonSchema ) ]
99#[ serde( rename_all = "snake_case" , deny_unknown_fields) ]
1010pub struct ClusterProvision {
11- /// Configuration for server pools that use a margin for scaling .
11+ /// Configuration for server pools.
1212 pub pools : ClusterPools ,
1313
1414 #[ schemars( with = "Option<String>" ) ]
@@ -53,7 +53,6 @@ pub struct ClusterPools {
5353#[ derive( Debug , Serialize , Deserialize , Clone , JsonSchema ) ]
5454#[ serde( rename_all = "snake_case" , deny_unknown_fields) ]
5555pub struct ClusterPoolJob {
56- pub autoscale_margin : u32 ,
5756 // All other properties are read from Pegboard since they're identical
5857}
5958
@@ -62,8 +61,6 @@ pub struct ClusterPoolJob {
6261#[ derive( Debug , Serialize , Deserialize , Clone , Default , JsonSchema ) ]
6362#[ serde( rename_all = "snake_case" , deny_unknown_fields) ]
6463pub struct ClusterPoolPegboard {
65- pub autoscale_margin : u32 ,
66-
6764 pub vlan_addr_range_min : Option < Ipv4Addr > ,
6865 pub vlan_addr_range_max : Option < Ipv4Addr > ,
6966
@@ -134,8 +131,6 @@ impl ClusterPoolPegboard {
134131#[ derive( Debug , Serialize , Deserialize , Clone , JsonSchema ) ]
135132#[ serde( rename_all = "snake_case" , deny_unknown_fields) ]
136133pub struct ClusterPoolGg {
137- pub autoscale_margin : u32 ,
138-
139134 #[ schemars( with = "Option<String>" ) ]
140135 pub vlan_ip_net : Option < Ipv4Net > ,
141136 pub firewall_rules : Option < Vec < FirewallRule > > ,
@@ -217,8 +212,6 @@ impl ClusterPoolGg {
217212#[ derive( Debug , Serialize , Deserialize , Clone , JsonSchema ) ]
218213#[ serde( rename_all = "snake_case" , deny_unknown_fields) ]
219214pub struct ClusterPoolAts {
220- pub autoscale_margin : u32 ,
221-
222215 #[ schemars( with = "Option<String>" ) ]
223216 pub vlan_ip_net : Option < Ipv4Net > ,
224217 pub firewall_rules : Option < Vec < FirewallRule > > ,
@@ -263,8 +256,6 @@ impl ClusterPoolFdb {
263256#[ derive( Debug , Serialize , Deserialize , Clone , JsonSchema ) ]
264257#[ serde( rename_all = "snake_case" , deny_unknown_fields) ]
265258pub struct ClusterPoolWorker {
266- pub autoscale_margin : u32 ,
267-
268259 #[ schemars( with = "Option<String>" ) ]
269260 pub vlan_ip_net : Option < Ipv4Net > ,
270261 pub firewall_rules : Option < Vec < FirewallRule > > ,
@@ -287,8 +278,6 @@ impl ClusterPoolWorker {
287278#[ derive( Debug , Serialize , Deserialize , Clone , JsonSchema ) ]
288279#[ serde( rename_all = "snake_case" , deny_unknown_fields) ]
289280pub struct ClusterPoolNats {
290- pub autoscale_margin : u32 ,
291-
292281 #[ schemars( with = "Option<String>" ) ]
293282 pub vlan_ip_net : Option < Ipv4Net > ,
294283 pub firewall_rules : Option < Vec < FirewallRule > > ,
@@ -311,8 +300,6 @@ impl ClusterPoolNats {
311300#[ derive( Debug , Serialize , Deserialize , Clone , JsonSchema ) ]
312301#[ serde( rename_all = "snake_case" , deny_unknown_fields) ]
313302pub struct ClusterPoolGuard {
314- pub autoscale_margin : u32 ,
315-
316303 #[ schemars( with = "Option<String>" ) ]
317304 pub vlan_ip_net : Option < Ipv4Net > ,
318305 pub firewall_rules : Option < Vec < FirewallRule > > ,
0 commit comments