File tree Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
name : keycloak
3
- version : 16.0.0
3
+ version : 16.0.1
4
4
appVersion : 15.0.2
5
5
description : Open Source Identity and Access Management For Modern Applications and Services
6
6
keywords :
Original file line number Diff line number Diff line change @@ -74,14 +74,3 @@ Create the service DNS name.
74
74
{ {- define " keycloak.serviceDnsName" -} }
75
75
{ { include " keycloak.fullname" . } }-headless.{ { .Release.Namespace } }.svc.{ { .Values.clusterDomain } }
76
76
{ {- end } }
77
-
78
- { {/*
79
- Return the appropriate apiVersion for ingress.
80
- */} }
81
- { {- define " keycloak.ingressAPIVersion" -} }
82
- { {- if .Capabilities.APIVersions.Has " networking.k8s.io/v1/Ingress" -} }
83
- { {- print " networking.k8s.io/v1" -} }
84
- { {- else -} }
85
- { {- print " networking.k8s.io/v1beta1" -} }
86
- { {- end -} }
87
- { {- end -} }
Original file line number Diff line number Diff line change 1
1
{{- $ingress := .Values.ingress -}}
2
2
{{- if $ingress.enabled -}}
3
- apiVersion : {{ include "keycloak.ingressAPIVersion" . }}
3
+ {{- $apiV1 := false -}}
4
+ {{- $apiVersion := "extensions/v1beta1" -}}
5
+ {{- if and (.Capabilities.APIVersions.Has "networking.k8s.io/v1") (semverCompare ">= v1.19.0-0" .Capabilities.KubeVersion.Version) -}}
6
+ {{- $apiVersion = "networking.k8s.io/v1" -}}
7
+ {{- $apiV1 = true -}}
8
+ {{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" -}}
9
+ {{- $apiVersion = "networking.k8s.io/v1beta1" -}}
10
+ {{- else -}}
11
+ {{- $apiVersion = "extensions/v1beta1" -}}
12
+ {{- end }}
13
+ apiVersion : {{ $apiVersion }}
4
14
kind : Ingress
5
15
metadata :
6
16
name : {{ include "keycloak.fullname" . }}
38
48
paths :
39
49
{{- range .paths }}
40
50
- path : {{ .path }}
41
- {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
51
+ {{- if $apiV1 }}
42
52
pathType : {{ .pathType }}
43
53
backend :
44
54
service :
54
64
{{- end }}
55
65
{{- if $ingress.console.enabled }}
56
66
---
57
- apiVersion : {{ include "keycloak.ingressAPIVersion" . }}
67
+ apiVersion : {{ $apiVersion }}
58
68
kind : Ingress
59
69
metadata :
60
70
name : {{ include "keycloak.fullname" . }}-console
92
102
paths :
93
103
{{- range .paths }}
94
104
- path : {{ .path }}
95
- {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
105
+ {{- if $apiV1 }}
96
106
pathType : {{ .pathType }}
97
107
backend :
98
108
service :
You can’t perform that action at this time.
0 commit comments