Skip to content

Commit

Permalink
terraform: allow image to be empty (#2595)
Browse files Browse the repository at this point in the history
* make image optional in the high level modules

* align azure variable description

* set defaults in convenience modules

Signed-off-by: Moritz Sanft <[email protected]>

---------

Signed-off-by: Moritz Sanft <[email protected]>
Co-authored-by: Adrian Stobbe <[email protected]>
  • Loading branch information
msanft and elchead authored Nov 13, 2023
1 parent 8e4feb7 commit 8f2f8bd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/actions/upload_terraform_module/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ runs:
- name: Stamp version
shell: bash
run: |
sed -i "s/@@CONSTELLATION_VERSION@@/${{ inputs.version }}/g" terraform-module/constellation-cluster/variables.tf
sed -i "s/@@CONSTELLATION_VERSION@@/${{ inputs.version }}/g" \
terraform-module/constellation-cluster/variables.tf \
terraform-module/aws-constellation/variables.tf \
terraform-module/azure-constellation/variables.tf \
terraform-module/gcp-constellation/variables.tf
- name: Zip terraform dir
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion terraform/aws-constellation/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ variable "name" {

variable "image" {
type = string
description = "Node image reference or semantic release version."
description = "Node image reference or semantic release version. When not set, the latest default version will be used."
default = "@@CONSTELLATION_VERSION@@"
}

variable "microservice_version" {
Expand Down
3 changes: 2 additions & 1 deletion terraform/azure-constellation/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ variable "name" {

variable "image" {
type = string
description = "Node image reference or semantical release version."
description = "Node image reference or semantic release version. When not set, the latest default version will be used."
default = "@@CONSTELLATION_VERSION@@"
}

variable "microservice_version" {
Expand Down
1 change: 0 additions & 1 deletion terraform/constellation-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ variable "constellation_version" {
variable "image" {
type = string
description = "The node image reference or semantic release version."
default = "@@CONSTELLATION_VERSION@@"
}

variable "csp" {
Expand Down
3 changes: 2 additions & 1 deletion terraform/gcp-constellation/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ variable "service_account_id" {

variable "image" {
type = string
description = "Node image reference or semantic release version."
description = "Node image reference or semantic release version. When not set, the latest default version will be used."
default = "@@CONSTELLATION_VERSION@@"
}

variable "microservice_version" {
Expand Down

0 comments on commit 8f2f8bd

Please sign in to comment.