-
Notifications
You must be signed in to change notification settings - Fork 593
Description
kgateway version
2.1.0
Kubernetes Version
v1.28.11
Describe the bug
helm upgrade -i --create-namespace --namespace kgateway-system kgateway-crds kgateway-crds-v2.1.0.tgz
Error: 2 errors occurred:
* CustomResourceDefinition.apiextensions.k8s.io "trafficpolicies.gateway.kgateway.dev" is invalid: spec.validation.openAPIV3Schema.properties[spec].properties[buffer].properties[maxRequestSize].x-kubernetes-validations[0].rule: Invalid value: apiextensions.ValidationRule{Rule:"(type(self) == int && int(self) > 0 && int(self) < 4294967296) || (type(self) == string && quantity(self).isGreaterThan(quantity('0')) && quantity(self).isLessThan(quantity('4Gi')))", Message:"maxRequestSize must be greater than 0 and less than 4Gi", MessageExpression:"", Reason:(*apiextensions.FieldValueErrorReason)(nil), FieldPath:""}: compilation failed: ERROR: :1:89: found no matching overload for '&&' applied to '(bool, )'
| (type(self) == int && int(self) > 0 && int(self) < 4294967296) || (type(self) == string && quantity(self).isGreaterThan(quantity('0')) && quantity(self).isLessThan(quantity('4Gi')))
| ........................................................................................^
ERROR: :1💯 undeclared reference to 'quantity' (in container '')
| (type(self) == int && int(self) > 0 && int(self) < 4294967296) || (type(self) == string && quantity(self).isGreaterThan(quantity('0')) && quantity(self).isLessThan(quantity('4Gi')))
| ...................................................................................................^
ERROR: :1:120: undeclared reference to 'isGreaterThan' (in container '')
| (type(self) == int && int(self) > 0 && int(self) < 4294967296) || (type(self) == string && quantity(self).isGreaterThan(quantity('0')) && quantity(self).isLessThan(quantity('4Gi')))
| .......................................................................................................................^
ERROR: :1:129: undeclared reference to 'quantity' (in container '')
| (type(self) == int && int(self) > 0 && int(self) < 4294967296) || (type(self) == string && quantity(self).isGreaterThan(quantity('0')) && quantity(self).isLessThan(quantity('4Gi')))
| ................................................................................................................................^
ERROR: :1:136: found no matching overload for '&&' applied to '(!error!, )'
| (type(self) == int && int(self) > 0 && int(self) < 4294967296) || (type(self) == string && quantity(self).isGreaterThan(quantity('0')) && quantity(self).isLessThan(quantity('4Gi')))
| .......................................................................................................................................^
ERROR: :1:147: undeclared reference to 'quantity' (in container '')
| (type(self) == int && int(self) > 0 && int(self) < 4294967296) || (type(self) == string && quantity(self).isGreaterThan(quantity('0')) && quantity(self).isLessThan(quantity('4Gi')))
| ..................................................................................................................................................^
ERROR: :1:164: undeclared reference to 'isLessThan' (in container '')
Expected Behavior
Install OK
Steps to reproduce the bug
helm upgrade -i --create-namespace --namespace kgateway-system kgateway-crds kgateway-crds-v2.1.0.tgz
Additional Environment Detail
No response
Additional Context
No response