[bitnami/aspnet] fixed ingress configuration if using extraHosts (#10244)

* fixed ingress configuration if using extraHosts

Signed-off-by: Andreas Daumann <andreas.daumann@hc-vision.de>

* bump version

Signed-off-by: Andreas Daumann <andreas.daumann@hc-vision.de>

* add new version number

Co-authored-by: Andreas Daumann <adaumann@hc-vision.com>
Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Co-authored-by: Javier J. Salmerón-García <jsalmeron@vmware.com>
This commit is contained in:
adaumann
2022-06-08 10:55:28 +02:00
committed by GitHub
parent 99119c04fc
commit 54314d635d
2 changed files with 6 additions and 9 deletions

View File

@@ -22,4 +22,4 @@ name: aspnet-core
sources:
- https://github.com/bitnami/bitnami-docker-aspnet-core
- https://dotnet.microsoft.com/apps/aspnet
version: 3.4.2
version: 3.4.3

View File

@@ -3,7 +3,6 @@ apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }}
kind: Ingress
metadata:
name: {{ include "aspnet-core.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
@@ -28,7 +27,7 @@ spec:
http:
paths:
{{- if .Values.ingress.extraPaths }}
{{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraPaths "context" $) | nindent 10 }}
{{- toYaml .Values.ingress.extraPaths | nindent 10 }}
{{- end }}
- path: {{ .Values.ingress.path }}
{{- if eq "true" (include "common.ingress.supportsPathType" .) }}
@@ -40,13 +39,11 @@ spec:
- host: {{ .name }}
http:
paths:
{{- if .Values.ingress.extraPaths }}
{{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraPaths "context" $) | nindent 10 }}
{{- end }}
- path: {{ default "/" .path }}
backend:
serviceName: {{ include "aspnet-core.fullname" $ }}
servicePort: http
{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
pathType: {{ default "ImplementationSpecific" .pathType }}
{{- end }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "aspnet-core.fullname" $) "servicePort" "http" "context" $) | nindent 14 }}
{{- end }}
{{- if .Values.ingress.extraRules }}
{{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraRules "context" $) | nindent 4 }}