Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Improvements to the Scheduler Client #1072

Open
helgi opened this issue Sep 15, 2016 · 1 comment
Open

Improvements to the Scheduler Client #1072

helgi opened this issue Sep 15, 2016 · 1 comment

Comments

@helgi
Copy link
Contributor

helgi commented Sep 15, 2016

This is an umbrella ticket and not all of these things need to be done urgently. Just didn't want to create bunch of tiny tickets just yet

  • When fetching / creating resources can the data be stored internally on the object and run certain function without needing to pass in the structs (move response to attribute). This would amount to being able to do pod = scheduler.pod.get('blah'); pod['metadata']['name'] == 'foo'; pod.update() - note the lack of .json() and such, as response would not be returned anymore by default.
  • Can we store pod/container objects but turn them into a dict for requests (create / update / etc)? makes it all flow nicer, could get rid of manifest()
  • memoize results of version and more! This can be applied per function
  • have the client understand throttling from Kubernetes - Does anything need to be done? Backoff?
  • Start validating inputs? Or make API server catch all those and just bubble it up... our models should catch it anyway

Removing dependency on Django / DRF in Scheduler:

  • remove django settings usage (testing only atm)
  • remove reliance on django cache (testing only)
@Cryptophobia
Copy link
Contributor

This issue was moved to teamhephy/controller#54

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants