HomeClusterLabs Projects

Refactor: libcrmcommon, daemons: Use cluster_options array in getters

Description

Refactor: libcrmcommon, daemons: Use cluster_options array in getters

Drop the option_list and len arguments from pcmkcluster_option() and
pcmk
validate_cluster_options(). Use cluster_options in libcrmcommon
instead.

Now, all daemons fetch and validate the full set of cluster options,
even the ones they don't use. This is only slightly less efficient. It
ensures that there's no problem using the same option with multiple
daemons, and it makes it easy to use new options in a given daemon in
the future.

Now that nothing is using the local, per-daemon options arrays anymore,
we can drop them in an upcoming commit.

Ref T746

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jan 11 2024, 3:23 AM
Parents
rP4ad008012ce7: Test: cts-cli: Update daemon outputs for reordering
Branches
Unknown
Tags
Unknown
Tasks
T746: Avoid duplicating option metadata across daemons