Skip to content

Commit

Permalink
Merge pull request goharbor#5319 from BowlingX/master
Browse files Browse the repository at this point in the history
Remove lost+found folder in database volume on initial start
  • Loading branch information
ywk253100 authored Jul 20, 2018
2 parents 6c664ee + 6fea7f7 commit bbb1903
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/helm/harbor/templates/database/database-ss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ spec:
{{ include "harbor.labels" . | indent 8 }}
component: database
spec:
initContainers:
- name: "remove-lost-found"
image: "busybox:1.25.0"
command: ["rm", "-Rf", "/var/lib/postgresql/data/lost+found"]
volumeMounts:
- name: database-data
mountPath: /var/lib/postgresql/data
containers:
- name: database
image: {{ .Values.database.internal.image.repository }}:{{ .Values.database.internal.image.tag }}
Expand Down

0 comments on commit bbb1903

Please sign in to comment.