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);
> +
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