Make Kubernetes API call secure

This patch makes API call to Kubernetes secure using the certificate
and key.

Co-Authored-By: Madhuri Kumari<madhuri.kumari@intel.com>
Co-Authored-By: OTSUKA, Yuanying<yuanying@fraction.jp>
Depends-On: I76b0f91f0c44f9880980e35c6b8856ea48ed3ce1
Change-Id: Id4dceb83f67b80f5b39e3047011f9e34e840359d
Partially-Implements: blueprint secure-kubernetes
This commit is contained in:
Surojit Pathak 2015-09-25 19:03:06 +00:00 committed by OTSUKA, Yuanying
parent 110ba3d3bf
commit 705fcdce83

View File

@ -82,7 +82,8 @@ class RESTClientObject(object):
key_file=key_file,
cert_file=cert_file,
cert_reqs=ssl.CERT_REQUIRED,
ca_certs=ca_certs)
ca_certs=ca_certs,
assert_hostname=False)
def agent(self, url):
"""