feat: Add support for User namespaces#2828
Open
fatmcgav wants to merge 3 commits intohashicorp:mainfrom
Open
Conversation
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
PodSpecto addhost_usersfield, which is optional anddefaults to
truehost_usersfield.[1] https://kubernetes.io/blog/2025/04/25/userns-enabled-by-default/
Acceptance tests
Output from acceptance testing:
Release Note
Release note for CHANGELOG:
References
Fixes: #2818
Community Note