Skip to content

Change all_namespaces type to set#2835

Open
Fodoj wants to merge 1 commit intohashicorp:mainfrom
Fodoj:main
Open

Change all_namespaces type to set#2835
Fodoj wants to merge 1 commit intohashicorp:mainfrom
Fodoj:main

Conversation

@Fodoj
Copy link

@Fodoj Fodoj commented Feb 5, 2026

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

No

Description

Namespace names are unique within Kubernetes cluster. Currently, to iterate over all namespaces using for_each one needs to wrap this data resource's attribute with toset() - this is unnessary, as it should be a set in the first palce.

Acceptance tests

  • Have you run the acceptance tests on this branch?

Release Note

Release note for CHANGELOG:

Breaking: `data.kubernetes_all_namespaces.x.namespaces` is now of type Set, index-based references to it's elements need to be replaced.

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

@Fodoj Fodoj requested a review from a team as a code owner February 5, 2026 14:11
@hashicorp-cla-app
Copy link

hashicorp-cla-app bot commented Feb 5, 2026

CLA assistant check
All committers have signed the CLA.

@hashicorp-cla-app
Copy link

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes

Have you signed the CLA already but the status is still pending? Recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant