Skip to content

Commit

Permalink
rename local variable to image_version
Browse files Browse the repository at this point in the history
  • Loading branch information
elchead committed Dec 29, 2023
1 parent 5fe1ce8 commit 25b70bc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/e2e-test-provider-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ jobs:
locals {
name = "${{ steps.create-prefix.outputs.prefix }}"
version = "${image_version}"
image_version = "${image_version}"
}
module "${{ inputs.cloudProvider }}_iam" {
source = "${iam_src}"
Expand Down Expand Up @@ -350,7 +350,7 @@ jobs:
if [[ "${{ inputs.toImage }}" != "" ]]; then
cat >> _override.tf <<EOF
locals {
version = ${{ inputs.toImage && inputs.toImage || steps.find-latest-image.outputs.output }}
image_version = ${{ inputs.toImage && inputs.toImage || steps.find-latest-image.outputs.output }}
}
EOF
fi
Expand Down Expand Up @@ -397,7 +397,6 @@ jobs:
}
EOF
cat _override.tf
# TODO rename version to image_version
- name: Upgrade Terraform Cluster
working-directory: ${{ github.workspace }}/cluster
Expand Down
4 changes: 2 additions & 2 deletions terraform-provider-constellation/examples/full/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ terraform {

locals {
name = "constell"
version = "vX.Y.Z"
image_version = "vX.Y.Z"
csp = "aws"
attestation_variant = "aws-sev-snp"
region = "us-east-2"
Expand Down Expand Up @@ -86,7 +86,7 @@ data "constellation_attestation" "foo" {
data "constellation_image" "bar" {
csp = local.csp
attestation_variant = local.attestation_variant
version = local.version
version = local.image_version
region = local.region
}

Expand Down
4 changes: 2 additions & 2 deletions terraform-provider-constellation/examples/full/azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ terraform {

locals {
name = "constell"
version = "vX.Y.Z"
image_version = "vX.Y.Z"
csp = "azure"
attestation_variant = "azure-sev-snp"
location = "northeurope"
Expand Down Expand Up @@ -83,7 +83,7 @@ data "constellation_attestation" "foo" {
data "constellation_image" "bar" {
csp = local.csp
attestation_variant = local.attestation_variant
version = local.version
version = local.image_version
}

resource "constellation_cluster" "azure_example" {
Expand Down
4 changes: 2 additions & 2 deletions terraform-provider-constellation/examples/full/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ terraform {

locals {
name = "constell"
version = "vX.Y.Z"
image_version = "vX.Y.Z"
csp = "gcp"
attestation_variant = "gcp-sev-es"
region = "europe-west3"
Expand Down Expand Up @@ -86,7 +86,7 @@ data "constellation_attestation" "foo" {
data "constellation_image" "bar" {
csp = local.csp
attestation_variant = local.attestation_variant
version = local.version
version = local.image_version
}

resource "constellation_cluster" "gcp_example" {
Expand Down

0 comments on commit 25b70bc

Please sign in to comment.