Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions scheduler/src/cook/kubernetes/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1813,17 +1813,6 @@
; I suspect our predicate of k8s-actual-state-equivalent needs tweaking.
(timers/time! (metrics/timer "delete-pod" compute-cluster-name)
(try
(.deleteNamespacedPod
api
pod-name
pod-namespace
nil ; pretty
nil ; dryRun
nil ; gracePeriodSeconds
nil ; orphanDependents
nil ; propagationPolicy
deleteOptions
)
(catch JsonSyntaxException e
; Silently gobble this exception.
;
Expand All @@ -1841,11 +1830,10 @@
(if already-deleted?
(log/info "In" compute-cluster-name "compute cluster, pod" pod-name "was already deleted")
(throw e))))))))

(defn create-namespaced-pod
"Delegates to the k8s API .createNamespacedPod function"
[^CoreV1Api api namespace pod]
(.createNamespacedPod api namespace pod nil nil nil))
)

(let [json (JSON.)]
(defn launch-pod
Expand Down