Skip to content

Commit b287517

Browse files
authored
Merge pull request #1497 from consideRatio/pr/update-ingress-to-no-longer-check-for-v1beta1
maint: remove ingress conditional no longer needed
2 parents 47d7917 + 20697c6 commit b287517

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

helm-chart/binderhub/templates/ingress.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{{- if .Values.ingress.enabled -}}
2-
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
32
apiVersion: networking.k8s.io/v1
4-
{{- else }}
5-
apiVersion: networking.k8s.io/v1beta1
6-
{{- end }}
73
kind: Ingress
84
metadata:
95
name: binderhub
@@ -25,18 +21,12 @@ spec:
2521
- http:
2622
paths:
2723
- path: /{{ $.Values.ingress.pathSuffix }}
28-
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
2924
pathType: {{ $.Values.ingress.pathType }}
3025
backend:
3126
service:
3227
name: binder
3328
port:
3429
number: 80
35-
{{- else }}
36-
backend:
37-
serviceName: binder
38-
servicePort: 80
39-
{{- end }}
4030
{{- with $host }}
4131
host: {{ . | quote }}
4232
{{- end }}

0 commit comments

Comments
 (0)