Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable non-containerized deployments for head #1626

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

cbbayburt
Copy link
Contributor

@cbbayburt cbbayburt commented Jul 18, 2024

Prevents deploying server and proxy modules with versions head and 5.0-X. Updates the advanced readme to reflect this constraint.

Unfortunately with terraform-1.0.10 it's not possible to print out a specific clear message for this case. Below is an example output when attempting to deploy server on head (same error when using a non-existent product_version):

Error: Invalid index

  on modules/server/main.tf line 40, in module "server":
  40:   image = var.image == "default" ? var.images[var.product_version] : var.image
    ├────────────────
    │ var.images is object with 14 attributes
    │ var.product_version is "head"

The given key does not identify an element in this collection value.

There are some features that help with this in 1.5.x and later. We can revisit this when we finally update to a newer version.

Fixes https://github.com/SUSE/spacewalk/issues/24332

@cbbayburt cbbayburt changed the title Disable non cntrized head Disable non-containerized deployments for head Jul 18, 2024
@cbbayburt cbbayburt merged commit aea4c39 into uyuni-project:master Jul 22, 2024
2 checks passed
@cbbayburt cbbayburt deleted the disable-non-cntrized-head branch July 22, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants