Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed May 29, 2024
1 parent 0bf4b03 commit 8ce6786
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions charts/scorpio-broker-aaio/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "scorpioBroker-aaio.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- $fullName := include "scorpioBroker-aaio.fullname" . -}}
{{- $servicePort := .Values.service.port -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
name: {{ include "scorpioBroker-aaio.fullname" . }}
namespace: {{ $.Release.Namespace | quote }}
labels:
{{- include "scorpioBroker-aaio.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
{{ include "scorpioBroker-aaio.labels" . | nindent 4 }}
{{- if .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
Expand All @@ -38,4 +40,4 @@ spec:
number: {{ $servicePort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 8ce6786

Please sign in to comment.