File tree 4 files changed +19
-7
lines changed
4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 8
8
- (Feature) Add Default Container Mods
9
9
- (Documentation) Improve Charts and Upgrade Documentation
10
10
- (Feature) AutoDiscover Operator Access
11
+ - (Feature) (Platform) Adjust Gateway timeouts
11
12
12
13
## [ 1.2.47] ( https://github.com/arangodb/kube-arangodb/tree/1.2.47 ) (2025-03-28)
13
14
- (Bugfix) Use Profile Annotations
Original file line number Diff line number Diff line change @@ -83,15 +83,15 @@ UID keeps the information about object UID
83
83
84
84
### .spec.destination.path
85
85
86
- Type: ` string ` <sup >[ \[ ref\] ] ( https://github.com/arangodb/kube-arangodb/blob/1.2.47/pkg/apis/networking/v1alpha1/route_spec_destination.go#L51 ) </sup >
86
+ Type: ` string ` <sup >[ \[ ref\] ] ( https://github.com/arangodb/kube-arangodb/blob/1.2.47/pkg/apis/networking/v1alpha1/route_spec_destination.go#L52 ) </sup >
87
87
88
88
Path defines service path used for overrides
89
89
90
90
***
91
91
92
92
### .spec.destination.protocol
93
93
94
- Type: ` string ` <sup >[ \[ ref\] ] ( https://github.com/arangodb/kube-arangodb/blob/1.2.47/pkg/apis/networking/v1alpha1/route_spec_destination.go#L45 ) </sup >
94
+ Type: ` string ` <sup >[ \[ ref\] ] ( https://github.com/arangodb/kube-arangodb/blob/1.2.47/pkg/apis/networking/v1alpha1/route_spec_destination.go#L46 ) </sup >
95
95
96
96
Protocol defines http protocol used for the route
97
97
@@ -103,7 +103,7 @@ Possible Values:
103
103
104
104
### .spec.destination.schema
105
105
106
- Type: ` string ` <sup >[ \[ ref\] ] ( https://github.com/arangodb/kube-arangodb/blob/1.2.47/pkg/apis/networking/v1alpha1/route_spec_destination.go#L40 ) </sup >
106
+ Type: ` string ` <sup >[ \[ ref\] ] ( https://github.com/arangodb/kube-arangodb/blob/1.2.47/pkg/apis/networking/v1alpha1/route_spec_destination.go#L41 ) </sup >
107
107
108
108
Schema defines HTTP/S schema used for connection
109
109
@@ -155,7 +155,7 @@ UID keeps the information about object UID
155
155
156
156
### .spec.destination.timeout
157
157
158
- Type: ` string ` <sup >[ \[ ref\] ] ( https://github.com/arangodb/kube-arangodb/blob/1.2.47/pkg/apis/networking/v1alpha1/route_spec_destination.go#L59 ) </sup >
158
+ Type: ` string ` <sup >[ \[ ref\] ] ( https://github.com/arangodb/kube-arangodb/blob/1.2.47/pkg/apis/networking/v1alpha1/route_spec_destination.go#L60 ) </sup >
159
159
160
160
Timeout specify the upstream request timeout
161
161
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
26
26
shared "github.com/arangodb/kube-arangodb/pkg/apis/shared"
27
27
"github.com/arangodb/kube-arangodb/pkg/util/constants"
28
+ "github.com/arangodb/kube-arangodb/pkg/util/errors"
28
29
)
29
30
30
31
type ArangoRouteSpecDestination struct {
@@ -139,6 +140,14 @@ func (a *ArangoRouteSpecDestination) Validate() error {
139
140
shared .ValidateOptionalInterfacePath ("tls" , a .TLS ),
140
141
shared .ValidateOptionalInterfacePath ("authentication" , a .Authentication ),
141
142
shared .PrefixResourceError ("path" , shared .ValidateAPIPath (a .GetPath ())),
143
+ shared .PrefixResourceErrorFunc ("timeout" , func () error {
144
+ if t := a .GetTimeout (); t .Duration < constants .MinEnvoyUpstreamTimeout {
145
+ return errors .Errorf ("Timeout lower than %s not allowed" , constants .MinEnvoyUpstreamTimeout .String ())
146
+ } else if t .Duration > constants .MaxEnvoyUpstreamTimeout {
147
+ return errors .Errorf ("Timeout greater than %s not allowed" , constants .MaxEnvoyUpstreamTimeout .String ())
148
+ }
149
+ return nil
150
+ }),
142
151
); err != nil {
143
152
return err
144
153
}
Original file line number Diff line number Diff line change 20
20
21
21
package constants
22
22
23
- import "time"
23
+ import (
24
+ "time"
25
+ )
24
26
25
27
const (
26
28
DefaultEnvoyUpstreamTimeout = time .Minute
27
- MaxEnvoyUpstreamTimeout = 15 * time .Minute
28
- MinEnvoyUpstreamTimeout = 15 * time .Second
29
+ MaxEnvoyUpstreamTimeout = time .Hour
30
+ MinEnvoyUpstreamTimeout = time .Duration ( 0 )
29
31
30
32
ConfigMapChecksumKey = "CHECKSUM"
31
33
You can’t perform that action at this time.
0 commit comments