Skip to content

Commit

Permalink
Re-add init-repo-structure container, because we still need it to cre…
Browse files Browse the repository at this point in the history
…ate the folders

This reverts commit f696ecf.
  • Loading branch information
myieye committed Apr 12, 2024
1 parent 1ded6db commit cffb9b9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deployment/base/hg-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,20 @@ spec:
items:
- key: hgweb.hgrc
path: hgweb.hgrc

initContainers:
- name: init-repo-structure
securityContext:
runAsUser: 33
runAsGroup: 33 # www-data
image: busybox:1.36.1
command:
- 'sh'
- '-c'
- |
cd /repos
mkdir -p a b c d e f g h i j k l m n o p q r s t u v w x y z
mkdir -p 0 1 2 3 4 5 6 7 8 9
volumeMounts:
- name: repos
mountPath: /repos

0 comments on commit cffb9b9

Please sign in to comment.