Skip to content

Commit 2d59c3b

Browse files
committed
support alternative kubeconfig location
1 parent b2cab86 commit 2d59c3b

File tree

2 files changed

+74
-53
lines changed

2 files changed

+74
-53
lines changed

src/apb/cli.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import argparse
55
import pkg_resources
66

7+
from kubernetes.config import kube_config
8+
79
import apb.engine
810

911
SKIP_OPTIONS = ['provision', 'deprovision', 'bind', 'unbind', 'roles']
@@ -709,6 +711,14 @@ def main():
709711
default=os.getcwd()
710712
)
711713

714+
parser.add_argument(
715+
'--kubeconfig',
716+
action='store',
717+
dest='kubeconfig',
718+
help=u'OpenShift/Kubernetes configuration file path.',
719+
default=kube_config.KUBE_CONFIG_DEFAULT_LOCATION
720+
)
721+
712722
parser.add_argument(
713723
'--token',
714724
action='store',

0 commit comments

Comments
 (0)