1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

[Feature] [Networking] Pass through Server Header (#1775)

This commit is contained in:
Adam Janikowski 2024-12-04 09:02:18 +01:00 committed by GitHub
parent 02e4ef44b3
commit 8af5309f1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 11 deletions

View file

@ -28,6 +28,7 @@
- (Feature) (Networking) ArangoRoute Protocol
- (Feature) (Platform) Platform Requirements support
- (Improvement) Drop slash requirement from ArangoRoute
- (Feature) (Networking) Pass through Server Header
## [1.2.43](https://github.com/arangodb/kube-arangodb/tree/1.2.43) (2024-10-14)
- (Feature) ArangoRoute CRD

View file

@ -297,8 +297,9 @@ func (c Config) RenderFilters() ([]*listenerAPI.Filter, error) {
}
filterConfigType, err := anypb.New(&httpConnectionManagerAPI.HttpConnectionManager{
StatPrefix: "ingress_http",
CodecType: httpConnectionManagerAPI.HttpConnectionManager_AUTO,
StatPrefix: "ingress_http",
CodecType: httpConnectionManagerAPI.HttpConnectionManager_AUTO,
ServerHeaderTransformation: httpConnectionManagerAPI.HttpConnectionManager_PASS_THROUGH,
RouteSpecifier: &httpConnectionManagerAPI.HttpConnectionManager_RouteConfig{
RouteConfig: &routeAPI.RouteConfiguration{
Name: "default",

View file

@ -54,6 +54,7 @@ func (c *ConfigTLS) RenderListenerTransportSocket() (*coreAPI.TransportSocket, e
},
},
},
AlpnProtocols: []string{"h2,http/1.1"},
},
})
if err != nil {

View file

@ -131,15 +131,6 @@ func (a *ArangoGatewayContainer) GetEnvs() ([]core.EnvVar, []core.EnvFromSource)
envs.Add(true, k8sutil.GetLifecycleEnv()...)
if cm, ok := a.cachedStatus.ConfigMap().V1().GetSimple(GetGatewayConfigMapName(a.input.ArangoMember.GetName())); ok {
if v, ok := cm.Data[ConfigMapChecksumKey]; ok {
envs.Add(true, core.EnvVar{
Name: MemberConfigChecksumENV,
Value: v,
})
}
}
if !a.spec.Gateway.IsDynamic() {
if cm, ok := a.cachedStatus.ConfigMap().V1().GetSimple(GetGatewayConfigMapName(a.input.ApiObject.GetName())); ok {
if v, ok := cm.Data[ConfigMapChecksumKey]; ok {