Updated ping command to work with MCC/MOS
- updated Pinger class with inherited structure for Salt and Kube
- implemented DeamonSet handling in KubeApi interface
- implemented put-textfile and series of ConfigMap methods in KubeApi
- updated Pinger to use multiple --cidr commands at once
- update Summary section to be more informative and human readable
Change-Id: Iac18a619d0bb9a36a286a07f38aeba8f99a454ca
Related-PROD: PROD-36603
diff --git a/cfg_checker/common/settings.py b/cfg_checker/common/settings.py
index 993f92f..7b79354 100644
--- a/cfg_checker/common/settings.py
+++ b/cfg_checker/common/settings.py
@@ -327,7 +327,8 @@
self.kube_config_detected = True
else:
logger_cli.debug("... KUBECONFIG env var not found")
- self.kube_config_path = None
+ # do not change it from default
+ # self.kube_config_path = None
self.kube_config_detected = False
else:
logger_cli.debug(
@@ -339,7 +340,7 @@
# try to load values from KUBECONF
_kube_conf = None
- if self.kube_config_path:
+ if self.kube_config_path and self.kube_config_detected:
with open(self.kube_config_path) as kF:
_kube_conf = yaml.load(kF, Loader=yaml.SafeLoader)
# extract host ip