Skip to content

Commit

Permalink
Merge pull request #289 from CybercentreCanada/persistent-service-update
Browse files Browse the repository at this point in the history
hotfix for image_name in Kubernetes
  • Loading branch information
cccs-rs authored Sep 2, 2021
2 parents 92fab0b + 02893b2 commit 1cf415b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assemblyline_core/updater/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def process_image(image):
logger.info(f"Latest {service_name} tag on {update_channel.upper()} channel is: {tag_name}")

# Fix service image for use in Kubernetes
image = string.Template(image).safe_substitute(system_config.services.image_variables)
image_variables = defaultdict(str)
image_variables.update(system_config.services.image_variables)
image = string.Template(image).safe_substitute(image_variables)
server, image_name = process_image(image)

# Append server to image if not the default server
Expand Down

0 comments on commit 1cf415b

Please sign in to comment.