k8s-api icon indicating copy to clipboard operation
k8s-api copied to clipboard

Enable 'Status' routes

Open luciolucio opened this issue 3 years ago • 0 comments

Status routes are currently explicitly disabled in kubernetes-api.internals.client/find-preferred-route. This prevents access to things like CronJobs/Status, but when I comment this out it seems to work just fine. Is there a reason for this explicit filtering out of routes ending in Status?

(defn find-preferred-route [k8s search-params]
  (->> (find-route k8s search-params)
       (filter (fn [x] (not (string/ends-with? (name x) "Status"))))
       ((partial choose-preffered-version k8s))))

luciolucio avatar Dec 04 '20 12:12 luciolucio