Skip to content

Commit

Permalink
Pointing ecr images to eecr
Browse files Browse the repository at this point in the history
  • Loading branch information
nangu001 committed Apr 9, 2025
1 parent d13d2e2 commit 489f256
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
15 changes: 11 additions & 4 deletions copy_images.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ locals {
enabled = true
dest_path = null
name = "istio-tools/kiali-operator"
source_image = "kiali/kiali-operator"
source_registry = "quay.io"
source_image = "ironbank/opensource/kiali/kiali-operator"
source_registry = var.source_registry
source_tag = var.kiali_application_version
tag = var.kiali_application_version
},
{
enabled = true
dest_path = null
name = "istio-tools/kiali"
source_image = "kiali/kiali"
source_registry = "quay.io"
source_image = "ironbank/opensource/kiali/kiali"
source_registry = var.source_registry
source_tag = var.kiali_application_version
tag = var.kiali_application_version
},
Expand All @@ -33,7 +33,14 @@ module "images" {
image_config = local.image_config
tags = {}

source_username = data.aws_ecr_authorization_token.token.user_name
source_password = data.aws_ecr_authorization_token.token.password

enable_lifecycle_policy = true
lifecycle_policy_all = true
force_delete = true
}

data "aws_ecr_authorization_token" "token" {
registry_id = var.registry_id
}
14 changes: 14 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@ variable "kiali_operator_version" {
default = "1.73.0"
}

#source registry (enterpriser ecr account) where source image is being copied into target account
variable "source_registry" {
description = "source of the image or enterprise ECR account"
type = string
default = "269222635945.dkr.ecr.us-gov-east-1.amazonaws.com/ent-images"
}

#source registry (enterpriser ecr account)
variable "registry_id" {
description = "source of the image or enterprise ECR account"
type = string
default = "269222635945"
}

# See the [APP VERSION] found while determining kiali_operator_version
# helm show values kiali/kiali-operator | grep tag:
variable "kiali_application_version" {
Expand Down

0 comments on commit 489f256

Please sign in to comment.