Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable 'Status' routes #6

Open
luciolucio opened this issue Dec 4, 2020 · 0 comments
Open

Enable 'Status' routes #6

luciolucio opened this issue Dec 4, 2020 · 0 comments

Comments

@luciolucio
Copy link

luciolucio commented Dec 4, 2020

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))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant