Skip to content

Commit

Permalink
feat(charts/portals): add php-ini configmap (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonostendorf authored Mar 30, 2024
1 parent 932e5c7 commit 4669451
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
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

0 comments on commit 4669451

Please sign in to comment.