Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String Beginning with '{' Interpreted as List #1169

Closed
rawkode opened this issue Jun 20, 2023 · 2 comments
Closed

String Beginning with '{' Interpreted as List #1169

rawkode opened this issue Jun 20, 2023 · 2 comments
Labels

Comments

@rawkode
Copy link

rawkode commented Jun 20, 2023

Terraform, Provider, Kubernetes and Helm Versions

Terraform version: 1.4.6
Provider version: 2.9.0
Kubernetes version: 1.25

Affected Resource(s)

  • helm_release

Terraform Configuration Files

    "helm_release": {
      "name-helm-release_F3925D07": {
        "//": {
          "metadata": {
            "path": "name/name/name-helm-release",
            "uniqueId": "name-helm-release_F3925D07"
          }
        },
        "chart": "...",
        "name": "nmame",
        "provider": "helm.helm-eu",
        "repository": "....",
        "set_sensitive": [
          {
            "name": "externalDatabase.password",
            "type": "string",
            "value": "${random_password.name-password_D1E943D2.result}"
          }
    ]
}

Debug Output

I've modified the password, but the shape is the same.

helm_release.name-helm-release_F3925D07: Modifying... [id=name]
╷
│ Error: failed parsing key "externalDatabase.password" with value {1uaB44>D>!/E1V, list must terminate with '}'
│
│   with helm_release.name-helm-release_F3925D07,
│   on cdk.tf.json line 270, in resource.helm_release.name-helm-release_F3925D07:
│  270:       }
│
╵

NOTE: In addition to Terraform debugging, please set HELM_DEBUG=1 to enable debugging info from helm.

Panic Output

Steps to Reproduce

  1. terraform apply

Expected Behavior

Terraform should be able to pass the value to Helm

Actual Behavior

It seems that Terraform thinks the value is a list and not a string

Important Factoids

References

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@rawkode rawkode added the bug label Jun 20, 2023
@rawkode rawkode changed the title String Beginning with '{' String Beginning with '{' Interpreted as List Jun 20, 2023
@rawkode
Copy link
Author

rawkode commented Jun 20, 2023

Looks like this may be a Helm bug instead:

helm/helm#4030

@rawkode
Copy link
Author

rawkode commented Jun 20, 2023

Closing in favour of #1158

@rawkode rawkode closed this as completed Jun 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant