H2 engine-if-config: a resource is declared only while a config value holds
The composer leaves out each resource whose `if-config` holds none of its conditions against the module's config values (with defaults), and drops the key from the rest, as the node-engine parses strictly. A resource that leaves is removed by the existing orphan removal. One table test replaces the two tests of setting_into_test.go. Builds: design 42 zfs-owns-zfs §2, A-21 (declaration side), A-22
This commit is contained in:
@@ -659,6 +659,9 @@ func resolutionCompose(r mcat.Resolution, with mcat.Rendering, owner map[string]
|
||||
// parses strictly and knows no such field.
|
||||
absent := AbsentFor(r, m.Module)
|
||||
resources = withoutAbsent(resources, absent)
|
||||
// **A resource declared only while a config value holds** (design 42 zfs-owns-zfs §2): left out while none of
|
||||
// its `if-config` conditions holds, and the key dropped from the rest.
|
||||
resources = withoutUnconfigured(resources, WithDefaults(m, with.Settings[m.Module]))
|
||||
|
||||
// No container is given the mesh's names (novox/hq ADR 0148). It used to be: every
|
||||
// container got the whole roster as `--add-host` entries at creation, and a name that
|
||||
|
||||
Reference in New Issue
Block a user