Skip to content

Commit bcd3b83

Browse files
tompizmorunguiculus
authored andcommitted
Update ghost chart to work with non-root ghost container (helm#1717)
* Update ghost chart to work with non-root ghost container * Bump chart version and move busybox image and tag to values.yaml * Change volumePermissions init-container structure in values.yaml
1 parent 0049b88 commit bcd3b83

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

stable/ghost/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ spec:
1515
labels:
1616
app: {{ template "fullname" . }}
1717
spec:
18+
initContainers:
19+
- name: volume-permissions
20+
image: "{{ .Values.volumePermissions.image.name }}:{{ .Values.volumePermissions.image.tag }}"
21+
imagePullPolicy: {{ default "" .Values.volumePermissions.image.pullPolicy | quote }}
22+
command: ['sh', '-c', 'chmod -R g+rwX /bitnami']
23+
volumeMounts:
24+
- mountPath: /bitnami
25+
name: ghost-data
1826
containers:
1927
- name: {{ template "fullname" . }}
2028
image: "{{ .Values.image }}"

stable/ghost/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
## Bitnami Ghost image version
22
## ref: https://hub.docker.com/r/bitnami/ghost/tags/
33
##
4-
image: bitnami/ghost:0.11.10-r1
4+
image: bitnami/ghost:0.11.10-r2
5+
6+
## Busybox image used to configure volume permissions
7+
##
8+
volumePermissions:
9+
image:
10+
name: busybox
11+
tag: 1.27.1
12+
# pullPolicy:
513

614
## Specify a imagePullPolicy
715
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'

0 commit comments

Comments
 (0)