Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions chart/templates/artifacts/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ spec:
mountPath: /cert/
readOnly: true
{{- end }}
{{- if .Values.general.readOnlyRootFilesystem }}
- name: tmpfs
mountPath: /var/lib/nginx/tmp
- name: tmpfs
mountPath: /tmp
{{- end }}
{{- if .Values.general.tolerations }}
tolerations:
{{ toYaml .Values.general.tolerations | nindent 8 }}
Expand All @@ -111,3 +117,8 @@ spec:
secretName: {{ .Values.general.internal_tls.certificates.existing_certificates.artifacts }}
{{- end }}
{{- end }}
{{- if .Values.general.readOnlyRootFilesystem }}
- name: tmpfs
emptyDir:
sizeLimit: {{ .Values.general.readOnlyRootFilesystem_tmpfs_sizeLimit }}
{{- end -}}
5 changes: 4 additions & 1 deletion chart/templates/helpers/_keycloak_initContainer.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{{ define "lightrun-keycloak.initContainer.read-only-rootfs" }}
- args:
- cp -R /opt/* /keycloak-empty-dir/
- >
cp -R /opt/* /keycloak-empty-dir/ &&
cd /opt &&
find . -type f -exec touch -r {} /keycloak-empty-dir/{} \; 2>/dev/null
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KC is not starting if these timestamps are not copied from the original files.
It has a logic that checks that the timestamp and fails if they are not older. This is a workaround that we can use until KC is upgraded to 26.4.0; since we need to release a patch to SAP.

command:
- /bin/sh
- -c
Expand Down