Skip to content

Commit

Permalink
Allow defining additional ingress paths (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
starcraft66 authored Sep 3, 2024
1 parent ed1d6d9 commit 44ed505
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/aspnetcore/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: aspnetcore
description: A generic Helm chart for ASP.NET Core services
version: 2.0.0
version: 2.1.0
home: https://github.com/gsoft-inc/gsoft-helm-charts
sources:
- https://github.com/gsoft-inc/gsoft-helm-charts
Expand Down
9 changes: 9 additions & 0 deletions charts/aspnetcore/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,13 @@ spec:
name: {{ .Release.Name }}-service
port:
number: {{ .Values.service.port }}
{{- range .Values.ingress.additionalPaths }}
- path: {{ . }}
pathType: {{ $.Values.ingress.pathType }}
backend:
service:
name: {{ $.Release.Name }}-service
port:
number: {{ $.Values.service.port }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/aspnetcore/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ service:
## @param ingress.className IngressClass that will be be used to implement the Ingress
## @param ingress.hostname Default host for the ingress resource, a host pointing to this will be created
## @param ingress.path Default path for the ingress record
## @param ingress.additionalPaths Additional paths pointing to the same service for the ingress record
## @param ingress.pathType Ingress path type
## @param ingress.annotations Additional annotations for the Ingress resource, for example nginx ingress annotations
## @param ingress.tls.enabled Enable TLS configuration for the host defined at `ingress.hostname` parameter
Expand All @@ -53,6 +54,7 @@ ingress:
className: nginx
hostname: aspnetcore.example.local
path: /
additionalPaths: []
pathType: Prefix
annotations: {}
tls:
Expand Down

0 comments on commit 44ed505

Please sign in to comment.