You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: geps/gep-3171/index.md
+25-7Lines changed: 25 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,13 @@ This feature is already [supported by Envoy](https://www.envoyproxy.io/docs/envo
23
23
24
24
This GEP proposes the following API changes:
25
25
26
-
* Add utility type `Fraction` to [v1/shared_types.go](https://github.com/kubernetes-sigs/gateway-api/blob/cb5bf1541fa70f0692aebde8c64bba434cf331b6/apis/v1/shared_types.go) and include the equivalent type `Percentage`:
26
+
* Add utility type `Fraction` to [v1/shared_types.go](https://github.com/kubernetes-sigs/gateway-api/blob/cb5bf1541fa70f0692aebde8c64bba434cf331b6/apis/v1/shared_types.go):
27
27
28
28
29
29
```go
30
30
typeFractionstruct {
31
31
// +optional
32
+
// +kubebuilder:default=100
32
33
// +kubebuilder:validation:Minimum=0
33
34
Numeratorint32`json:"numerator"`
34
35
@@ -37,8 +38,6 @@ type Fraction struct {
37
38
// +kubebuilder:validation:Minimum=1
38
39
Denominatorint32`json:"denominator"`
39
40
}
40
-
41
-
typePercentageFraction
42
41
```
43
42
44
43
@@ -73,13 +72,32 @@ type HTTPRequestMirrorFilter struct {
73
72
// Support: Implementation-specific for any other resource
0 commit comments