Fixing error in kube smoke tests (#5585)

This commit is contained in:
davidjumani 2021-10-18 16:10:40 +05:30 committed by GitHub
parent a8b19ee2d3
commit 75a8c8ff7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ class TestKubernetesCluster(cloudstackTestCase):
def waitForAutoscalerPodInRunningState(self, cluster_id, retries=5, interval=60):
k8s_config = self.fetchKubernetesClusterConfig(cluster_id)
cfg = io.StringIO(k8s_config.configdata)
cfg = yaml.load(cfg)
cfg = yaml.safe_load(cfg)
# Adding this so we don't get certificate exceptions
cfg['clusters'][0]['cluster']['insecure-skip-tls-verify']=True
config.load_kube_config_from_dict(cfg)