Merge pull request #123669 from pohly/cel-quantity-conversion-fix

cel: fix conversion of quantity to quantity
This commit is contained in:
Kubernetes Prow Robot 2024-04-18 01:03:18 -07:00 committed by GitHub
commit 35ffb48425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ func (d Quantity) ConvertToNative(typeDesc reflect.Type) (interface{}, error) {
func (d Quantity) ConvertToType(typeVal ref.Type) ref.Val {
switch typeVal {
case typeValue:
case quantityTypeValue:
return d
case types.TypeType:
return quantityTypeValue