Skip to content

Commit

Permalink
Review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
arueth committed Dec 19, 2024
1 parent 3817a45 commit 2fe2f53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions platforms/gke/base/_shared_config/initialize_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# - shared_config/platform_variables.tf
#

variable "initialize_use_case" {
variable "initialize_backend_use_case_name" {
default = null
description = "Initialize the backend.tf file for this use case"
description = "Create a templated backend.tf file in each folder that contains a versions.tf file for the specified use case. This value should be a folder or path within the 'base/use-cases' directory."
type = string
}
4 changes: 2 additions & 2 deletions platforms/gke/base/core/initialize/local_file.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ locals {
core_backend_directories = toset([for _, version_file in local.core_versions_files : trimprefix(trimsuffix(version_file, "/versions.tf"), "../")])
core_versions_files = flatten([for _, file in flatten(fileset(local.base_directory, "core/**/versions.tf")) : file])

use_case_backend_directories = var.initialize_use_case != null ? toset([for _, version_file in local.use_case_versions_files : trimprefix(trimsuffix(dirname(version_file), "/versions.tf"), "../")]) : []
use_case_versions_files = var.initialize_use_case != null ? flatten([for _, file in flatten(fileset("${local.base_directory}/use-cases", "${var.initialize_use_case}/**/versions.tf")) : file]) : []
use_case_backend_directories = var.initialize_backend_use_case_name != null ? toset([for _, version_file in local.use_case_versions_files : trimprefix(trimsuffix(dirname(version_file), "/versions.tf"), "../")]) : []
use_case_versions_files = var.initialize_backend_use_case_name != null ? flatten([for _, file in flatten(fileset("${local.base_directory}/use-cases", "${var.initialize_backend_use_case_name}/**/versions.tf")) : file]) : []
}

resource "local_file" "core_backend_tf" {
Expand Down

0 comments on commit 2fe2f53

Please sign in to comment.