Skip to content

Commit 3067848

Browse files
authored
Merge pull request #73 from meisterplan/feature/KNUTH-124622
Allow to configure a `proxy-stream-next-upstream-tries`
2 parents fbd25cb + 33fafd8 commit 3067848

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# spring-service
22

3+
## 5.4.0
4+
5+
- Allow to configure `overwriteRequestRetries`
6+
37
## 5.3.0
48

59
- Allow to configure a `securityContext`

charts/spring-service/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v1
22
name: spring-service
33
description: A generalized deployment for Meisterplan Spring Boot services in Kubernetes.
4-
version: 5.3.0
4+
version: 5.4.0

charts/spring-service/templates/post-deployment/ingress-public.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ metadata:
55
name: {{ .Values.serviceName }}-public
66
namespace: "{{ required "Namespace must be set!" .Values.namespace }}"
77
annotations:
8+
{{- if .Values.ingress.overwriteRequestRetries }}
9+
nginx.ingress.kubernetes.io/proxy-stream-next-upstream-tries: {{ .Values.ingress.overwriteRequestRetries }}
10+
{{- end }}
811
{{- if .Values.ingress.overwriteCustomHttpErrors }}
912
nginx.ingress.kubernetes.io/custom-http-errors: {{ .Values.ingress.overwriteCustomHttpErrors }}
1013
{{- end }}

tests/spring-service/complex-service/expected/spring-service/templates/post-deployment/ingress-public.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
name: myservice-public
77
namespace: "team-supercool"
88
annotations:
9+
nginx.ingress.kubernetes.io/proxy-stream-next-upstream-tries: 420
910
nginx.ingress.kubernetes.io/custom-http-errors: 502
1011
nginx.ingress.kubernetes.io/auth-signin: https://oauth2.mycompany.tld/oauth2/start?rd=https%3A%2F%2F$http_host$escaped_request_uri
1112
nginx.ingress.kubernetes.io/auth-url: https://oauth2.mycompany.tld/oauth2/auth

tests/spring-service/complex-service/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ ingress:
3131
- "myservice.othercompany.tld"
3232
oauth2ProxyProtected: true
3333
overwriteCustomHttpErrors: "502"
34+
overwriteRequestRetries: 420
3435

3536
env:
3637
copyOwnExternalBaseURLIn: "SERVICE_MYSERVICE_BASE_URL"

0 commit comments

Comments
 (0)