mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Merge pull request #123669 from pohly/cel-quantity-conversion-fix
cel: fix conversion of quantity to quantity
This commit is contained in:
commit
35ffb48425
@ -50,7 +50,7 @@ func (d Quantity) ConvertToNative(typeDesc reflect.Type) (interface{}, error) {
|
|||||||
|
|
||||||
func (d Quantity) ConvertToType(typeVal ref.Type) ref.Val {
|
func (d Quantity) ConvertToType(typeVal ref.Type) ref.Val {
|
||||||
switch typeVal {
|
switch typeVal {
|
||||||
case typeValue:
|
case quantityTypeValue:
|
||||||
return d
|
return d
|
||||||
case types.TypeType:
|
case types.TypeType:
|
||||||
return quantityTypeValue
|
return quantityTypeValue
|
||||||
|
Loading…
Reference in New Issue
Block a user