def _get_deployed_config()

in config_operator/config_operator/k8s/K8sConfigMap.py [0:0]


    def _get_deployed_config(self):
        """
        This method does not work in my test, the list of config available is not up to date
        """
        try:
            api_list_response = self._api_core_v1_instance.list_namespaced_config_map(self._namespace)
            config_keys = set()
            for item in api_list_response.items:
                config_keys = config_keys.union(item.data.keys())
        except ApiException as e:
            logger.error("Exception when calling Kubernetes CoreV1Api %s\n" % e)
        finally:
            return config_keys