default empty dict
@@ -586,7 +586,7 @@ class KubeConfigMerger:
self.config_merged = ConfigNode(path, config_merged, path)
for item in ('clusters', 'contexts', 'users'):
- self._merge(item, config[item], path)
+ self._merge(item, config.get(item, {}), path)
self.config_files[path] = config
def _merge(self, item, add_cfg, path):
