Skip to content

Commit

Permalink
Merge pull request #38 from stat-kwon/master
Browse files Browse the repository at this point in the history
Modify image_pull_secrets field in labels of plugin_info
  • Loading branch information
stat-kwon authored Oct 25, 2023
2 parents 79782f0 + ae86fcf commit 834f701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spaceone/supervisor/service/supervisor_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" % (
Expand All @@ -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
Expand Down

0 comments on commit 834f701

Please sign in to comment.