Update envoy to not scope referenced workflows

This commit is contained in:
Tomaž Jerman
2023-03-27 17:53:50 +02:00
parent 9a80aef77d
commit 21e3710e8a
3 changed files with 36 additions and 0 deletions
@@ -183,6 +183,12 @@ var scope envoyx.Scope
Identifiers: refs["{{(index .parents 0).refField}}"].Identifiers,
}
for k, ref := range refs {
// @todo temporary solution to not needlessly scope resources.
// Optimally, this would be selectively handled by codegen.
if !strings.HasPrefix(ref.ResourceType, "corteza::compose") {
continue
}
ref.Scope = scope
refs[k] = ref
}