From c1edc1ffeac0216ebc47e0cafd56e4e06bf83c14 Mon Sep 17 00:00:00 2001 From: Sebastian Diez Date: Wed, 3 Jan 2024 16:38:24 +0100 Subject: [PATCH 1/2] fix: Load resource files from releases Files in deploy/upstream/quickstart are not maintained and still contain values for v0.18.3. --- main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index bbec6de..bbc9617 100644 --- a/main.tf +++ b/main.tf @@ -20,7 +20,7 @@ variable "olm_version" { locals { olm_base_url = format( - "https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/%s", + "https://github.com/operator-framework/operator-lifecycle-manager/releases/download/%s", var.olm_version ) # Make sure dependencies are resolved correctly, this is important in context of terraform destroy to make sure the @@ -37,11 +37,11 @@ locals { } data "http" "olm_crds" { - url = format("%s/deploy/upstream/quickstart/crds.yaml", local.olm_base_url) + url = format("%s/crds.yaml", local.olm_base_url) } data "http" "olm" { - url = format("%s/deploy/upstream/quickstart/olm.yaml", local.olm_base_url) + url = format("%s/olm.yaml", local.olm_base_url) } data "kubectl_file_documents" "olm_crds" { From 16857e8cc6e7ddd5c0c25d8598ddeda539188ba6 Mon Sep 17 00:00:00 2001 From: Sebastian Diez Date: Mon, 8 Jan 2024 10:35:55 +0100 Subject: [PATCH 2/2] feat: Update default olm version to v0.26.0 --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index bbc9617..43d7bae 100644 --- a/main.tf +++ b/main.tf @@ -15,7 +15,7 @@ terraform { variable "olm_version" { type = string description = "Version of the operator lifecycle manager." - default = "v0.18.3" + default = "v0.26.0" } locals {