Skip to content

Commit

Permalink
Set collector image and tag in helm chart (#1627)
Browse files Browse the repository at this point in the history
* Set collector image and tag in helm chart

* Change back default

* revert variable defaults
  • Loading branch information
bryan-aguilar authored May 13, 2024
1 parent c557949 commit b184bd6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions terraform/eks/adot-operator/adot_operator.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ variable "operator_repository" {
variable "operator_tag" {
}

variable "aoc_image_repo" {
}

variable "aoc_version" {
}

resource "helm_release" "adot-operator" {
name = "adot-operator-${var.testing_id}"

Expand All @@ -49,6 +55,16 @@ resource "helm_release" "adot-operator" {
value = var.operator_tag
}

set {
name = "manager.collectorImage.tag"
value = var.aoc_version
}

set {
name = "manager.collectorImage.repository"
value = var.aoc_image_repo
}

provisioner "local-exec" {
command = "kubectl wait --kubeconfig=${var.kubeconfig} --timeout=5m --for=condition=available deployment adot-operator-${var.testing_id}-opentelemetry-operator"
}
Expand Down
2 changes: 2 additions & 0 deletions terraform/eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ module "adot_operator" {
kubeconfig = local_file.kubeconfig.filename
operator_repository = var.operator_repository
operator_tag = var.operator_tag
aoc_image_repo = var.aoc_image_repo
aoc_version = var.aoc_version
}


Expand Down

0 comments on commit b184bd6

Please sign in to comment.