Re: [pve-devel] [PATCH ha-manager v2 23/26] api: introduce ha rules api endpoints

2025-07-04 Thread Michael Köppl
On 6/20/25 16:31, Daniel Kral wrote: > +my $check_feasibility = sub { > +my ($rules) = @_; > + > +$rules = dclone($rules); > + > +# set optional rule parameter's default values > +for my $rule (values %{ $rules->{ids} }) { > +PVE::HA::Rules->set_rule_defaults($rule); > +

[pve-devel] [PATCH ha-manager v2 23/26] api: introduce ha rules api endpoints

2025-06-20 Thread Daniel Kral
Add CRUD API endpoints for HA rules, which assert whether the given properties for the rules are valid and will not make the existing rule set infeasible. Disallowing changes to the rule set via the API, which would make this and other rules infeasible, makes it safer for users of the HA Manager t