File tree 5 files changed +30
-8
lines changed
charts/apl-keycloak-operator
5 files changed +30
-8
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,34 @@ spec:
31
31
{{- toYaml .Values.securityContext | nindent 12 }}
32
32
image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
33
33
imagePullPolicy : {{ .Values.image.pullPolicy }}
34
+
35
+ command :
34
36
{{- if (not (empty .Values.configs.tls.certificates)) }}
35
- command : ['/bin/sh', '-c']
36
- args : ['export NODE_EXTRA_CA_CERTS=/app/config/tls/certificate.crt && npm run operator:keycloak']
37
+ - ' /bin/sh'
38
+ - ' -c'
39
+ {{- else }}
40
+ - ' npm'
41
+ - ' run'
42
+ - ' operator:keycloak'
43
+ {{- end }}
44
+ args :
45
+ {{- if (not (empty .Values.configs.tls.certificates)) }}
46
+ - ' export NODE_EXTRA_CA_CERTS=/app/config/tls/certificate.crt'
47
+ - ' &&'
48
+ - ' npm run operator:keycloak'
49
+ {{- end }}
37
50
env :
51
+ {{- if (not (empty .Values.configs.tls.certificates)) }}
38
52
- name : NODE_EXTRA_CA_CERTS
39
53
value : " /app/config/tls/certificate.crt"
40
- {{- else }}
41
- command : ['npm', 'run', 'operator:keycloak']
54
+ {{- end }}
55
+ {{- with .Values.extraEnv }}
56
+ {{- toYaml . | nindent 12 }}
42
57
{{- end }}
43
58
resources :
44
59
{{- toYaml .Values.resources | nindent 12 }}
45
- {{- if (not (empty .Values.configs.tls.certificates)) }}
46
60
volumeMounts :
61
+ {{- if (not (empty .Values.configs.tls.certificates)) }}
47
62
- name : tls-certs
48
63
mountPath : /app/config/tls/certificate.crt
49
64
subPath : certificate.crt
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ configs:
40
40
tls :
41
41
certificates : {}
42
42
43
+ extraEnv : []
44
+
43
45
resources : {}
44
46
# We usually recommend not to specify default resources and to leave this as a conscious
45
47
# choice for the user. This also increases chances charts run on environments with little
Original file line number Diff line number Diff line change @@ -946,6 +946,10 @@ environments:
946
946
memory : 1Gi
947
947
_rawValues : {}
948
948
apl-keycloak-operator :
949
+ extraEnv :
950
+ - name : KEYCLOAK_TOKEN_TTL
951
+ value : " 1h"
952
+ -
949
953
resources :
950
954
operator :
951
955
requests :
Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ gitea:
102
102
COOKIE_SECURE: true
103
103
DOMAIN: {{ $giteaDomain }}
104
104
PROVIDER: memory
105
- GC_INTERVAL_TIME: 3600
106
- SESSION_LIFE_TIME: 3600
105
+ GC_INTERVAL_TIME: 900
106
+ SESSION_LIFE_TIME: 1800
107
107
webhook:
108
108
ALLOWED_HOST_LIST: "*"
109
109
server:
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ extraArgs:
55
55
- --cookie-secure=true
56
56
# - # cookie-httponly=true
57
57
- --reverse-proxy=true
58
- - --cookie-refresh=0h1m0s # set to the same as keycloak realm's accessCodeLifespan
58
+ - --cookie-refresh=1m # set to the same as keycloak realm's accessCodeLifespan
59
+ - --cookie-expire=3m
59
60
- --pass-authorization-header=true
60
61
# - # pass-basic-auth=true
61
62
- --skip-auth-regex='/manifest.json'
You can’t perform that action at this time.
0 commit comments