Skip to content

S3CSI-220: Add hostPID to node DaemonSet with OpenShift auto-detection#319

Draft
anurag4DSB wants to merge 1 commit intomainfrom
improvement/S3CSI-220-hostpid-openshift
Draft

S3CSI-220: Add hostPID to node DaemonSet with OpenShift auto-detection#319
anurag4DSB wants to merge 1 commit intomainfrom
improvement/S3CSI-220-hostpid-openshift

Conversation

@anurag4DSB
Copy link
Copy Markdown
Collaborator

@anurag4DSB anurag4DSB commented Feb 16, 2026

Summary

  • Port hostPID support from upstream to fix silent data corruption on multi-process writes
  • Add isOpenShift Helm value with auto-detection via SecurityContextConstraints API
  • hostPID: true for vanilla K8s, hostPID: false for OpenShift

Dependencies

Changes

  • values.yaml: Add isOpenShift: null (auto-detect by default)
  • _helpers.tpl: Add isOpenShift helper
  • node.yaml: Add conditional hostPID to DaemonSet pod spec

Test Plan

  • helm template renders hostPID: true by default
  • helm template --set isOpenShift=true renders hostPID: false
  • CI E2E: All E2E tests validate hostPID=true on KIND
  • OpenShift E2E: Requires OpenShift CI from S3CSI-214: Add OpenShift E2E tests with CRC #316

Issue: S3CSI-220

Port hostPID support from upstream. Add isOpenShift value with auto-
detection via SecurityContextConstraints API. hostPID=true for vanilla
K8s, false for OpenShift. Fixes silent data corruption on multi-process
writes.

Issue: S3CSI-220
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.89%. Comparing base (75ee0ef) to head (926a4bc).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #319   +/-   ##
=======================================
  Coverage   71.89%   71.89%           
=======================================
  Files          47       47           
  Lines        2669     2669           
=======================================
  Hits         1919     1919           
  Misses        622      622           
  Partials      128      128           

@anurag4DSB anurag4DSB marked this pull request as draft February 16, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant