Skip to content

revert: [NPM] Remove hostUsers Configuration #3612

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

rayaisaiah
Copy link
Contributor

@rayaisaiah rayaisaiah commented Apr 29, 2025

Reason for Change:
Removes the hostUsers: false setting in the NPM daemonset. Reverts from changes #2589

Also adds a public-ip and service tag to NPM scale and conformance tests to comply with SFI rules (failing with RequestDisallowedByPolicy otherwise).

Issue Fixed:
From https://kubernetes.io/docs/concepts/workloads/pods/user-namespaces/#limitations

When using a user namespace for the pod, it is disallowed to use other host namespaces. In particular, if you set hostUsers: false then you are not allowed to set any of:

hostNetwork: true
hostIPC: true
hostPID: true

Requirements:

Notes:

@Copilot Copilot AI review requested due to automatic review settings April 29, 2025 17:43
@rayaisaiah rayaisaiah requested a review from a team as a code owner April 29, 2025 17:43
@rayaisaiah rayaisaiah requested a review from vakalapa April 29, 2025 17:43
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request reverts a previous change that removed the hostUsers configuration in the NPM daemonset, thereby restoring compatibility with user namespace restrictions when using hostNetwork.

  • Reverts removal of "hostUsers: false" in both azure-npm-lite.yaml and azure-npm.yaml
  • Restores original daemonset settings to comply with Kubernetes pod user namespace requirements

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
npm/examples/azure-npm-lite.yaml Re-added "hostUsers: false" to revert previous changes
npm/azure-npm.yaml Re-added "hostUsers: false" to revert previous changes

@rayaisaiah rayaisaiah added npm Related to NPM. linux labels Apr 29, 2025
@rayaisaiah
Copy link
Contributor Author

/azp run Azure Container Networking PR
/azp run NPM Conformance Tests
/azp run NPM Scale Test

Copy link

No pipelines are associated with this pull request.

@rayaisaiah
Copy link
Contributor Author

/azp run Azure Container Networking PR

@rayaisaiah
Copy link
Contributor Author

/azp run NPM Conformance Tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rayaisaiah
Copy link
Contributor Author

/azp run NPM Scale Test

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rayaisaiah rayaisaiah enabled auto-merge April 29, 2025 17:58
huntergregory
huntergregory previously approved these changes Apr 29, 2025
vakalapa
vakalapa previously approved these changes Apr 29, 2025
@rayaisaiah rayaisaiah disabled auto-merge April 29, 2025 18:27
@rayaisaiah rayaisaiah dismissed stale reviews from vakalapa and huntergregory via 77fed05 April 30, 2025 18:00
@rayaisaiah rayaisaiah requested a review from a team as a code owner April 30, 2025 18:00
@rayaisaiah
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rayaisaiah
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rayaisaiah
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux npm Related to NPM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants