Skip to content

Commit

Permalink
feat(clowder): allow dual-use of image from registry_img and image
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Oct 16, 2024
1 parent dbb4231 commit 2d52e03
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy/clowdapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ objects:
schedule: ${IMPORT_SSG_SCHEDULE}
concurrencyPolicy: Forbid
podSpec:
image: ${IMAGE}:${IMAGE_TAG}
image: "${DEPLOY}"
initContainers:
- command: ["/bin/sh"]
args: ["-c", "$HOME/scripts/abort_if_pending_migrations.sh"]
Expand Down Expand Up @@ -139,7 +139,7 @@ objects:
enabled: true
apiPath: compliance
podSpec:
image: ${IMAGE}:${IMAGE_TAG}
image: ${DEPLOY}
initContainers:
- command: ["/bin/sh"]
args: ["-c", "$HOME/scripts/check_migration_status_and_ssg_synced.sh"]
Expand Down Expand Up @@ -495,6 +495,10 @@ parameters:
description: Image name
value: quay.io/redhat-services-prod/insights-management-tenant/insights-compliance/compliance-backend
- name: IMAGE_DIGEST
- name: REGISTRY_IMG
- name: DEPLOY
generate: expression
from: '[ "{{ if ne .REGISTRY_IMG \"\" }}{{ .REGISTRY_IMG }}@{{ .IMAGE_DIGEST }}{{ else }}{{ .IMAGE }}:{{ .IMAGE_TAG }}{{ end }}" ]'
- name: ENV_NAME
description: ClowdEnv Name
- name: REPLICAS_BACKEND
Expand Down

0 comments on commit 2d52e03

Please sign in to comment.