Skip to content

fix(helm/k8s_standard): use metadata object for values output#356

Closed
unni-facets wants to merge 1 commit into
mainfrom
fix/helm-k8s-standard-metadata-object
Closed

fix(helm/k8s_standard): use metadata object for values output#356
unni-facets wants to merge 1 commit into
mainfrom
fix/helm-k8s-standard-metadata-object

Conversation

@unni-facets

Copy link
Copy Markdown
Collaborator

Problem

raptor create iac-module --publish fails terraform validate on outputs.tf:4:

Error: Invalid index
The given key does not identify an element in this collection value.
An object only supports looking up attributes by name, not by numeric index.

Cause

Helm provider v3 changed helm_release.metadata from a list to a single object. The metadata[0] numeric index is no longer valid.

Fix

-    values = jsondecode(helm_release.external_helm_charts.metadata[0].values)
+    values = jsondecode(helm_release.external_helm_charts.metadata.values)

Verification

raptor create iac-module -f . --publish (full validation, no skip) passes:

  • 🔍 Terraform validation successful
  • ✅ Output types validated successfully
  • ✓ Module published (Stage: PUBLISHED) on capillary CP

helm provider v3 changed helm_release.metadata from a list to a single
object. metadata[0].values failed terraform validate with 'Invalid index'.
Drop the numeric index: metadata.values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant