mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
fix: cel type provider should return a type type
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
85ff7e75a2
commit
1518c4ec16
@ -429,7 +429,7 @@ func (rt *DeclTypeProvider) FindStructType(typeName string) (*types.Type, bool)
|
||||
declType, found := rt.findDeclType(typeName)
|
||||
if found {
|
||||
expT := declType.CelType()
|
||||
return expT, found
|
||||
return types.NewTypeTypeWithParam(expT), found
|
||||
}
|
||||
return rt.typeProvider.FindStructType(typeName)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user