fix: cap helm provider to < 3.0.0 for legacy set block compatibility#11
fix: cap helm provider to < 3.0.0 for legacy set block compatibility#11KOCEAN33 wants to merge 1 commit into
Conversation
The hashicorp/helm provider 3.0 migrated to the Terraform Plugin Framework and replaced the nested `set`, `set_sensitive`, and `postrender` blocks with list/object attributes. This module still uses the legacy block form, so a fresh `terraform init` (or `-upgrade`) that resolves helm >= 3.0 breaks `apply` with unsupported-block errors. The required_providers constraint had an open upper bound (`>= 2.10.1`), so only a committed lockfile was preventing 3.x from being pulled. Pin the upper bound to keep the 0.1.x line on the compatible 2.x provider. helm 3.x support (migration to the attribute form) is handled separately. Signed-off-by: kocean33 <dev@xanny.us>
|
@csantanapr would you be open to reviewing this one? Thanks for gitops-bridge, by the way; it's been solid for us. This is small but time-sensitive.
As a follow-up I opened #12, which does the full migration to the helm 3.x attribute API and bumps the floor to Does that split sound right to you, and would you be able to review/release when you have a moment? Happy to adjust either PR. |
What
Pin the
hashicorp/helmprovider upper bound to< 3.0.0inversions.tf.Why
The helm provider
3.0migrated to the Terraform Plugin Framework and replaced the nestedset,set_sensitive, andpostrenderblocks with list/object attributes (set = [{ ... }]). This module (main.tf) still uses the legacydynamic "set"block form, so it is incompatible with helm>= 3.0.The constraint was previously open-ended (
>= 2.10.1), meaning only a committed.terraform.lock.hclstopped 3.x from being resolved. Any of these breaksapplywith unsupported-block errors:terraform initin a fresh checkout without the lockfileterraform init -upgradeThis is a minimal holding fix that keeps the current
0.1.xline working on the compatible 2.x provider. It does not add helm 3.x support: that requires migrating the block form to the attribute form and bumping the lower bound to>= 3.0, which is a separate change.Refs #7
Verification
Signed-off-by via
git commit -s(DCO).