Skip to content

Commit

Permalink
fix ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
kickthemooon committed Aug 6, 2023
1 parent ea8168f commit e2a7a3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/helm-interface/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.1.3
version: 0.1.4

# 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
3 changes: 2 additions & 1 deletion charts/helm-interface/templates/workloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ spec:
{{- range .deployment.pod.containers }}
{{- range .ports }}
{{- $portName := default $defaultPortName .name }}
{{- $portNumber := default .containerPort .service.port }}
{{- if and (hasKey . "ingress") .ingress.enabled }}
{{- $computedNameIngress := ternary $computedDeploymentName (printf "%s-%s" $computedDeploymentName .ingress.nameSuffix) (empty .ingress.nameSuffix) }}
{{- $computedNameService := ternary $computedDeploymentName (printf "%s-%s" $computedDeploymentName .service.nameSuffix) (empty .service.nameSuffix) }}
Expand Down Expand Up @@ -246,7 +247,7 @@ spec:
service:
name: {{ $computedNameService }}
port:
number: {{ default .containerPort .service.port }}
number: {{ $portNumber }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit e2a7a3c

Please sign in to comment.