Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Revert "Gross hack"
Browse files Browse the repository at this point in the history
This reverts commit cbe92f5.
  • Loading branch information
Scott Crosby committed Mar 22, 2022
1 parent cbe92f5 commit 9b9e532
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions scheduler/src/cook/kubernetes/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1581,15 +1581,7 @@
(when use-checkpoint-injection?
(let [{:keys [command]} checkpoint-container
container (V1Container.)
resources (V1ResourceRequirements.)
; Gross hack becuase init containers are running in the wrong order, fetch the tickets early.
ticket-volumemount
(doto (V1VolumeMount.)
(.setName "kerberos-ticket-volume")
(.setMountPath "/var/secret")
(.readOnly true))
]

resources (V1ResourceRequirements.)]
; container
(.setName container cook-container-name-for-checkpoint-injection)
(.setImage container image)
Expand All @@ -1598,8 +1590,7 @@
(.setWorkingDir container init-container-workdir)
(.setEnv container main-env-vars)
(.setVolumeMounts container (filterv some? (concat [(init-container-workdir-volume-mount-fn false)
(scratch-space-volume-mount-fn false)
ticket-volumemount]
(scratch-space-volume-mount-fn false)]
init-container-checkpoint-volume-mounts)))
(set-mem-cpu-resources resources total-memory-request total-memory-limit total-cpu-request total-cpu-limit)
(.setResources container resources)
Expand Down

0 comments on commit 9b9e532

Please sign in to comment.