Skip to content

Commit 14d1d59

Browse files
authored
Merge branch 'main' into client-wrr
2 parents 1101c1d + f6dfa51 commit 14d1d59

25 files changed

+2033
-4
lines changed

api/v1alpha1/shared_types.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,25 @@ type BackendRef struct {
547547
// BackendObjectReference references a Kubernetes object that represents the backend.
548548
// Only Service kind is supported for now.
549549
gwapiv1.BackendObjectReference `json:",inline"`
550+
// Weight specifies the proportion of requests forwarded to the referenced
551+
// backend. This is computed as weight/(sum of all weights in this
552+
// BackendRefs list). For non-zero values, there may be some epsilon from
553+
// the exact proportion defined here depending on the precision an
554+
// implementation supports. Weight is not a percentage and the sum of
555+
// weights does not need to equal 100.
556+
//
557+
// If only one backend is specified and it has a weight greater than 0, 100%
558+
// of the traffic is forwarded to that backend. If weight is set to 0, no
559+
// traffic should be forwarded for this entry. If unspecified, weight
560+
// defaults to 1.
561+
//
562+
// Support for this field varies based on the context where used.
563+
//
564+
// +optional
565+
// +kubebuilder:default=1
566+
// +kubebuilder:validation:Minimum=0
567+
// +kubebuilder:validation:Maximum=1000000
568+
Weight *uint32 `json:"weight,omitempty"`
550569
// Fallback indicates whether the backend is designated as a fallback.
551570
// Multiple fallback backends can be configured.
552571
// It is highly recommended to configure active or passive health checks to ensure that failover can be detected

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_envoyextensionpolicies.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,26 @@ spec:
206206
maximum: 65535
207207
minimum: 1
208208
type: integer
209+
weight:
210+
default: 1
211+
description: |-
212+
Weight specifies the proportion of requests forwarded to the referenced
213+
backend. This is computed as weight/(sum of all weights in this
214+
BackendRefs list). For non-zero values, there may be some epsilon from
215+
the exact proportion defined here depending on the precision an
216+
implementation supports. Weight is not a percentage and the sum of
217+
weights does not need to equal 100.
218+
219+
If only one backend is specified and it has a weight greater than 0, 100%
220+
of the traffic is forwarded to that backend. If weight is set to 0, no
221+
traffic should be forwarded for this entry. If unspecified, weight
222+
defaults to 1.
223+
224+
Support for this field varies based on the context where used.
225+
format: int32
226+
maximum: 1000000
227+
minimum: 0
228+
type: integer
209229
required:
210230
- name
211231
type: object

charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_envoyproxies.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11155,6 +11155,26 @@ spec:
1115511155
maximum: 65535
1115611156
minimum: 1
1115711157
type: integer
11158+
weight:
11159+
default: 1
11160+
description: |-
11161+
Weight specifies the proportion of requests forwarded to the referenced
11162+
backend. This is computed as weight/(sum of all weights in this
11163+
BackendRefs list). For non-zero values, there may be some epsilon from
11164+
the exact proportion defined here depending on the precision an
11165+
implementation supports. Weight is not a percentage and the sum of
11166+
weights does not need to equal 100.
11167+
11168+
If only one backend is specified and it has a weight greater than 0, 100%
11169+
of the traffic is forwarded to that backend. If weight is set to 0, no
11170+
traffic should be forwarded for this entry. If unspecified, weight
11171+
defaults to 1.
11172+
11173+
Support for this field varies based on the context where used.
11174+
format: int32
11175+
maximum: 1000000
11176+
minimum: 0
11177+
type: integer
1115811178
required:
1115911179
- name
1116011180
type: object
@@ -12423,6 +12443,26 @@ spec:
1242312443
maximum: 65535
1242412444
minimum: 1
1242512445
type: integer
12446+
weight:
12447+
default: 1
12448+
description: |-
12449+
Weight specifies the proportion of requests forwarded to the referenced
12450+
backend. This is computed as weight/(sum of all weights in this
12451+
BackendRefs list). For non-zero values, there may be some epsilon from
12452+
the exact proportion defined here depending on the precision an
12453+
implementation supports. Weight is not a percentage and the sum of
12454+
weights does not need to equal 100.
12455+
12456+
If only one backend is specified and it has a weight greater than 0, 100%
12457+
of the traffic is forwarded to that backend. If weight is set to 0, no
12458+
traffic should be forwarded for this entry. If unspecified, weight
12459+
defaults to 1.
12460+
12461+
Support for this field varies based on the context where used.
12462+
format: int32
12463+
maximum: 1000000
12464+
minimum: 0
12465+
type: integer
1242612466
required:
1242712467
- name
1242812468
type: object
@@ -13807,6 +13847,26 @@ spec:
1380713847
maximum: 65535
1380813848
minimum: 1
1380913849
type: integer
13850+
weight:
13851+
default: 1
13852+
description: |-
13853+
Weight specifies the proportion of requests forwarded to the referenced
13854+
backend. This is computed as weight/(sum of all weights in this
13855+
BackendRefs list). For non-zero values, there may be some epsilon from
13856+
the exact proportion defined here depending on the precision an
13857+
implementation supports. Weight is not a percentage and the sum of
13858+
weights does not need to equal 100.
13859+
13860+
If only one backend is specified and it has a weight greater than 0, 100%
13861+
of the traffic is forwarded to that backend. If weight is set to 0, no
13862+
traffic should be forwarded for this entry. If unspecified, weight
13863+
defaults to 1.
13864+
13865+
Support for this field varies based on the context where used.
13866+
format: int32
13867+
maximum: 1000000
13868+
minimum: 0
13869+
type: integer
1381013870
required:
1381113871
- name
1381213872
type: object
@@ -15078,6 +15138,26 @@ spec:
1507815138
maximum: 65535
1507915139
minimum: 1
1508015140
type: integer
15141+
weight:
15142+
default: 1
15143+
description: |-
15144+
Weight specifies the proportion of requests forwarded to the referenced
15145+
backend. This is computed as weight/(sum of all weights in this
15146+
BackendRefs list). For non-zero values, there may be some epsilon from
15147+
the exact proportion defined here depending on the precision an
15148+
implementation supports. Weight is not a percentage and the sum of
15149+
weights does not need to equal 100.
15150+
15151+
If only one backend is specified and it has a weight greater than 0, 100%
15152+
of the traffic is forwarded to that backend. If weight is set to 0, no
15153+
traffic should be forwarded for this entry. If unspecified, weight
15154+
defaults to 1.
15155+
15156+
Support for this field varies based on the context where used.
15157+
format: int32
15158+
maximum: 1000000
15159+
minimum: 0
15160+
type: integer
1508115161
required:
1508215162
- name
1508315163
type: object

charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_securitypolicies.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,26 @@ spec:
720720
maximum: 65535
721721
minimum: 1
722722
type: integer
723+
weight:
724+
default: 1
725+
description: |-
726+
Weight specifies the proportion of requests forwarded to the referenced
727+
backend. This is computed as weight/(sum of all weights in this
728+
BackendRefs list). For non-zero values, there may be some epsilon from
729+
the exact proportion defined here depending on the precision an
730+
implementation supports. Weight is not a percentage and the sum of
731+
weights does not need to equal 100.
732+
733+
If only one backend is specified and it has a weight greater than 0, 100%
734+
of the traffic is forwarded to that backend. If weight is set to 0, no
735+
traffic should be forwarded for this entry. If unspecified, weight
736+
defaults to 1.
737+
738+
Support for this field varies based on the context where used.
739+
format: int32
740+
maximum: 1000000
741+
minimum: 0
742+
type: integer
723743
required:
724744
- name
725745
type: object
@@ -1872,6 +1892,26 @@ spec:
18721892
maximum: 65535
18731893
minimum: 1
18741894
type: integer
1895+
weight:
1896+
default: 1
1897+
description: |-
1898+
Weight specifies the proportion of requests forwarded to the referenced
1899+
backend. This is computed as weight/(sum of all weights in this
1900+
BackendRefs list). For non-zero values, there may be some epsilon from
1901+
the exact proportion defined here depending on the precision an
1902+
implementation supports. Weight is not a percentage and the sum of
1903+
weights does not need to equal 100.
1904+
1905+
If only one backend is specified and it has a weight greater than 0, 100%
1906+
of the traffic is forwarded to that backend. If weight is set to 0, no
1907+
traffic should be forwarded for this entry. If unspecified, weight
1908+
defaults to 1.
1909+
1910+
Support for this field varies based on the context where used.
1911+
format: int32
1912+
maximum: 1000000
1913+
minimum: 0
1914+
type: integer
18751915
required:
18761916
- name
18771917
type: object
@@ -3220,6 +3260,26 @@ spec:
32203260
maximum: 65535
32213261
minimum: 1
32223262
type: integer
3263+
weight:
3264+
default: 1
3265+
description: |-
3266+
Weight specifies the proportion of requests forwarded to the referenced
3267+
backend. This is computed as weight/(sum of all weights in this
3268+
BackendRefs list). For non-zero values, there may be some epsilon from
3269+
the exact proportion defined here depending on the precision an
3270+
implementation supports. Weight is not a percentage and the sum of
3271+
weights does not need to equal 100.
3272+
3273+
If only one backend is specified and it has a weight greater than 0, 100%
3274+
of the traffic is forwarded to that backend. If weight is set to 0, no
3275+
traffic should be forwarded for this entry. If unspecified, weight
3276+
defaults to 1.
3277+
3278+
Support for this field varies based on the context where used.
3279+
format: int32
3280+
maximum: 1000000
3281+
minimum: 0
3282+
type: integer
32233283
required:
32243284
- name
32253285
type: object
@@ -4658,6 +4718,26 @@ spec:
46584718
maximum: 65535
46594719
minimum: 1
46604720
type: integer
4721+
weight:
4722+
default: 1
4723+
description: |-
4724+
Weight specifies the proportion of requests forwarded to the referenced
4725+
backend. This is computed as weight/(sum of all weights in this
4726+
BackendRefs list). For non-zero values, there may be some epsilon from
4727+
the exact proportion defined here depending on the precision an
4728+
implementation supports. Weight is not a percentage and the sum of
4729+
weights does not need to equal 100.
4730+
4731+
If only one backend is specified and it has a weight greater than 0, 100%
4732+
of the traffic is forwarded to that backend. If weight is set to 0, no
4733+
traffic should be forwarded for this entry. If unspecified, weight
4734+
defaults to 1.
4735+
4736+
Support for this field varies based on the context where used.
4737+
format: int32
4738+
maximum: 1000000
4739+
minimum: 0
4740+
type: integer
46614741
required:
46624742
- name
46634743
type: object

charts/gateway-helm/crds/generated/gateway.envoyproxy.io_envoyextensionpolicies.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,26 @@ spec:
205205
maximum: 65535
206206
minimum: 1
207207
type: integer
208+
weight:
209+
default: 1
210+
description: |-
211+
Weight specifies the proportion of requests forwarded to the referenced
212+
backend. This is computed as weight/(sum of all weights in this
213+
BackendRefs list). For non-zero values, there may be some epsilon from
214+
the exact proportion defined here depending on the precision an
215+
implementation supports. Weight is not a percentage and the sum of
216+
weights does not need to equal 100.
217+
218+
If only one backend is specified and it has a weight greater than 0, 100%
219+
of the traffic is forwarded to that backend. If weight is set to 0, no
220+
traffic should be forwarded for this entry. If unspecified, weight
221+
defaults to 1.
222+
223+
Support for this field varies based on the context where used.
224+
format: int32
225+
maximum: 1000000
226+
minimum: 0
227+
type: integer
208228
required:
209229
- name
210230
type: object

0 commit comments

Comments
 (0)