From 06b089c52b3b9364648478fda6e4f918389175e4 Mon Sep 17 00:00:00 2001 From: seolmin Date: Wed, 25 Oct 2023 16:38:34 +0900 Subject: [PATCH 1/2] chore: modify image_pull_secrets field in labels of plugin_info --- src/spaceone/supervisor/service/supervisor_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spaceone/supervisor/service/supervisor_service.py b/src/spaceone/supervisor/service/supervisor_service.py index 04704e6..7ca19a2 100644 --- a/src/spaceone/supervisor/service/supervisor_service.py +++ b/src/spaceone/supervisor/service/supervisor_service.py @@ -255,7 +255,7 @@ def install_plugin(self, params): 'spaceone.supervisor.plugin.service_type': plugin_info.service_type } - if image_pull_secrets := plugin_info.registry_config.get('image_pull_secrets'): + if image_pull_secrets := plugin_info.registry_config.image_pull_secrets: labels.update({'spaceone.supervisor.plugin.image_pull_secrets': image_pull_secrets}) # Determine port mapping From ae86fcf4aa23e936e9a06834cd5d712f2dec7a33 Mon Sep 17 00:00:00 2001 From: seolmin Date: Wed, 25 Oct 2023 16:39:28 +0900 Subject: [PATCH 2/2] chore: remove debug code --- src/spaceone/supervisor/service/supervisor_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spaceone/supervisor/service/supervisor_service.py b/src/spaceone/supervisor/service/supervisor_service.py index 7ca19a2..c5d242b 100644 --- a/src/spaceone/supervisor/service/supervisor_service.py +++ b/src/spaceone/supervisor/service/supervisor_service.py @@ -238,7 +238,7 @@ def install_plugin(self, params): version = params['version'] domain_id = params['domain_id'] plugin_info = self._supervisor_mgr.get_plugin_from_repository(plugin_id, domain_id) - _LOGGER.debug(f'[install_plugin] plugin_info: {plugin_info}') + # _LOGGER.debug(f'[install_plugin] plugin_info: {plugin_info}') # - image_uri # based on image, version, contact to repository API image_uri = "%s/%s:%s" % (