Skip to content

Commit ffa10a0

Browse files
committed
Mount DR2 tiles to job container
1 parent 6866875 commit ffa10a0

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

envvars.py

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
MONITOR_SERVICE_ACCOUNT_USERNAME = os.environ['MONITOR_SERVICE_ACCOUNT_USERNAME']
4444
DESARCHIVE_HOST_PATH = os.environ['DESARCHIVE_HOST_PATH']
4545
COADD_HOST_PATH = os.environ['COADD_HOST_PATH']
46+
DR2_TILE_HOST_PATH = os.environ['DR2_TILE_HOST_PATH']
4647
JOB_UID = os.environ.get('JOB_UID', '1001')
4748
JOB_GID = os.environ.get('JOB_GID', '1001')
4849

job.tpl.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ spec:
3232
readOnly: true
3333
hostPath:
3434
path: {{ coaddHostPath }}
35+
- name: dr2-tiles
36+
readOnly: true
37+
hostPath:
38+
path: {{ dr2TilePath }}
3539
initContainers:
3640
- name: init
3741
securityContext:
@@ -74,6 +78,8 @@ spec:
7478
mountPath: '/des003/desarchive'
7579
- name: coadd-volume
7680
mountPath: '/des004/coadd'
81+
- name: dr2-tiles
82+
mountPath: "/tiles/dr2"
7783
lifecycle:
7884
postStart:
7985
exec:

kubejob.py

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def job(input):
5959
resource_request_cpu=input["resource_request_cpu"],
6060
desarchiveHostPath=envvars.DESARCHIVE_HOST_PATH,
6161
coaddHostPath=envvars.COADD_HOST_PATH,
62+
dr2TilePath=envvars.DR2_TILE_HOST_PATH,
6263
uid=envvars.JOB_UID,
6364
gid=envvars.JOB_GID,
6465
))

0 commit comments

Comments
 (0)