Skip to content

Commit

Permalink
Merge pull request #1 from e-breuninger/resources-from-releases
Browse files Browse the repository at this point in the history
fix: Load resource files from releases
  • Loading branch information
s-diez authored Jan 8, 2024
2 parents ddfc00a + 16857e8 commit 39bfc41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ terraform {
variable "olm_version" {
type = string
description = "Version of the operator lifecycle manager."
default = "v0.18.3"
default = "v0.26.0"
}

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
Expand All @@ -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" {
Expand Down

0 comments on commit 39bfc41

Please sign in to comment.