pod is running with
securityContext:
readOnlyRootFilesystem: false
runAsGroup: 0
runAsNonRoot: false
runAsUser: 0
and then during pod startup process we create user 1000 with 1000 group and chmod mounted PVC.
it works with k8s 1.23 works, and it changes actual volume permissions:
User ID: 1000
Group ID: 1000
Security Style: unix
UNIX Permissions: ---rwxr-x---
but on 1.24 chmod failing and permissions stay the same:
User ID: 0
Group ID: 0
Security Style: unix
UNIX Permissions: ---rwxrwxrwx
Any idea where issue might be?