Skip to content

Commit

Permalink
apply code review suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: rene <[email protected]>
  • Loading branch information
raynay-r committed Jun 30, 2024
1 parent fe44323 commit bf6f73f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/nextcloud/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ spec:
{{- if .Values.mariadb.enabled }}
- name: mariadb-isalive
image: {{ .Values.mariadb.image.registry | default "docker.io" }}/{{ .Values.mariadb.image.repository }}:{{ .Values.mariadb.image.tag }}
{{- with .Values.nextcloud.mariadbInitContainerSecurityContext }}
{{- with .Values.nextcloud.mariaDbInitContainer.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand All @@ -315,7 +315,7 @@ spec:
{{- else if .Values.postgresql.enabled }}
- name: postgresql-isready
image: {{ .Values.postgresql.image.registry | default "docker.io" }}/{{ .Values.postgresql.image.repository }}:{{ .Values.postgresql.image.tag }}
{{- with .Values.nextcloud.postgresqlInitContainerSecurityContext }}
{{- with .Values.nextcloud.postgreSqlInitContainer.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
17 changes: 11 additions & 6 deletions charts/nextcloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,19 +213,24 @@ nextcloud:
# runAsNonRoot: true
# readOnlyRootFilesystem: false

# Set mariadb initContainer securityContext parameters. For example, you may need to define runAsNonRoot directive
mariadbInitContainerSecurityContext: {}

# Set postgresql initContainer securityContext parameters. For example, you may need to define runAsNonRoot directive
postgresqlInitContainerSecurityContext: {}

# Set securityContext parameters for the entire pod. For example, you may need to define runAsNonRoot directive
podSecurityContext: {}
# runAsUser: 33
# runAsGroup: 33
# runAsNonRoot: true
# readOnlyRootFilesystem: false

# Settings for the MariaDB init container
mariaDbInitContainer:
# Set mariadb initContainer securityContext parameters. For example, you may need to define runAsNonRoot directive
securityContext: {}

# Settings for the PostgreSQL init container
postgreSqlInitContainer:
# Set postgresql initContainer securityContext parameters. For example, you may need to define runAsNonRoot directive
securityContext: {}


nginx:
## You need to set an fpm version of the image for nextcloud if you want to use nginx!
enabled: false
Expand Down

0 comments on commit bf6f73f

Please sign in to comment.