File tree 2 files changed +5
-22
lines changed
charts/apl-keycloak-operator
2 files changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -31,34 +31,19 @@ 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 :
36
34
{{- if (not (empty .Values.configs.tls.certificates)) }}
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 }}
35
+ command : ['/bin/sh', '-c']
36
+ args : ['export NODE_EXTRA_CA_CERTS=/app/config/tls/certificate.crt && npm run operator:keycloak']
50
37
env :
51
- {{- if (not (empty .Values.configs.tls.certificates)) }}
52
38
- name : NODE_EXTRA_CA_CERTS
53
39
value : " /app/config/tls/certificate.crt"
54
- {{- end }}
55
- {{- with .Values.extraEnv }}
56
- {{- toYaml . | nindent 12 }}
40
+ {{- else }}
41
+ command : ['npm', 'run', 'operator:keycloak']
57
42
{{- end }}
58
43
resources :
59
44
{{- toYaml .Values.resources | nindent 12 }}
60
- volumeMounts :
61
45
{{- if (not (empty .Values.configs.tls.certificates)) }}
46
+ volumeMounts :
62
47
- name : tls-certs
63
48
mountPath : /app/config/tls/certificate.crt
64
49
subPath : certificate.crt
Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ configs:
40
40
tls :
41
41
certificates : {}
42
42
43
- extraEnv : []
44
-
45
43
resources : {}
46
44
# We usually recommend not to specify default resources and to leave this as a conscious
47
45
# choice for the user. This also increases chances charts run on environments with little
You can’t perform that action at this time.
0 commit comments