Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(charts/portals): add php-ini configmap #18

Merged
merged 1 commit into from
Mar 30, 2024
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
2 changes: 1 addition & 1 deletion charts/portals/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: portals
description: Portals is a group allocation tool for the first week of the Department of Electrical Engineering and Information Technology at the FH Aachen - University of Applied Sciences.
type: application
version: 0.0.4
version: 0.0.5
appVersion: "2.3.0"
home: github.com/fsr5-fhaachen/portals
maintainers:
Expand Down
6 changes: 6 additions & 0 deletions charts/portals/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: ConfigMap
apiVersion: v1
metadata:
name: {{ include "portals.fullname" . }}
data:
php.ini: {{- .Values.phpIni | toYaml | indent 2 }}
9 changes: 9 additions & 0 deletions charts/portals/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ spec:
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
volumeMounts:
- name: configmap
mountPath: /usr/local/etc/php/php.ini
readOnly: true
subPath: php.ini
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -57,3 +62,7 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: configmap
configMap:
name: {{ include "portals.fullname" . }}
7 changes: 7 additions & 0 deletions charts/portals/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,10 @@ migrateJob:

disableReadinessProbe: false # disable pod readiness probe (used for debugging)
disableLivenessProbe: false # disable pod liveness probe (used for debugging)

phpIni: |
upload_max_filesize = 100M
post_max_size = 100M
memory_limit = 128M
max_execution_time = 300
max_input_time = 300
Loading