Skip to content

feat: Add support for User namespaces#2828

Open
fatmcgav wants to merge 3 commits intohashicorp:mainfrom
fatmcgav:feat-support-host-users-namespace
Open

feat: Add support for User namespaces#2828
fatmcgav wants to merge 3 commits intohashicorp:mainfrom
fatmcgav:feat-support-host-users-namespace

Conversation

@fatmcgav
Copy link

@fatmcgav fatmcgav commented Jan 8, 2026

Rollback Plan

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

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

Description

This commit updates the pod related resources in order to add support for
the User Namepaces feature which was enabled by default in 1.33 [1].

As part of this:

  • Updated PodSpec to add host_users field, which is optional and
    defaults to true
  • Update corresponding functions to get and set host_users field.
  • Added tests to relevant resources

[1] https://kubernetes.io/blog/2025/04/25/userns-enabled-by-default/

Acceptance tests

  • Have you added an acceptance test for the functionality being added?
  • Have you run the acceptance tests on this branch?

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

Release Note

Release note for CHANGELOG:

...

References

Fixes: #2818

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

This commit updates the pod related resources in order to add support for
the User Namepaces feature which was enabled by default in `1.33` [1].

As part of this:
* Updated `PodSpec` to add `host_users` field, which is optional and
  defaults to `true`
* Update corresponding functions to get and set `host_users` field.
* Added tests to relevant resources

Fixes: hashicorp#2818

[1] https://kubernetes.io/blog/2025/04/25/userns-enabled-by-default/
@fatmcgav fatmcgav requested a review from a team as a code owner January 8, 2026 14:25
@github-actions github-actions bot added the size/L label Jan 8, 2026
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.

Support for user namespaces (hostUsers)

1 participant