che
che copied to clipboard
ConfigMap mounting leads to removing folders
trafficstars
Describe the bug
I found that directories were removed when I mounted a ConfigMap.
Che version
7.10@latest
Steps to reproduce
- Create the following ConfigMap
kind: ConfigMap
apiVersion: v1
metadata:
name: test
labels:
controller.devfile.io/mount-to-devworkspace: 'true'
controller.devfile.io/watch-configmap: 'true'
annotations:
controller.devfile.io/mount-as: subpath
controller.devfile.io/mount-path: /checode/remote/data/configs
controller.devfile.io/read-only: 'true'
data:
configurations.json: |
{
"test-property": false
}
- Start a workspace
- Go to terminal
- Check
/checode/remote/datafolder contents
Expected behavior
Environment
I faced the problem on the dogfooding instance.
Additional context
The problem reproduces randomly. Try to remove a workspace and create a new one if you don't face the problem.