diff --git a/.changelog/3425.added.txt b/.changelog/3425.added.txt new file mode 100644 index 0000000000..89e55e70dd --- /dev/null +++ b/.changelog/3425.added.txt @@ -0,0 +1 @@ +feat: add description including helm version to collector diff --git a/deploy/helm/sumologic/conf/setup/resources.tf b/deploy/helm/sumologic/conf/setup/resources.tf index 9695d4c596..4389a2a593 100644 --- a/deploy/helm/sumologic/conf/setup/resources.tf +++ b/deploy/helm/sumologic/conf/setup/resources.tf @@ -1,5 +1,6 @@ resource "sumologic_collector" "collector" { name = var.collector_name + description = {{ printf "Sumo Logic Kubernetes Collection\nversion: %s" .Chart.Version | quote }} fields = { {{- $fields := .Values.sumologic.collector.fields }} {{- range $name, $value := $fields }} diff --git a/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml b/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml index 9ce2c3574f..94624c8647 100644 --- a/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml @@ -466,6 +466,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml b/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml index 2e009b3dfa..194792a7bd 100644 --- a/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml @@ -465,6 +465,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { here_is_very_long_field_name = "another_value" test_fields = "test_value" diff --git a/tests/helm/testdata/goldenfile/terraform/conditional_sources.output.yaml b/tests/helm/testdata/goldenfile/terraform/conditional_sources.output.yaml index 9f795233f6..f515886010 100644 --- a/tests/helm/testdata/goldenfile/terraform/conditional_sources.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/conditional_sources.output.yaml @@ -450,6 +450,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/custom.output.yaml b/tests/helm/testdata/goldenfile/terraform/custom.output.yaml index 9f795233f6..f515886010 100644 --- a/tests/helm/testdata/goldenfile/terraform/custom.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/custom.output.yaml @@ -450,6 +450,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/default.output.yaml b/tests/helm/testdata/goldenfile/terraform/default.output.yaml index f5b3cc3792..737b7c8080 100644 --- a/tests/helm/testdata/goldenfile/terraform/default.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/default.output.yaml @@ -465,6 +465,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/disable_default_metrics.output.yaml b/tests/helm/testdata/goldenfile/terraform/disable_default_metrics.output.yaml index b04bdfff65..1b3fa903a6 100644 --- a/tests/helm/testdata/goldenfile/terraform/disable_default_metrics.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/disable_default_metrics.output.yaml @@ -464,6 +464,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml b/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml index c891e7e5fd..82b3b226bc 100644 --- a/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml @@ -465,6 +465,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml b/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml index f2a06d754f..42e9428e48 100644 --- a/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml @@ -465,6 +465,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml b/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml index b96d1298cc..87ffb1ddaf 100644 --- a/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml @@ -491,6 +491,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/monitors_with_email_notifications.output.yaml b/tests/helm/testdata/goldenfile/terraform/monitors_with_email_notifications.output.yaml index ce67290063..d9d13d2db4 100644 --- a/tests/helm/testdata/goldenfile/terraform/monitors_with_email_notifications.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/monitors_with_email_notifications.output.yaml @@ -471,6 +471,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/monitors_with_single_email.output.yaml b/tests/helm/testdata/goldenfile/terraform/monitors_with_single_email.output.yaml index b8d7fd3333..67ffdcc994 100644 --- a/tests/helm/testdata/goldenfile/terraform/monitors_with_single_email.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/monitors_with_single_email.output.yaml @@ -471,6 +471,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml b/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml index de511d5087..c4a1d3a13b 100644 --- a/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml @@ -466,6 +466,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/traces.output.yaml b/tests/helm/testdata/goldenfile/terraform/traces.output.yaml index 85cbeddeaa..3e6ea386f7 100644 --- a/tests/helm/testdata/goldenfile/terraform/traces.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/traces.output.yaml @@ -453,6 +453,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } } diff --git a/tests/helm/testdata/goldenfile/terraform/tracing-metrics-disabled.output.yaml b/tests/helm/testdata/goldenfile/terraform/tracing-metrics-disabled.output.yaml index f5b3cc3792..737b7c8080 100644 --- a/tests/helm/testdata/goldenfile/terraform/tracing-metrics-disabled.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/tracing-metrics-disabled.output.yaml @@ -465,6 +465,7 @@ data: resources.tf: | resource "sumologic_collector" "collector" { name = var.collector_name + description = "Sumo Logic Kubernetes Collection\nversion: %CURRENT_CHART_VERSION%" fields = { } }