Skip to content

Commit

Permalink
Merge pull request #28 from lukerops/feat/schema-processor-bool
Browse files Browse the repository at this point in the history
[3/7] SchemaProcessor: bool/v0
  • Loading branch information
daltonmatos authored Nov 4, 2024
2 parents 76fd699 + db6705b commit a3ac78e
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions CustomResourceDefinition/v1alpha1/array/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ module "integer" {
}

module "bool" {
source = "../bool"
count = try(var.manifest.items.type == "bool", false) ? 1 : 0
source = "../../../schemaProcessor/bool/v0/processor"

count = try(var.manifest.items.type == "bool", false) ? 1 : 0

metadata_name = var.metadata_name
path = var.path
Expand Down
2 changes: 1 addition & 1 deletion CustomResourceDefinition/v1alpha1/object/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module "integer" {
}

module "bool" {
source = "../bool"
source = "../../../schemaProcessor/bool/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "bool"])

metadata_name = var.metadata_name
Expand Down
2 changes: 1 addition & 1 deletion CustomResourceDefinition/v1alpha1/reduced_array/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module "integer" {
}

module "bool" {
source = "../bool"
source = "../../../schemaProcessor/bool/v0/processor"
count = try(var.manifest.items.type == "bool", false) ? 1 : 0

metadata_name = var.metadata_name
Expand Down
2 changes: 1 addition & 1 deletion CustomResourceDefinition/v1alpha1/reduced_object/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module "integer" {
}

module "bool" {
source = "../bool"
source = "../../../schemaProcessor/bool/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "bool"])

metadata_name = var.metadata_name
Expand Down
2 changes: 1 addition & 1 deletion CustomResourceDefinition/v1alpha1/root_object/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module "integer" {
}

module "bool" {
source = "../bool"
source = "../../../schemaProcessor/bool/v0/processor"
for_each = toset([for key, value in local.properties : key if try(value.type, null) == "bool"])

metadata_name = var.metadata_name
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion schemaValidation/bool/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "v0" {
source = "./v0"
source = "../../schemaProcessor/bool/v0/validator/"
count = var.schema.version == "v0" ? 1 : 0

metadata_name = var.metadata_name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
run "missing_value" {
command = plan
module {
source = "./schemaValidation/bool/v0/"
source = "./schemaProcessor/bool/v0/validator/"
}

variables {
Expand All @@ -25,7 +25,7 @@ run "missing_value" {
run "with_invalid_value" {
command = plan
module {
source = "./schemaValidation/bool/v0/"
source = "./schemaProcessor/bool/v0/validator/"
}

variables {
Expand All @@ -49,7 +49,7 @@ run "with_invalid_value" {
run "with_valid_value" {
command = plan
module {
source = "./schemaValidation/bool/v0/"
source = "./schemaProcessor/bool/v0/validator/"
}

variables {
Expand Down

0 comments on commit a3ac78e

Please sign in to comment.