Description of problem: Even after putting defaultMode: 0511 , editing file mounted via configMap with subPath, permission is denied stating: 'file is read-only' Version-Release number of selected component (if applicable): 3.7.44 How reproducible: Always Steps to Reproduce: 1. Set defaultMode: 0511 (which is translated to 777 on the pod) 2. Mount the file via configMap with Subpath 3. Edit the file(mounted via configMap). Actual results: Cannot edit the file as file is readOnly Expected results: Successful edit of the file Additional info:
Adding a reference Bugzilla for the issue: https://bugzilla.redhat.com/show_bug.cgi?id=1481617
all atomic writer volumes (configmap, secret, projected, and downwardAPI) are always readonly, regardless of default mode or readOnly setting in the API. see https://github.com/kubernetes/kubernetes/pull/58720