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

Support multi-document YAML files with yamldecode() (duplicate of #29729) #1435

Open
shellwhale opened this issue Feb 28, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@shellwhale
Copy link

shellwhale commented Feb 28, 2025

hashicorp/terraform#29729 was closed because manifest_decode_multi was added in the Kubernetes provider.

But not all yaml files are Kubernetes manifests ...

  │ Call to function "provider::kubernetes::manifest_decode_multi" failed:
  │ Invalid Kubernetes manifest: missing field "apiVersion".

Can we re-open the issue ?

My use case are Talos Linux machine configs

  │ Error: Error in function call
  │
  │   on talos-cluster-vsphere/main.tf line 27, in locals:
  │   27:     (provider::kubernetes::manifest_decode_multi(file(item))[0].machine.network.hostname) => provider::kubernetes::manifest_decode_multi(file(item))[0]
  │
  │ Call to function "provider::kubernetes::manifest_decode_multi" failed:
  │ Invalid Kubernetes manifest: missing field "apiVersion".
@shellwhale shellwhale added the enhancement New feature or request label Feb 28, 2025
@shellwhale shellwhale changed the title Support multi-document YAML files with yamldecode() #29729 Support multi-document YAML files with yamldecode() (duplicate of #29729) Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant