3
0

Fix invalid codegen for compose/envoy/store_encode

Lapsus in component ident field caused too much logic to be
removed from the generated code.

This caused some _happy accidents_ when matching up to existing
resources.
This commit is contained in:
Tomaž Jerman
2023-04-02 12:03:22 +02:00
parent 65c3c8e691
commit 7c006753de
2 changed files with 26 additions and 1 deletions

View File

@@ -352,7 +352,7 @@ func (e StoreEncoder) matchup{{.expIdent}}s(ctx context.Context, s store.Storer,
var aux *types.{{.expIdent}}
var ok bool
for i, n := range nn {
{{ if eq .componentIdent "compose" }}
{{ if eq .component "compose" }}
scope := scopes[i]
if scope == nil {
continue