fix: cel type provider should return a type type

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Kubernetes-commit: 1518c4ec16d06b7281f0b6c9a0e8c40952475f6b
This commit is contained in:
Charles-Edouard Brétéché 2024-10-22 22:21:51 +02:00 committed by Kubernetes Publisher
parent 918f350339
commit 15220968e1
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}