aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/authentication/components/oauth2-proxy/templates/deprecation.yaml
blob: 126d3e7a1853922b5e3e704af6aac414ca9e4292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{{- if .Values.checkDeprecation }}
    {{- if .Values.service.port }}
        {{ fail "`service.port` does no longer exist. It has been renamed to `service.portNumber`" }}
    {{- end }}
    {{- if eq ( include "capabilities.ingress.apiVersion" . ) "networking.k8s.io/v1" -}}
        {{- range .Values.ingress.extraPaths }}
            {{- if or (.backend.serviceName) (.backend.servicePort) }}
                {{ fail "Please update the format of your `ingress.extraPaths` to the new ingress apiVersion `networking.k8s.io/v1` format" }}
            {{- end }}
        {{- end }}
    {{- end }}
{{- end }}