Open acbodine opened 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.
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.
klient
needs a new method to report information about all the containers it is the acting proxy for.