Skip to content

Module incompatible with v3 helm provider #77

@jbouse

Description

@jbouse

Describe the Bug

The module works fine with the v2 helm provider but with the upgrade to the v3 provider the module no longer works.

 Error: Unsupported block type
│ 
│   on .terraform/modules/helm_release/main.tf line 111, in resource "helm_release" "this":
│  111:   dynamic "set" {
│ 
│ Blocks of type "set" are not expected here.
╵
╷
│ Error: Unsupported block type
│ 
│   on .terraform/modules/helm_release/main.tf line 120, in resource "helm_release" "this":
│  120:   dynamic "set_sensitive" {
│ 
│ Blocks of type "set_sensitive" are not expected here.
╵
╷
│ Error: Unsupported block type
│ 
│   on .terraform/modules/helm_release/main.tf line 129, in resource "helm_release" "this":
│  129:   dynamic "set" {
│ 
│ Blocks of type "set" are not expected here.
╵
╷
│ Error: Unsupported block type
│ 
│   on .terraform/modules/helm_release/main.tf line 138, in resource "helm_release" "this":
│  138:   dynamic "postrender" {
│ 
│ Blocks of type "postrender" are not expected here.

Between v2 and v3 these were changed to be lists of nested objects rather than blocks. https://registry.terraform.io/providers/hashicorp/helm/latest/docs/guides/v3-upgrade-guide

Expected Behavior

Should use lists of nested objects rather than dynamic blocks.

Steps to Reproduce

Upgrade hashicorp/helm provided from any v2 version to any v3 version and execute a previously working set of IaC and watch it fail.

Screenshots

No response

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions