Skip to content

Deprecate netNamespaceFilePath for Pod networking/restart feature - #6436

Open
nixpanic wants to merge 4 commits into
ceph:develfrom
nixpanic:deprecation/netNamespaceFilePath
Open

Deprecate netNamespaceFilePath for Pod networking/restart feature#6436
nixpanic wants to merge 4 commits into
ceph:develfrom
nixpanic:deprecation/netNamespaceFilePath

Conversation

@nixpanic

Copy link
Copy Markdown
Member

The feature is not commonly used. Rook and Ceph-CSI Operator have already
deprecated the feature and removed support for it.

Nodeplugins only have hostPID: true set because of this feature. By dropping
the feature, it is possible to reduce the permissions of the Nodeplugin a
little more.

Updates: #6415

nixpanic added 3 commits July 29, 2026 14:20
Make hostPID configurable in Helm charts by automatically detecting
when netNamespaceFilePath is configured in csiConfig. This provides
a secure default (hostPID not set, defaults to false) while enabling
it only when network namespace isolation is required.

Changes:
- RBD: Check for .rbd.netNamespaceFilePath in csiConfig
- CephFS: Check for .cephFS.netNamespaceFilePath in csiConfig
- Only set hostPID: true when netNamespaceFilePath is present
- Remove hostPID from values.yaml (no longer needed)

This matches the pattern used in deploy/ directory where hostPID
is set to false by default with a comment explaining when to enable it.

Assisted-by: AskBob <askbob@ibm.com>
Signed-off-by: Niels de Vos <ndevos@ibm.com>
Change hostPID from true to false in all plugin DaemonSets and the
SecurityContextConstraints. Add a comment explaining that hostPID
should be set to true when netNamespaceFilePath is configured.

This provides a more secure default while still allowing users to
enable hostPID when needed for network namespace isolation.

Files updated:
- deploy/cephfs/kubernetes/csi-cephfsplugin.yaml
- deploy/nfs/kubernetes/csi-nfsplugin.yaml
- deploy/rbd/kubernetes/csi-rbdplugin.yaml
- deploy/nvmeof/kubernetes/csi-nvmeofplugin.yaml
- api/deploy/ocp/scc.yaml (template)
- deploy/scc.yaml (regenerated from template)

Assisted-by: AskBob <askbob@ibm.com>
Signed-off-by: Niels de Vos <ndevos@ibm.com>
Add a deprecation notice in the examples README to inform users that
the netNamespaceFilePath feature is deprecated and will be removed in
a future version. Users should migrate to using host networking for
CSI plugin pods.

Assisted-by: AskBob <askbob@ibm.com>
Signed-off-by: Niels de Vos <ndevos@ibm.com>
@nixpanic
nixpanic force-pushed the deprecation/netNamespaceFilePath branch from 97be30c to 16f4f52 Compare July 29, 2026 13:04
@nixpanic

Copy link
Copy Markdown
Member Author

/test ci/centos/mini-e2e/k8s-1.37

@nixpanic

Copy link
Copy Markdown
Member Author

@nixpanic
nixpanic force-pushed the deprecation/netNamespaceFilePath branch from 16f4f52 to c16a5ba Compare July 29, 2026 13:36
Add a deprecation warning when netNamespaceFilePath is configured in the
CSI configuration. This warns users that the feature will be removed in
a future version and they should migrate to using host networking for
CSI plugin pods.

The warning is logged at the WARNING level when the feature is detected
during volume staging/publishing operations.

Also add deprecation notice to PendingReleaseNotes.md.

Assisted-by: AskBob <askbob@ibm.com>
Signed-off-by: Niels de Vos <ndevos@ibm.com>
@nixpanic
nixpanic force-pushed the deprecation/netNamespaceFilePath branch from c16a5ba to 659bf3b Compare July 29, 2026 13:40
@nixpanic

Copy link
Copy Markdown
Member Author

/test ci/centos/mini-e2e/k8s-1.37

@nixpanic nixpanic added this to the release-v3.18 milestone Jul 30, 2026
@nixpanic

Copy link
Copy Markdown
Member Author

/test ci/centos/mini-e2e/k8s-1.37

Lots of tests have passed, except:

nfs Test NFS CSI [It] create a PVC-PVC clone and bind it to an app

logs

@nixpanic
nixpanic requested a review from a team July 30, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant