Skip to content

Commit e6fe19d

Browse files
committed
* feat: align Ingress configuration with updated API standards #462
1 parent 23724f2 commit e6fe19d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

example/helm/prometheusalert/templates/ingress.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- if .Values.ingress.enabled -}}
22
{{- $fullName := include "prometheusalert.fullname" . -}}
33
{{- $svcPort := .Values.service.port -}}
4-
apiVersion: extensions/v1beta1
4+
apiVersion: networking.k8s.io/v1
55
kind: Ingress
66
metadata:
77
name: {{ $fullName }}
@@ -29,9 +29,12 @@ spec:
2929
paths:
3030
{{- range .paths }}
3131
- path: {{ . }}
32+
pathType: Prefix
3233
backend:
33-
serviceName: {{ $fullName }}
34-
servicePort: {{ $svcPort }}
34+
service:
35+
name: {{ $fullName }}
36+
port:
37+
number: {{ $svcPort }}
3538
{{- end }}
3639
{{- end }}
3740
{{- end }}

0 commit comments

Comments
 (0)