Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/api7/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.17.47
version: 0.17.48

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 4 additions & 1 deletion charts/api7/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# api7ee3

![Version: 0.17.47](https://img.shields.io/badge/Version-0.17.47-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.7](https://img.shields.io/badge/AppVersion-3.9.7-informational?style=flat-square)
![Version: 0.17.48](https://img.shields.io/badge/Version-0.17.48-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.9.7](https://img.shields.io/badge/AppVersion-3.9.7-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down Expand Up @@ -208,14 +208,17 @@ A Helm chart for Kubernetes
| dp_manager_configuration.server.tls.host | string | `"0.0.0.0"` | |
| dp_manager_configuration.server.tls.port | int | `7943` | |
| dp_manager_service.annotations | object | `{}` | |
| dp_manager_service.autoAssignNodePort | bool | `false` | Whether to set nodePort to the same value as the HTTP/HTTPS port when dp_manager_service.type is NodePort, make sure the nodePort to be in the valid NodePort range of kubernetes service. |
| dp_manager_service.ingress.annotations | object | `{}` | |
| dp_manager_service.ingress.className | string | `""` | |
| dp_manager_service.ingress.enabled | bool | `false` | |
| dp_manager_service.ingress.hosts[0].host | string | `"dp-manager.local"` | |
| dp_manager_service.ingress.hosts[0].paths[0].path | string | `"/"` | |
| dp_manager_service.ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| dp_manager_service.ingress.tls | list | `[]` | |
| dp_manager_service.nodePort | int | `nil` | The nodePort for HTTP service, only used if dp_manager_service.type is NodePort. If not set, a random port will be assigned by Kubernetes. |
| dp_manager_service.port | int | `7900` | |
| dp_manager_service.tlsNodePort | int | `nil` | The nodePort for HTTPS service, only used if dp_manager_service.type is NodePort. If not set, a random port will be assigned by Kubernetes. |
| dp_manager_service.tlsPort | int | `7943` | |
| dp_manager_service.type | string | `"ClusterIP"` | |
| fullnameOverride | string | `""` | |
Expand Down
22 changes: 22 additions & 0 deletions charts/api7/templates/dp-manager-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ metadata:
{{- end }}
spec:
type: {{ .Values.dp_manager_service.type }}
{{- if and (eq .Values.dp_manager_service.type "NodePort") .Values.dp_manager_service.autoAssignNodePort }}
{{- if or (lt (int .Values.dp_manager_service.port) 30000) (gt (int .Values.dp_manager_service.port) 32767) }}
{{- fail (printf "dp_manager_service.port (%d) must be between 30000 and 32767 when autoAssignNodePort is true" (int .Values.dp_manager_service.port)) }}
{{- end }}
{{- if or (lt (int .Values.dp_manager_service.tlsPort) 30000) (gt (int .Values.dp_manager_service.tlsPort) 32767) }}
{{- fail (printf "dp_manager_service.tlsPort (%d) must be between 30000 and 32767 when autoAssignNodePort is true" (int .Values.dp_manager_service.tlsPort)) }}
{{- end }}
{{- end }}
{{- if .Values.dp_manager_service.loadBalancerClass }}
loadBalancerClass: {{ .Values.dp_manager_service.loadBalancerClass }}
{{- end }}
Expand All @@ -19,10 +27,24 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if eq .Values.dp_manager_service.type "NodePort" }}
{{- if .Values.dp_manager_service.autoAssignNodePort }}
nodePort: {{ .Values.dp_manager_service.port }}
{{- else if .Values.dp_manager_service.nodePort }}
nodePort: {{ .Values.dp_manager_service.nodePort }}
{{- end }}
{{- end }}
- port: {{ .Values.dp_manager_service.tlsPort }}
targetPort: https
protocol: TCP
name: https
{{- if eq .Values.dp_manager_service.type "NodePort" }}
{{- if .Values.dp_manager_service.autoAssignNodePort }}
nodePort: {{ .Values.dp_manager_service.tlsPort }}
{{- else if .Values.dp_manager_service.tlsNodePort }}
nodePort: {{ .Values.dp_manager_service.tlsNodePort }}
{{- end }}
{{- end }}

selector:
{{- include "api7ee3.selectorLabels" . | nindent 4 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/api7/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ dp_manager_service:
annotations: {}
port: 7900
tlsPort: 7943
# -- Whether to set nodePort to the same value as the HTTP/HTTPS port when dp_manager_service.type is NodePort, make sure the nodePort to be in the valid NodePort range of kubernetes service.
autoAssignNodePort: false
# -- (int) The nodePort for HTTP service, only used if dp_manager_service.type is NodePort. If not set, a random port will be assigned by Kubernetes.
nodePort: null
# -- (int) The nodePort for HTTPS service, only used if dp_manager_service.type is NodePort. If not set, a random port will be assigned by Kubernetes.
tlsNodePort: null
ingress:
enabled: false
className: ""
Expand Down
Loading