You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error_message="Node pool '${each.key}' has invalid eviction_policy '${each.value.eviction_policy}'. When priority is 'Spot', eviction_policy must be either 'Delete' or 'Deallocate' (case-insensitive)."
146
-
}
147
-
precondition {
148
-
condition=each.value.spot_max_price>=-1
149
-
error_message="Node pool '${each.key}' has invalid spot_max_price '${each.value.spot_max_price}'. The spot_max_price must be greater than or equal to -1."
error_message="Invalid priority values found. ${join(", ", [fork, vinvar.node_pools:"Node pool '${k}' has invalid priority '${v.priority}'"if!contains(["regular", "spot"], lower(v.priority))])}. Priority must be either 'Regular' or 'Spot' (case-insensitive)."
error_message="Invalid eviction_policy values found. ${join(", ", [fork, vinvar.node_pools:"Node pool '${k}' has invalid eviction_policy '${v.eviction_policy}'"iflower(v.priority) =="spot"&&!contains(["delete", "deallocate"], lower(v.eviction_policy))])}. When priority is 'Spot', eviction_policy must be either 'Delete' or 'Deallocate' (case-insensitive)."
105
106
}
106
107
107
108
validation {
108
-
condition=alltrue([
109
-
fork, vinvar.node_pools:v.spot_max_price>=-1
110
-
])
111
-
error_message="Each node pool's spot_max_price must be greater than or equal to -1."
109
+
condition=length([
110
+
fork, vinvar.node_pools:k
111
+
if!(v.spot_max_price==-1|| v.spot_max_price>=0)
112
+
]) ==0
113
+
error_message="Invalid spot_max_price values found. ${join(", ", [fork, vinvar.node_pools:"Node pool '${k}' has invalid spot_max_price '${v.spot_max_price}'"if!(v.spot_max_price==-1|| v.spot_max_price>=0)])}. The spot_max_price must be either -1 (market price) or >= 0."
0 commit comments