Skip to content

Commit

Permalink
chore(setup): run terraform fmt on manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Jun 18, 2024
1 parent 8c430a1 commit a294bb5
Show file tree
Hide file tree
Showing 17 changed files with 195 additions and 195 deletions.
6 changes: 3 additions & 3 deletions deploy/helm/sumologic/conf/setup/fields.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "sumologic_field" "collection_field" {
ignore_changes = [field_name, data_type]
}

field_name = "${ each.key }"
data_type = "String"
state = "Enabled"
field_name = each.key
data_type = "String"
state = "Enabled"
}
10 changes: 5 additions & 5 deletions deploy/helm/sumologic/conf/setup/resources.tf
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
resource "sumologic_collector" "collector" {
name = var.collector_name
description = format("Sumo Logic Kubernetes Collection\nversion: %s", var.chart_version)
fields = var.collector_fields
name = var.collector_name
description = format("Sumo Logic Kubernetes Collection\nversion: %s", var.chart_version)
fields = var.collector_fields
}

resource "kubernetes_secret" "sumologic_collection_secret" {
metadata {
name = var.secret_name
name = var.secret_name
namespace = var.namespace_name
}

data = {
for name, config in local.source_configs : config["config-name"] => lookup(local.sources, name).url
}

type = "Opaque"
type = "Opaque"
wait_for_service_account_token = false
}
10 changes: 5 additions & 5 deletions deploy/helm/sumologic/conf/setup/variables.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
variable "collector_name" {
type = string
type = string
}

variable "namespace_name" {
type = string
type = string
}

variable "secret_name" {
Expand All @@ -18,15 +18,15 @@ variable "create_fields" {

variable "fields" {
description = "Log fields to create."
type = list(string)
type = list(string)
}

variable "collector_fields" {
description = "Fields to set on the collector."
type = map(string)
type = map(string)
}

variable "chart_version" {
description = "The Helm Chart version."
type = string
type = string
}
26 changes: 13 additions & 13 deletions tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ data:
ignore_changes = [field_name, data_type]
}
field_name = "${ each.key }"
data_type = "String"
state = "Enabled"
field_name = each.key
data_type = "String"
state = "Enabled"
}
main.tf: |
terraform {
Expand Down Expand Up @@ -339,22 +339,22 @@ data:
fi
resources.tf: |
resource "sumologic_collector" "collector" {
name = var.collector_name
description = format("Sumo Logic Kubernetes Collection\nversion: %s", var.chart_version)
fields = var.collector_fields
name = var.collector_name
description = format("Sumo Logic Kubernetes Collection\nversion: %s", var.chart_version)
fields = var.collector_fields
}
resource "kubernetes_secret" "sumologic_collection_secret" {
metadata {
name = var.secret_name
name = var.secret_name
namespace = var.namespace_name
}
data = {
for name, config in local.source_configs : config["config-name"] => lookup(local.sources, name).url
}
type = "Opaque"
type = "Opaque"
wait_for_service_account_token = false
}
setup.sh: |
Expand Down Expand Up @@ -531,11 +531,11 @@ data:
bash /etc/terraform/custom.sh
variables.tf: |
variable "collector_name" {
type = string
type = string
}
variable "namespace_name" {
type = string
type = string
}
variable "secret_name" {
Expand All @@ -550,17 +550,17 @@ data:
variable "fields" {
description = "Log fields to create."
type = list(string)
type = list(string)
}
variable "collector_fields" {
description = "Fields to set on the collector."
type = map(string)
type = map(string)
}
variable "chart_version" {
description = "The Helm Chart version."
type = string
type = string
}
providers.tf.json: |
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ data:
ignore_changes = [field_name, data_type]
}
field_name = "${ each.key }"
data_type = "String"
state = "Enabled"
field_name = each.key
data_type = "String"
state = "Enabled"
}
main.tf: |
terraform {
Expand Down Expand Up @@ -339,22 +339,22 @@ data:
fi
resources.tf: |
resource "sumologic_collector" "collector" {
name = var.collector_name
description = format("Sumo Logic Kubernetes Collection\nversion: %s", var.chart_version)
fields = var.collector_fields
name = var.collector_name
description = format("Sumo Logic Kubernetes Collection\nversion: %s", var.chart_version)
fields = var.collector_fields
}
resource "kubernetes_secret" "sumologic_collection_secret" {
metadata {
name = var.secret_name
name = var.secret_name
namespace = var.namespace_name
}
data = {
for name, config in local.source_configs : config["config-name"] => lookup(local.sources, name).url
}
type = "Opaque"
type = "Opaque"
wait_for_service_account_token = false
}
setup.sh: |
Expand Down Expand Up @@ -531,11 +531,11 @@ data:
bash /etc/terraform/custom.sh
variables.tf: |
variable "collector_name" {
type = string
type = string
}
variable "namespace_name" {
type = string
type = string
}
variable "secret_name" {
Expand All @@ -550,17 +550,17 @@ data:
variable "fields" {
description = "Log fields to create."
type = list(string)
type = list(string)
}
variable "collector_fields" {
description = "Fields to set on the collector."
type = map(string)
type = map(string)
}
variable "chart_version" {
description = "The Helm Chart version."
type = string
type = string
}
providers.tf.json: |
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ data:
ignore_changes = [field_name, data_type]
}
field_name = "${ each.key }"
data_type = "String"
state = "Enabled"
field_name = each.key
data_type = "String"
state = "Enabled"
}
main.tf: |
terraform {
Expand Down Expand Up @@ -339,22 +339,22 @@ data:
fi
resources.tf: |
resource "sumologic_collector" "collector" {
name = var.collector_name
description = format("Sumo Logic Kubernetes Collection\nversion: %s", var.chart_version)
fields = var.collector_fields
name = var.collector_name
description = format("Sumo Logic Kubernetes Collection\nversion: %s", var.chart_version)
fields = var.collector_fields
}
resource "kubernetes_secret" "sumologic_collection_secret" {
metadata {
name = var.secret_name
name = var.secret_name
namespace = var.namespace_name
}
data = {
for name, config in local.source_configs : config["config-name"] => lookup(local.sources, name).url
}
type = "Opaque"
type = "Opaque"
wait_for_service_account_token = false
}
setup.sh: |
Expand Down Expand Up @@ -531,11 +531,11 @@ data:
bash /etc/terraform/custom.sh
variables.tf: |
variable "collector_name" {
type = string
type = string
}
variable "namespace_name" {
type = string
type = string
}
variable "secret_name" {
Expand All @@ -550,17 +550,17 @@ data:
variable "fields" {
description = "Log fields to create."
type = list(string)
type = list(string)
}
variable "collector_fields" {
description = "Fields to set on the collector."
type = map(string)
type = map(string)
}
variable "chart_version" {
description = "The Helm Chart version."
type = string
type = string
}
providers.tf.json: |
{
Expand Down
26 changes: 13 additions & 13 deletions tests/helm/testdata/goldenfile/terraform/custom.output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ data:
ignore_changes = [field_name, data_type]
}
field_name = "${ each.key }"
data_type = "String"
state = "Enabled"
field_name = each.key
data_type = "String"
state = "Enabled"
}
main.tf: |
terraform {
Expand Down Expand Up @@ -339,22 +339,22 @@ data:
fi
resources.tf: |
resource "sumologic_collector" "collector" {
name = var.collector_name
description = format("Sumo Logic Kubernetes Collection\nversion: %s", var.chart_version)
fields = var.collector_fields
name = var.collector_name
description = format("Sumo Logic Kubernetes Collection\nversion: %s", var.chart_version)
fields = var.collector_fields
}
resource "kubernetes_secret" "sumologic_collection_secret" {
metadata {
name = var.secret_name
name = var.secret_name
namespace = var.namespace_name
}
data = {
for name, config in local.source_configs : config["config-name"] => lookup(local.sources, name).url
}
type = "Opaque"
type = "Opaque"
wait_for_service_account_token = false
}
setup.sh: |
Expand Down Expand Up @@ -531,11 +531,11 @@ data:
bash /etc/terraform/custom.sh
variables.tf: |
variable "collector_name" {
type = string
type = string
}
variable "namespace_name" {
type = string
type = string
}
variable "secret_name" {
Expand All @@ -550,17 +550,17 @@ data:
variable "fields" {
description = "Log fields to create."
type = list(string)
type = list(string)
}
variable "collector_fields" {
description = "Fields to set on the collector."
type = map(string)
type = map(string)
}
variable "chart_version" {
description = "The Helm Chart version."
type = string
type = string
}
providers.tf.json: |
{
Expand Down
Loading

0 comments on commit a294bb5

Please sign in to comment.