Skip to content

Commit

Permalink
Port mapping cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
peixian committed Feb 14, 2025
1 parent 05471d3 commit 4ce8417
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/whatsapp-proxy-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,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: 1.0.3
version: 1.1.0

# 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
17 changes: 16 additions & 1 deletion charts/whatsapp-proxy-chart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,24 @@ spec:
{{- end}}
{{- if .Values.service.stats_port }}
- port: {{ .Values.service.stats_port }}
targetPort: {{ .Values.service.stats_port }}
targetPort: 8199
protocol: TCP
name: stats
{{- end}}
{{- if .Values.service.media_port }}
- port: {{ .Values.service.media_port }}
targetPort: 587
protocl: TCP
name: media
{{- end}}

{{- if .Values.service.media_proxy_port }}
- port: {{ .Values.service.media_proxy_port }}
targetPort: 7777
protocl: TCP
name: media
{{- end}}


selector:
{{- include "whatsapp-proxy-chart.selectorLabels" . | nindent 4 }}
16 changes: 9 additions & 7 deletions charts/whatsapp-proxy-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ securityContext: {}
# runAsUser: 1000

service:
type: ClusterIP
type: LoadBalancer
annotations: {}
port: 8080
# http_port: 80
# https_port: 443
# jabber_port: 5222
http_proxy_port: 8080
https_proxy_port: 8443
jabber_proxy_port: 8222
http_port: 80
https_port: 443
jabber_port: 5222
media_port: 587
#http_proxy_port: 8080

Check failure on line 58 in charts/whatsapp-proxy-chart/values.yaml

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

58:4 [comments] missing starting space in comment
#https_proxy_port: 8443

Check failure on line 59 in charts/whatsapp-proxy-chart/values.yaml

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

59:4 [comments] missing starting space in comment
#jabber_proxy_port: 8222

Check failure on line 60 in charts/whatsapp-proxy-chart/values.yaml

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

60:4 [comments] missing starting space in comment
#media_proxy_port: 7777

Check failure on line 61 in charts/whatsapp-proxy-chart/values.yaml

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

61:4 [comments] missing starting space in comment
# stats_port: 8199

ingress:
Expand Down

0 comments on commit 4ce8417

Please sign in to comment.