Skip to content

Commit

Permalink
Merge pull request #937 from ryanlovett/stat131a-key
Browse files Browse the repository at this point in the history
Add a ~/.ssh mount for stat131a.
  • Loading branch information
ryanlovett committed Aug 20, 2019
2 parents d7f2a0e + ad22e77 commit 73ac14d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deployments/r/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jupyterhub:
2019-fall-29639: {}
# pbhlth w250g
2019-fall-29640: {}
# stat 131a
2019-fall-23970:
extraVolumeMounts:
- mountPath: /home/rstudio/.ssh
name: home
subPath: _stat131a/_ssh
readOnly: true
extraConfig:
# 04, since in hub/values.yaml we explicitly set it to /home/jovyan as 03
04-rstudio-home: |
Expand Down
1 change: 1 addition & 0 deletions hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ jupyterhub:
is_instructor |= (self.user.name in instructors)
if is_student or is_instructor:
self.log.warning(f'using profile {course}')
self.volume_mounts += profile_data.get('extraVolumeMounts', []))
# set new mem thresholds if specified are bigger than current
if 'mem_limit' in profile_data and \
mem_cmp(profile_data['mem_limit'], self.mem_limit) == 1:
Expand Down

0 comments on commit 73ac14d

Please sign in to comment.