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: api/config/v1alpha1/envoygateway_types.go
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,11 @@ const (
18
18
19
19
//+kubebuilder:object:root=true
20
20
21
-
// EnvoyGateway is the Schema for the envoygateways API.
21
+
// EnvoyGateway is the schema for the envoygateways API.
22
22
typeEnvoyGatewaystruct {
23
23
metav1.TypeMeta`json:",inline"`
24
24
25
-
// EnvoyGatewaySpec defines the desired state of Envoy Gateway.
25
+
// EnvoyGatewaySpec defines the desired state of EnvoyGateway.
26
26
EnvoyGatewaySpec`json:",inline"`
27
27
}
28
28
@@ -45,7 +45,7 @@ type EnvoyGatewaySpec struct {
45
45
// deployed by Envoy Gateway required to implement the Global Rate limiting
46
46
// functionality. The specific rate limit service used here is the reference
47
47
// implementation in Envoy. For more details visit https://github.com/envoyproxy/ratelimit.
48
-
// This configuration will not be needed to enable Local Rate limiitng.
48
+
// This configuration is unneeded for "Local" rate limiting.
49
49
//
50
50
// +optional
51
51
RateLimit*RateLimit`json:"rateLimit,omitempty"`
@@ -56,8 +56,7 @@ type Gateway struct {
56
56
// ControllerName defines the name of the Gateway API controller. If unspecified,
57
57
// defaults to "gateway.envoyproxy.io/gatewayclass-controller". See the following
// ProxyLogging defines logging parameters for managed proxies.
77
+
// ProxyLogging defines logging parameters for managed proxies. This type is not
78
+
// implemented until https://github.com/envoyproxy/gateway/issues/280 is fixed.
78
79
typeProxyLoggingstruct {
79
80
// Level is a map of logging level per component, where the component is the key
80
81
// and the log level is the value. If unspecified, defaults to "System: Info".
@@ -84,7 +85,8 @@ type ProxyLogging struct {
84
85
}
85
86
86
87
// LogComponent defines a component that supports a configured logging level.
87
-
//
88
+
// This type is not implemented until https://github.com/envoyproxy/gateway/issues/280
// If not provided, the JWT issuer is not checked.
69
+
// For additional details, see https://tools.ietf.org/html/rfc7519#section-4.1.1 for
70
+
// URL format and https://rfc-editor.org/rfc/rfc5322.html for email format. If not provided,
71
+
// the JWT issuer is not checked.
82
72
//
83
73
// +kubebuilder:validation:MaxLength=253
84
74
// +optional
85
75
Issuerstring`json:"issuer,omitempty"`
86
76
87
-
// Audiences is a list of JWT audiences allowed to access. For additional details, see:
Copy file name to clipboardExpand all lines: api/v1alpha1/ratelimitfilter_types.go
+18-16Lines changed: 18 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,11 @@ type RateLimitFilter struct {
30
30
// +union
31
31
typeRateLimitFilterSpecstruct {
32
32
// Type decides the scope for the RateLimits.
33
-
// Valid RateLimitType values are:
34
-
//
35
-
// * "Global" - In this mode, the rate limits are applied across all Envoy proxy instances.
33
+
// Valid RateLimitType values are "Global".
36
34
//
37
35
// +unionDiscriminator
38
36
TypeRateLimitType`json:"type"`
39
-
// Global rate limit configuration.
37
+
// Global defines global rate limit configuration.
40
38
//
41
39
// +optional
42
40
Global*GlobalRateLimit`json:"global,omitempty"`
@@ -51,7 +49,7 @@ const (
51
49
GlobalRateLimitTypeRateLimitType="Global"
52
50
)
53
51
54
-
// GlobalRateLimit defines the global rate limit configuration.
52
+
// GlobalRateLimit defines global rate limit configuration.
55
53
typeGlobalRateLimitstruct {
56
54
// Rules are a list of RateLimit selectors and limits.
57
55
// Each rule and its associated limit is applied
@@ -116,29 +114,33 @@ type HeaderMatch struct {
116
114
117
115
// Value within the HTTP header. Due to the
118
116
// case-insensitivity of header names, "foo" and "Foo" are considered equivalent.
119
-
// Do not set this field when Type="Distinct", implying matching on any/all unique values within the header.
117
+
// Do not set this field when Type="Distinct", implying matching on any/all unique
118
+
// values within the header.
119
+
//
120
120
// +optional
121
121
// +kubebuilder:validation:MaxLength=1024
122
122
Value*string`json:"value,omitempty"`
123
123
}
124
124
125
-
// HeaderMatchType specifies the semantics of how HTTP header values should be
126
-
// compared. Valid HeaderMatchType values are:
127
-
//
128
-
// - "Exact": Use this type to match the exact value of the Value field against the value of the specified HTTP Header.
129
-
// - "RegularExpression": Use this type to match a regular expression against the value of the specified HTTP Header.
130
-
// The regex string must adhere to the syntax documented in https://github.com/google/re2/wiki/Syntax.
131
-
// - "Distinct": Use this type to match any and all possible unique values encountered in the specified HTTP Header.
132
-
// Note that each unique value will receive its own rate limit bucket.
125
+
// HeaderMatchType specifies the semantics of how HTTP header values should be compared.
126
+
// Valid HeaderMatchType values are "Exact", "RegularExpression", and "Distinct".
0 commit comments