mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-01 14:44:00 +01:00
Merge pull request #5319 from BowlingX/master
Remove lost+found folder in database volume on initial start
This commit is contained in:
commit
bbb190327d
@ -19,6 +19,13 @@ spec:
|
|||||||
{{ include "harbor.labels" . | indent 8 }}
|
{{ include "harbor.labels" . | indent 8 }}
|
||||||
component: database
|
component: database
|
||||||
spec:
|
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:
|
containers:
|
||||||
- name: database
|
- name: database
|
||||||
image: {{ .Values.database.internal.image.repository }}:{{ .Values.database.internal.image.tag }}
|
image: {{ .Values.database.internal.image.repository }}:{{ .Values.database.internal.image.tag }}
|
||||||
|
Loading…
Reference in New Issue
Block a user