Skip to content

Commit 98eb878

Browse files
committed
feat: reverted not needed changes
1 parent 954dccf commit 98eb878

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

charts/apl-keycloak-operator/templates/deployment.yaml

+5-20
Original file line numberDiff line numberDiff line change
@@ -31,34 +31,19 @@ spec:
3131
{{- toYaml .Values.securityContext | nindent 12 }}
3232
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3333
imagePullPolicy: {{ .Values.image.pullPolicy }}
34-
35-
command:
3634
{{- 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']
5037
env:
51-
{{- if (not (empty .Values.configs.tls.certificates)) }}
5238
- name: NODE_EXTRA_CA_CERTS
5339
value: "/app/config/tls/certificate.crt"
54-
{{- end }}
55-
{{- with .Values.extraEnv }}
56-
{{- toYaml . | nindent 12 }}
40+
{{- else }}
41+
command: ['npm', 'run', 'operator:keycloak']
5742
{{- end }}
5843
resources:
5944
{{- toYaml .Values.resources | nindent 12 }}
60-
volumeMounts:
6145
{{- if (not (empty .Values.configs.tls.certificates)) }}
46+
volumeMounts:
6247
- name: tls-certs
6348
mountPath: /app/config/tls/certificate.crt
6449
subPath: certificate.crt

charts/apl-keycloak-operator/values.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ configs:
4040
tls:
4141
certificates: {}
4242

43-
extraEnv: []
44-
4543
resources: {}
4644
# We usually recommend not to specify default resources and to leave this as a conscious
4745
# choice for the user. This also increases chances charts run on environments with little

0 commit comments

Comments
 (0)