compose2kube icon indicating copy to clipboard operation
compose2kube copied to clipboard

Don't use env vars for namespace

Open kelseyhightower opened this issue 8 years ago • 7 comments

Current getting the following issue on master:

Error from server: error when creating "output/cache-rc.yml": namespaces "${NAMESPACE}" not found
Error from server: error when creating "output/cache-srv.yml": namespaces "${NAMESPACE}" not found
Error from server: error when creating "output/database-rc.yml": namespaces "${NAMESPACE}" not found
Error from server: error when creating "output/database-srv.yml": namespaces "${NAMESPACE}" not found
Error from server: error when creating "output/web-rc.yml": namespaces "${NAMESPACE}" not found
Error from server: error when creating "output/web-srv.yml": namespaces "${NAMESPACE}" not found

kelseyhightower avatar Aug 29 '16 12:08 kelseyhightower

same here. Whats the plan? What if to set namespace via flag or env variable? Or wait for templates in 1.4 ? (https://github.com/kubernetes/kubernetes/blob/release-1.4/docs/proposals/templates.md)

mjudeikis avatar Sep 04 '16 17:09 mjudeikis

For now i'm just replacing env vars with statics, is there a k8s friendly way to source vars from the env without config maps?

ghost avatar Sep 09 '16 01:09 ghost

Submitted PR https://github.com/kelseyhightower/compose2kube/pull/40 to work around this for now.

ghost avatar Sep 11 '16 08:09 ghost

I just hit this problem as well.

Mistobaan avatar Sep 18 '16 23:09 Mistobaan

Same issue

blackstar257 avatar Oct 12 '16 07:10 blackstar257

Is this project still active?

ghost avatar Oct 21 '16 15:10 ghost

+1, ran into this, a word on activity would be helpful.

Edit: did see this https://github.com/kubernetes-incubator/kompose

natew avatar May 02 '17 19:05 natew