-
Notifications
You must be signed in to change notification settings - Fork 44
/
keycloak.yaml
139 lines (139 loc) Β· 4.3 KB
/
keycloak.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{{- if .Values.keycloak.enabled }}
apiVersion: k8s.keycloak.org/v2alpha1
kind: Keycloak
metadata:
name: {{ default (include "keycloak-operator.fullname" .) .Values.keycloak.name }}
labels:
{{- include "keycloak-operator.labels" . | nindent 4 }}
app.kubernetes.io/component: keycloak
spec:
{{- with .Values.keycloak.additionalOptions }}
additionalOptions: {{ . | toYaml | nindent 4 }}
{{- end }}
{{- with .Values.keycloak.cache }}
cache: {{- . | toYaml | nindent 4 }}
{{- end }}
{{- if or .Values.keycloak.db.url (and .Values.keycloak.db.host .Values.keycloak.db.port .Values.keycloak.db.database ) }}
db:
{{- with .Values.keycloak.db.database }}
database: {{ . | quote }}
{{- end }}
{{- with .Values.keycloak.db.host }}
host: {{ . | quote }}
{{- end }}
{{- with .Values.keycloak.db.passwordSecret }}
passwordSecret: {{ . | toYaml | nindent 6 }}
{{- end }}
{{- with .Values.keycloak.db.poolInitialSize }}
poolInitialSize: {{ . }}
{{- end }}
{{- with .Values.keycloak.db.poolMaxSize }}
poolMaxSize: {{ . }}
{{- end }}
{{- with .Values.keycloak.db.poolMinSize }}
poolMinSize: {{ . }}
{{- end }}
{{- with .Values.keycloak.db.port }}
port: {{ . }}
{{- end }}
{{- with .Values.keycloak.db.schema }}
schema: {{ . | quote }}
{{- end }}
{{- with .Values.keycloak.db.url }}
url: {{ . | quote }}
{{- end }}
{{- with .Values.keycloak.db.usernameSecret }}
usernameSecret: {{ . | toYaml | nindent 6 }}
{{- end }}
{{- with .Values.keycloak.db.vendor }}
vendor: {{ . | quote }}
{{- end }}
{{- end }}
{{- if or .Values.keycloak.features.disabled .Values.keycloak.features.enabled }}
features:
{{- with .Values.keycloak.features.disabled }}
disabled: {{ . | toYaml | nindent 6 }}
{{- end }}
{{- with .Values.keycloak.features.enabled }}
enabled: {{ . | toYaml | nindent 6 }}
{{- end }}
{{- end }}
{{- with .Values.keycloak.hostname }}
hostname:
{{- with .admin }}
admin: {{ . }}
{{- end }}
{{- with .adminUrl }}
adminUrl: {{ . }}
{{- end }}
{{- if not (eq .backchannelDynamic nil) }}
backchannelDynamic: {{ .backchannelDynamic }}
{{- end }}
{{- with .hostname }}
hostname: {{ . | quote }}
{{- end }}
{{- if not (.strict | toString | empty ) }}
strict: {{ ternary "true" "false" .strict }}
{{- end }}
{{- end }}
http:
{{- with .Values.keycloak.http.httpEnabled }}
httpEnabled: {{ ternary "true" "false" . }}
{{- end }}
{{- with .Values.keycloak.http.httpPort }}
httpPort: {{ . }}
{{- end }}
{{- with .Values.keycloak.http.httpsPort }}
httpsPort: {{ . }}
{{- end }}
{{- with .Values.keycloak.http.tlsSecret }}
tlsSecret: {{ . | quote }}
{{- end }}
{{- with .Values.keycloak.httpManagement.port }}
httpManagement:
port: {{ . }}
{{- end }}
{{- if or .Values.keycloak.image.repository .Values.keycloak.image.tag }}
image: "{{ .Values.keycloak.image.repository | default .Values.operator.config.keycloakImage.repository }}:{{ .Values.keycloak.image.tag | default .Values.operator.config.keycloakImage.tag | default .Chart.AppVersion }}"
{{- end }}
{{- with .Values.keycloak.imagePullSecrets }}
imagePullSecrets: {{ . | toYaml | nindent 4 }}
{{- end }}
{{- if .Values.keycloak.ingress.enabled }}
ingress:
enabled: true
{{- with .Values.keycloak.ingress.annotations }}
annotations:
{{ . | nindent 6 }}
{{- end }}
{{- with .Values.keycloak.ingress.className }}
className: {{ . | quote }}
{{- end }}
{{- else }}
ingress:
enabled: false
{{- end }}
{{- with .Values.keycloak.instances }}
instances: {{ . }}
{{- end }}
{{- with .Values.keycloak.proxy.headers }}
proxy:
headers: {{ . }}
{{- end }}
{{- with .Values.keycloak.resources }}
resources: {{ . | toYaml | nindent 4 }}
{{- end }}
{{- with .Values.keycloak.startOptimized }}
startOptimized: {{ ternary "true" "false" . }}
{{- end }}
{{- with .Values.keycloak.transaction.xaEnabled }}
transaction:
xaEnabled: {{ ternary "true" "false" . }}
{{- end }}
{{- with .Values.keycloak.truststrores }}
truststores: {{ . | toYaml | nindent 4 }}
{{- end }}
{{- with .Values.keycloak.unsupported }}
unsupported: {{ . | toYaml | nindent 4 }}
{{- end }}
{{- end }}