che icon indicating copy to clipboard operation
che copied to clipboard

ConfigMap mounting leads to removing folders

Open RomanNikitenko opened this issue 7 months ago • 0 comments
trafficstars

Describe the bug

I found that directories were removed when I mounted a ConfigMap.

Che version

7.10@latest

Steps to reproduce

  1. 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
    }
  1. Start a workspace
  2. Go to terminal
  3. Check /checode/remote/data folder contents
Image

Expected behavior

Image

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.

RomanNikitenko avatar Apr 01 '25 07:04 RomanNikitenko