Skip to content

Commit 9fbe6cf

Browse files
Merge pull request #40 from curamos/patch-1
Make compatible with K8s 1.18
2 parents dfa9624 + 9ef089b commit 9fbe6cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 4.0.2
2+
version: 4.0.3
33
apiVersion: v2
44
appVersion: 7.1.3
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
{{- $ingressPathType := .Values.ingress.pathType -}}
66
{{- $extraPaths := .Values.ingress.extraPaths -}}
77
{{- $apiV1 := false -}}
8-
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
8+
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}}
99
apiVersion: networking.k8s.io/v1
1010
{{- $apiV1 = true -}}
11-
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" -}}
11+
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" -}}
1212
apiVersion: networking.k8s.io/v1beta1
1313
{{- else -}}
1414
apiVersion: extensions/v1beta1

0 commit comments

Comments
 (0)