Skip to content

Commit

Permalink
Merge pull request #143 from minrk/restartNever
Browse files Browse the repository at this point in the history
set default restartPolicy to Never for user pods
  • Loading branch information
yuvipanda committed Mar 15, 2018
2 parents 650a7c3 + 6c4cb25 commit 1a784d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kubespawner/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def make_pod(
)

pod.spec = V1PodSpec(containers=[])
pod.spec.restartPolicy = 'Never'

security_context = V1PodSecurityContext()
if fs_gid is not None:
Expand Down

0 comments on commit 1a784d8

Please sign in to comment.