Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Allow not mounting Apache configs, if value volumeMounts.apache.mount…
Browse files Browse the repository at this point in the history
…Path is set to empty string
  • Loading branch information
scottrigby committed Jun 26, 2017
1 parent c0b35f4 commit f131108
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions stable/drupal/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ spec:
volumeMounts:
- name: drupal-data
mountPath: {{ .Values.volumeMounts.drupal.mountPath }}
{{- if .Values.volumeMounts.apache.mountPath }}
- name: apache-data
mountPath: {{ .Values.volumeMounts.apache.mountPath }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
Expand All @@ -71,10 +73,12 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
{{- if .Values.volumeMounts.apache.mountPath }}
- name: apache-data
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ template "fullname" . }}-apache
{{- else }}
emptyDir: {}
{{- end }}
{{- end }}
6 changes: 4 additions & 2 deletions stable/drupal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ resources:
memory: 512Mi
cpu: 300m

# Configure volume mounts. This is useful for images whose data mount paths are
# different than the default.
## Configure volume mounts. This is useful for images whose data mount paths are
## different than the default.
## Setting volumeMounts.apache.mountPath to "" prevents Apache config mount.
##
volumeMounts:
drupal:
mountPath: /bitnami/drupal
Expand Down

0 comments on commit f131108

Please sign in to comment.