Fixup envoy codegen

This commit is contained in:
Tomaž Jerman
2021-09-22 11:26:14 +02:00
parent 16f789bdb4
commit 3ba9c61986
8 changed files with 161 additions and 4 deletions
@@ -14,7 +14,7 @@ import (
{{ $Component := .Component }}
{{ $Resource := .Resource }}
{{ $GoType := printf "types.%s" .Resource }}
func (r *{{export $Component}}{{$Resource}}) EncodeTranslations() ([]*ResourceTranslation, error) {
func (r *{{if not (eq $Component "system")}}{{export $Component}}{{ end }}{{$Resource}}) EncodeTranslations() ([]*ResourceTranslation, error) {
out := make([]*ResourceTranslation, 0, 10)
rr := r.Res.EncodeTranslations()