Skip to content

Commit

Permalink
* feat: align Ingress configuration with updated API standards #462
Browse files Browse the repository at this point in the history
  • Loading branch information
ysicing committed Nov 26, 2024
1 parent 23724f2 commit e6fe19d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions example/helm/prometheusalert/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "prometheusalert.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
Expand Down Expand Up @@ -29,9 +29,12 @@ spec:
paths:
{{- range .paths }}
- path: {{ . }}
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit e6fe19d

Please sign in to comment.