Merge pull request #45 from bran-wang/master

Fix trailing slash on kube/config failure  #388
This commit is contained in:
k8s-ci-robot 2018-11-12 10:21:11 -08:00 committed by GitHub
commit 879ab0124f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -378,7 +378,7 @@ class KubeConfigLoader(object):
def _load_cluster_info(self):
if 'server' in self._cluster:
self.host = self._cluster['server']
self.host = self._cluster['server'].rstrip('/')
if self.host.startswith("https"):
self.ssl_ca_cert = FileOrData(
self._cluster, 'certificate-authority',