Skip to content

Commit 1518c4e

Browse files
committed
fix: cel type provider should return a type type
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
1 parent 85ff7e7 commit 1518c4e

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/apiserver/pkg/cel

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apiserver/pkg/cel/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ func (rt *DeclTypeProvider) FindStructType(typeName string) (*types.Type, bool)
429429
declType, found := rt.findDeclType(typeName)
430430
if found {
431431
expT := declType.CelType()
432-
return expT, found
432+
return types.NewTypeTypeWithParam(expT), found
433433
}
434434
return rt.typeProvider.FindStructType(typeName)
435435
}

0 commit comments

Comments
 (0)