acbodine / koding

The Simplest Way to Manage Your Entire Dev Infrastructure!
https://www.koding.com
GNU Affero General Public License v3.0
0 stars 0 forks source link

kite/klient: add "proxy.list" method #3

Open acbodine opened 7 years ago

acbodine commented 7 years ago

klient needs a new method to report information about all the containers it is the acting proxy for.

acbodine commented 7 years ago

If the klient is not proxying to a 3rd party API, then it should return a machine info object about the machine/context it is local to. Otherwise, the response should be a list of machine info objects that should be reused from previous definitions elsewhere in the codebase.

In the case of kubernetes, we will query the Kubernetes API for all of the containers inside the pod that a given klient is proxying for.

acbodine commented 7 years ago

For now, KubernetesProxy simply returns a slice of the collective containers across the pods that match a given pod name (assumed to be coming from Koding user upon stack initialization). This can be changed down the road to better suit other Koding platform citizens.