elotl / kip

Virtual-kubelet provider running pods in cloud instances
Apache License 2.0
223 stars 14 forks source link

GCE Marketplace: env var to run kip using the mock cloud provider #125

Closed justnoise closed 4 years ago

justnoise commented 4 years ago

If MOCK_CLOUD_API=true (or some variation of true) then run kip with a mocked out cloud provider. To do this, I've added a couple more fake methods in the cloud mock.

One caveat of this change is that the user cannot run with the mock cloud provider and then, using the same persistent volume, change to running with a regular cloud provider. That will cause issues with the code that detects a region change. While it's unlikely a user would change regions in kip (it was an easy change to make in milpa's configuration), I still think we should catch that. There are ways around this issue but I think we don't need to implement them at this time.