maint: remove ingress conditional no longer needed
{{- if .Values.ingress.enabled -}}
-{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
apiVersion: networking.k8s.io/v1
-{{- else }}
-apiVersion: networking.k8s.io/v1beta1
-{{- end }}
kind: Ingress
metadata:
name: binderhub
@@ -25,18 +21,12 @@ spec:
- http:
paths:
- path: /{{ $.Values.ingress.pathSuffix }}
- {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: {{ $.Values.ingress.pathType }}
backend:
service:
name: binder
port:
number: 80
- {{- else }}
- backend:
- serviceName: binder
- servicePort: 80
- {{- end }}
{{- with $host }}
host: {{ . | quote }}
{{- end }}
