k8s-api
k8s-api copied to clipboard
Enable 'Status' routes
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))))