Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #70 from mittwald/ingressv1
Browse files Browse the repository at this point in the history
update ingress to networking.k8s.io/v1
  • Loading branch information
Lucaber authored Jul 12, 2023
2 parents 99e0c5d + daae574 commit a72718f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions deploy/helm-chart/servicegateway/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "servicegateway.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: {{ template "servicegateway.ingress.apiVersion" . }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
Expand Down Expand Up @@ -35,17 +35,20 @@ spec:
paths:
{{- range .paths }}
- path: {{ . }}
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
---
{{- $fullName := include "servicegateway.fullname" . -}}
{{- range $ingressName, $ingress := .Values.ingresses }}
{{- if and $ingress (or $ingress.enabled (eq ($ingress.enabled | toString) "<nil>")) }}
apiVersion: {{ template "servicegateway.ingress.apiVersion" $ }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}-{{ $ingressName }}
Expand Down Expand Up @@ -76,9 +79,12 @@ spec:
paths:
{{- range .paths }}
- path: {{ . }}
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: {{ $.Values.service.port}}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- end }}
{{- end }}
---
Expand Down

0 comments on commit a72718f

Please sign in to comment.