File tree Expand file tree Collapse file tree
charts/beeport-ui/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555{{- end }}
5656
5757{{- with .Values.ingress }}
58+ {{- if ne .enabled false }}
5859 {{- template "onechart.ingress" (dict "root" $ "ingress" .) }}
60+ {{- end }}
5961{{- end }}
6062
6163{{- range .Values.ingresses }}
Original file line number Diff line number Diff line change 2525 selector :
2626 {{- include "helm-chart.selectorLabels" . | nindent 4 }}
2727
28- {{- if .Values.externalService }}
28+ {{- if and .Values.externalService (not .Values.virtualserver.enabled) }}
2929---
3030apiVersion : v1
3131kind : Service
@@ -36,7 +36,7 @@ metadata:
3636 {{- include "helm-chart.labels" . | nindent 4 }}
3737spec :
3838 type : ExternalName
39- externalName : {{ .Values.externalService.name }}
39+ externalName : {{ .Values.externalService.externalName | default .Values.externalService. name }}
4040 ports :
4141 - port : {{ .Values.externalService.port }}
4242 {{- if .Values.externalService.targetPort }}
Original file line number Diff line number Diff line change 1+ {{- if .Values.virtualserver }}
2+ {{- if .Values.virtualserver.enabled }}
3+ ---
4+ apiVersion : k8s.nginx.org/v1
5+ kind : VirtualServer
6+ metadata :
7+ name : {{ template "robustName" .Release.Name }}
8+ namespace : {{ .Release.Namespace }}
9+ labels :
10+ {{- include "helm-chart.labels" . | nindent 4 }}
11+ annotations :
12+ {{- if .Values.virtualserver.annotations }}
13+ {{- toYaml .Values.virtualserver.annotations | nindent 4 }}
14+ {{- end }}
15+ spec :
16+ host : {{ .Values.virtualserver.host }}
17+ {{- if .Values.virtualserver.tls }}
18+ tls :
19+ secret : {{ .Values.virtualserver.tls.secret }}
20+ redirect :
21+ enable : {{ .Values.virtualserver.tls.redirect | default true }}
22+ {{- end }}
23+
24+ {{- if .Values.virtualserver.upstreams }}
25+ upstreams :
26+ {{- range .Values.virtualserver.upstreams }}
27+ - name : {{ .name }}
28+ service : {{ .service }}
29+ port : {{ .port }}
30+ {{- if .namespace }}
31+ namespace : {{ .namespace }}
32+ {{- end }}
33+ {{- if .loadBalancingMethod }}
34+ lb-method : {{ .loadBalancingMethod }}
35+ {{- end }}
36+ {{- if .maxConns }}
37+ max-conns : {{ .maxConns }}
38+ {{- end }}
39+ {{- end }}
40+ {{- end }}
41+
42+ routes :
43+ {{- range .Values.virtualserver.routes }}
44+ - path : {{ .path }}
45+ {{- if .upstream }}
46+ action :
47+ pass : {{ .upstream }}
48+ {{- end }}
49+ {{- if .policies }}
50+ policies :
51+ {{- range .policies }}
52+ - name : {{ . }}
53+ {{- end }}
54+ {{- end }}
55+ {{- if .locationSnippets }}
56+ location-snippets : |
57+ {{ .locationSnippets | indent 6 }}
58+ {{- end }}
59+ {{- end }}
60+ {{- end }}
61+ {{- end }}
You can’t perform that action at this time.
0 commit comments