Skip to content

Commit 6e59052

Browse files
vertex451Artem Shcherbatiuk
andauthored
feat: removed *List types (#117)
Co-authored-by: Artem Shcherbatiuk <[email protected]>
1 parent da42676 commit 6e59052

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gateway/schema/schema.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ func (g *Gateway) processSingleResource(
155155
return
156156
}
157157

158+
if strings.HasSuffix(gvk.Kind, "List") {
159+
// Skip List resources
160+
return
161+
}
162+
158163
resourceScope, err := g.getScope(resourceKey)
159164
if err != nil {
160165
g.log.Error().Err(err).Str("resource", resourceKey).Msg("Error getting resourceScope")

0 commit comments

Comments
 (0)