A file a tools bundle's words name restarts the runtime when it changes (hq ADR 0192)

The tool containers were restarted when their configuration file changed; the runtime now is
too, for every file a module's words name exactly — configuration and own secret alike.
This commit is contained in:
jochen
2026-10-03 15:33:44 +02:00
parent 4f009fff83
commit 5acc763992
3 changed files with 40 additions and 5 deletions
+15 -1
View File
@@ -930,7 +930,21 @@ func (r Resolution) compose(with Rendering, owner map[string]string,
}
words[m.Module] = w
}
givenTo(out, owner, words, r.Account)
// And a file a module's words name is one the runtime is restarted for when it changes.
if named := givenTo(out, owner, words, r.Account); len(named) > 0 {
restarts, _ := process["restart-on"].([]any)
seen := map[string]bool{}
for _, id := range restarts {
seen[fmt.Sprint(id)] = true
}
for _, id := range named {
if !seen[id] {
restarts = append(restarts, id)
seen[id] = true
}
}
process["restart-on"] = restarts
}
}
if with.Adopted {
// First, before anything a module declares: what the mesh needs reachable, then its guard.