fn diff_cluster_options(
local: &CreateClusterStatement<Raw>,
live: &CreateClusterStatement<Raw>,
defaults: &BTreeMap<ClusterOptionName, WithOptionValue<Raw>>,
) -> (Vec<ClusterOption<Raw>>, Vec<ClusterOptionName>)Expand description
Compare a cluster definition against the live cluster and return the options
to SET and the option names to RESET so the caller can converge live state
onto the definition.
An option the definition declares is SET when its value differs from the
live one. An option the definition omits is RESET unless the live value is
already the server default, which defaults supplies. The comparison is a
difference over option names, so a cluster option Materialize adds later
reconciles without a change here.