projectatomic / atomicapp

[UNMAINTAINED] This is the reference implementation of the Nulecule container application Specification: Atomic App
102 stars 71 forks source link

Allow passing kubeconfig to kubernetes provider #266

Closed stefwalter closed 9 years ago

stefwalter commented 9 years ago

Real world kuberenetes is configured with authentication, multi-master, and all sorts of pixie dust. The kubernetes provider should accept a kubeconfig parameter in the answers.conf to which callers can pass a kubeconfig format file (ie: ~/.kube/config) so that kubectl running under atomicapp can find and authenticate against kubernetes.

stefwalter commented 9 years ago

https://github.com/projectatomic/atomicapp/blob/master/atomicapp/providers/openshift.py#L58

vpavlin commented 9 years ago

The command line option is --kubeconfig="" otherwise the code should be the same as for OpenShift...

Maybe the general option like providerconfig in answers.conf would make sense