From 80ab52eca5ff9b4a086ff78d5c4596384c7fbd62 Mon Sep 17 00:00:00 2001 From: Scott Crosby Date: Thu, 7 Oct 2021 09:05:17 -0500 Subject: [PATCH] DO NOT COMMIT: Disable all write support for testing. --- scheduler/src/cook/kubernetes/api.clj | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/scheduler/src/cook/kubernetes/api.clj b/scheduler/src/cook/kubernetes/api.clj index 87e7b216a2..1f70394a50 100644 --- a/scheduler/src/cook/kubernetes/api.clj +++ b/scheduler/src/cook/kubernetes/api.clj @@ -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. ; @@ -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