Skip to content

Commit e47b9d8

Browse files
authored
sets tls port for ingress (#114)
1 parent 12a5c74 commit e47b9d8

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

charts/api7/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.13.2
18+
version: 0.13.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/api7/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# api7ee3
22

3-
![Version: 0.13.2](https://img.shields.io/badge/Version-0.13.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
3+
![Version: 0.13.3](https://img.shields.io/badge/Version-0.13.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
44

55
A Helm chart for Kubernetes
66

@@ -109,4 +109,3 @@ A Helm chart for Kubernetes
109109
| serviceAccount.create | bool | `true` | |
110110
| serviceAccount.name | string | `""` | |
111111
| tolerations | list | `[]` | |
112-

charts/api7/templates/dashboard-ingress.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{{- if .Values.dashboard_service.ingress.enabled -}}
22
{{- $fullName := printf "%s-dashboard" (include "api7ee3.fullname" .) -}}
33
{{- $svcPort := .Values.dashboard_service.port -}}
4+
{{- if .Values.dashboard_configuration.server.listen.disable -}}
5+
{{- $svcPort = .Values.dashboard_service.tlsPort -}}
6+
{{- end }}
47
{{- if and .Values.dashboard_service.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
58
{{- if not (hasKey .Values.dashboard_service.ingress.annotations "kubernetes.io/ingress.class") }}
69
{{- $_ := set .Values.dashboard_service.ingress.annotations "kubernetes.io/ingress.class" .Values.dashboard_service.ingress.className}}
@@ -18,8 +21,11 @@ metadata:
1821
name: {{ $fullName }}
1922
labels:
2023
{{- include "api7ee3.labels" . | nindent 4 }}
21-
{{- with .Values.dashboard_service.ingress.annotations }}
2224
annotations:
25+
{{- if .Values.dashboard_configuration.server.listen.disable }}
26+
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
27+
{{- end }}
28+
{{- with .Values.dashboard_service.ingress.annotations }}
2329
{{- toYaml . | nindent 4 }}
2430
{{- end }}
2531
spec:

0 commit comments

Comments
 (0)