diff --git a/deploy/helm/sumologic/conf/setup/setup.sh b/deploy/helm/sumologic/conf/setup/setup.sh index 0aca1f12f..f4e485978 100755 --- a/deploy/helm/sumologic/conf/setup/setup.sh +++ b/deploy/helm/sumologic/conf/setup/setup.sh @@ -95,7 +95,8 @@ function should_create_fields() { cp /etc/terraform/* /terraform/ cd /terraform || exit 1 -declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") +FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) +mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file diff --git a/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml b/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml index fcd5a11ec..67bf2bd55 100644 --- a/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file diff --git a/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml b/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml index e5f65f04e..8205b895a 100644 --- a/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file diff --git a/tests/helm/testdata/goldenfile/terraform/conditional_sources.output.yaml b/tests/helm/testdata/goldenfile/terraform/conditional_sources.output.yaml index 36f4244d6..177848755 100644 --- a/tests/helm/testdata/goldenfile/terraform/conditional_sources.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/conditional_sources.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file diff --git a/tests/helm/testdata/goldenfile/terraform/custom.output.yaml b/tests/helm/testdata/goldenfile/terraform/custom.output.yaml index 36f4244d6..177848755 100644 --- a/tests/helm/testdata/goldenfile/terraform/custom.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/custom.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file diff --git a/tests/helm/testdata/goldenfile/terraform/default.output.yaml b/tests/helm/testdata/goldenfile/terraform/default.output.yaml index d787769a3..97ffa2ca2 100644 --- a/tests/helm/testdata/goldenfile/terraform/default.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/default.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file 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 3ef8be253..6227f1a98 100644 --- a/tests/helm/testdata/goldenfile/terraform/disable_default_metrics.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/disable_default_metrics.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file diff --git a/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml b/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml index d787769a3..97ffa2ca2 100644 --- a/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file diff --git a/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml b/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml index d787769a3..97ffa2ca2 100644 --- a/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file diff --git a/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml b/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml index ee8f71e9f..08b956ad1 100644 --- a/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file 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 d787769a3..97ffa2ca2 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 @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file 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 d787769a3..97ffa2ca2 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 @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file diff --git a/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml b/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml index 3c4b505dc..ea6ee0125 100644 --- a/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file diff --git a/tests/helm/testdata/goldenfile/terraform/traces.output.yaml b/tests/helm/testdata/goldenfile/terraform/traces.output.yaml index abec43942..90b18554a 100644 --- a/tests/helm/testdata/goldenfile/terraform/traces.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/traces.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file 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 d787769a3..97ffa2ca2 100644 --- a/tests/helm/testdata/goldenfile/terraform/tracing-metrics-disabled.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/tracing-metrics-disabled.output.yaml @@ -455,7 +455,8 @@ data: cp /etc/terraform/* /terraform/ cd /terraform || exit 1 - declare -ra FIELDS=("$(jq -r '.fields[]' terraform.tfvars.json)") + FIELDS_STRING=$(jq -r '.fields[]' terraform.tfvars.json) + mapfile -t FIELDS < <(echo "${FIELDS_STRING}") # Fall back to init -upgrade to prevent: # Error: Inconsistent dependency lock file