File tree 2 files changed +3
-20
lines changed
2 files changed +3
-20
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ Prints ingress configuration annotations
167
167
*/} }
168
168
{ {- define " horizon.ingressConfigurationAnnotations" } }
169
169
{ {- if eq .context.Values.ingress.type " nginx" } }
170
- nginx.ingress.kubernetes.io/app-root: /ui#/ra
171
170
nginx.ingress.kubernetes.io/server-snippet: |
172
171
large_client_header_buffers 4 64k;
173
172
{ {- if .context.Values.ingress.clientCertificateAuth } }
@@ -179,7 +178,7 @@ nginx.ingress.kubernetes.io/configuration-snippet: |
179
178
{ {- end } }
180
179
{ {- else if eq .context.Values.ingress.type " traefik" } }
181
180
traefik.ingress.kubernetes.io/router.tls: "true"
182
- { { $middlewares := list " app-root " " https-redirect" } }
181
+ { { $middlewares := list " https-redirect" } }
183
182
{ {- if .context.Values.ingress.clientCertificateAuth } }
184
183
{ {- $middlewares = append $middlewares " client-auth" } }
185
184
traefik.ingress.kubernetes.io/router.tls.options: { { printf " %s-%s-%s@kubernetescrd" .context.Release.Namespace (include " common.names.fullname" .context) " client-auth" } }
@@ -222,4 +221,4 @@ Prints true if an upgrade job should run, false if not.
222
221
{ {- print " false" } }
223
222
{ {- end } }
224
223
{ {- end } }
225
- { {- end } }
224
+ { {- end } }
Original file line number Diff line number Diff line change 1
1
{{- if and .Values.ingress.type (eq .Values.ingress.type "traefik") (.Capabilities.APIVersions.Has "traefik.containo.us/v1alpha1") }}
2
- apiVersion : traefik.containo.us/v1alpha1
3
- kind : Middleware
4
- metadata :
5
- name : {{ include "common.names.fullname" . }}-app-root
6
- labels : {{- include "horizon.labels.standard" . | nindent 4 }}
7
- {{- if .Values.commonLabels }}
8
- {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
9
- {{- end }}
10
- {{- if .Values.commonAnnotations }}
11
- annotations :
12
- {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
13
- {{- end }}
14
- spec :
15
- redirectRegex :
16
- regex : ^https:\/\/([^\/]+)\/?$
17
- replacement : https://${1}/ui#/ra/
18
2
---
19
3
apiVersion : traefik.containo.us/v1alpha1
20
4
kind : Middleware
64
48
{{- include "common.tplvalues.render" ( dict "value" .Values.ingress.clientCertificateCASecrets "context" $ ) | nindent 6 }}
65
49
{{- end }}
66
50
{{- end }}
67
- {{- end }}
51
+ {{- end }}
You can’t perform that action at this time.
0 commit comments