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

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