The facts write the suffix the control plane composed the names with, handed down rather than written twice (review of issue 079); the fixture is keyed as production keys it
This commit is contained in:
@@ -92,6 +92,10 @@ type Rendering struct {
|
||||
// mesh" resolves to. Passed in for the same reason grants are: who else is on the network is
|
||||
// a fact about the mesh, and resolution answers questions about one machine.
|
||||
Mesh []string
|
||||
// Suffix is what a machine's internal name ends in, as the control plane composed Names —
|
||||
// `internal` unless the operator chose another — so a fact writing those names does not
|
||||
// compose it a second time.
|
||||
Suffix string
|
||||
|
||||
// Kept is every operator-sealed secret in the mesh, for a module that `keeps` them. Nil when
|
||||
// nothing on this node keeps them, or the mesh has no operator key.
|
||||
@@ -524,7 +528,7 @@ func (r Resolution) Declaration(with Rendering) ([]map[string]any, error) {
|
||||
// plane's; making a name resolve is the module's software. Emitted as ordinary files under
|
||||
// this module's name, so they are applied, reported and removed exactly as anything else
|
||||
// it declares.
|
||||
given, err := FactsInto(m, r, with.Names)
|
||||
given, err := FactsInto(m, r, with.Names, with.Suffix)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user