From 01b92d654bb5d0b6954adfc6d8eefe4858ca2e22 Mon Sep 17 00:00:00 2001 From: Roger Yao Date: Tue, 5 Mar 2024 14:29:37 +0800 Subject: [PATCH] ci: Update livenessProbe.repository value in Rancher chart When the LONGHORN_REPO is set to 'longhornio', we need to update the livenessProbe.repository value to 'longhornio/livenessprobe' in the Rancher chart. longhorn/longhorn#8095 Signed-off-by: Roger Yao --- pipelines/utilities/rancher/terraform_install/main.tf | 2 ++ pipelines/utilities/rancher/terraform_upgrade/main.tf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pipelines/utilities/rancher/terraform_install/main.tf b/pipelines/utilities/rancher/terraform_install/main.tf index 42c86fa400..9193aae1ea 100644 --- a/pipelines/utilities/rancher/terraform_install/main.tf +++ b/pipelines/utilities/rancher/terraform_install/main.tf @@ -53,6 +53,8 @@ image: repository: ${var.longhorn_repo == "rancher" ? "${var.longhorn_repo}/mirrored-longhornio-" : "${var.longhorn_repo}/"}csi-resizer snapshotter: repository: ${var.longhorn_repo == "rancher" ? "${var.longhorn_repo}/mirrored-longhornio-" : "${var.longhorn_repo}/"}csi-snapshotter + livenessProbe: + repository: ${var.longhorn_repo == "rancher" ? "${var.longhorn_repo}/mirrored-longhornio-" : "${var.longhorn_repo}/"}livenessprobe longhorn: backingImageManager: repository: ${var.longhorn_repo == "rancher" ? "${var.longhorn_repo}/mirrored-longhornio-" : "${var.longhorn_repo}/"}backing-image-manager diff --git a/pipelines/utilities/rancher/terraform_upgrade/main.tf b/pipelines/utilities/rancher/terraform_upgrade/main.tf index c949e6e28a..a81d15112f 100644 --- a/pipelines/utilities/rancher/terraform_upgrade/main.tf +++ b/pipelines/utilities/rancher/terraform_upgrade/main.tf @@ -41,6 +41,8 @@ image: repository: ${var.longhorn_repo == "rancher" ? "${var.longhorn_repo}/mirrored-longhornio-" : "${var.longhorn_repo}/"}csi-resizer snapshotter: repository: ${var.longhorn_repo == "rancher" ? "${var.longhorn_repo}/mirrored-longhornio-" : "${var.longhorn_repo}/"}csi-snapshotter + livenessProbe: + repository: ${var.longhorn_repo == "rancher" ? "${var.longhorn_repo}/mirrored-longhornio-" : "${var.longhorn_repo}/"}livenessprobe longhorn: backingImageManager: repository: ${var.longhorn_repo == "rancher" ? "${var.longhorn_repo}/mirrored-longhornio-" : "${var.longhorn_repo}/"}backing-image-manager