Skip to content

Commit 2875c40

Browse files
authored
Correct semverCompare constraints for ingress. Fixes: #60 (#61)
1 parent 0134bc7 commit 2875c40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.2.1
2+
version: 4.2.2
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{- $ingressPathType := .Values.ingress.pathType -}}
66
{{- $extraPaths := .Values.ingress.extraPaths -}}
77
{{- $apiV1 := false -}}
8-
{{- if and (.Capabilities.APIVersions.Has "networking.k8s.io/v1") (semverCompare ">= v1.19.0" .Capabilities.KubeVersion.Version) -}}
8+
{{- if and (.Capabilities.APIVersions.Has "networking.k8s.io/v1") (semverCompare ">= v1.19.0-0" .Capabilities.KubeVersion.Version) -}}
99
apiVersion: networking.k8s.io/v1
1010
{{- $apiV1 = true -}}
1111
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" -}}

0 commit comments

Comments
 (0)