Skip to content

Order of volumeMounts, etc. is not consistent in deployment, resulting in repeated changes #859

@amisevsk

Description

@amisevsk

Description

Similar to #849, DWO also has an issue when using subpath mounts, where the individual volume mounts can appear in a random order. This is because the internal comparison ignores order based on volume name, but for subpath volumes, we have multiple volumes for the same configmap

As DWO encounters these entries in random order, it causes random changes to the workspace deployment, preventing the workspace from starting.

How To Reproduce

Apply the configmap

apiVersion: v1
kind: ConfigMap
metadata:
  name: init-scripts
  annotations:
    controller.devfile.io/mount-as: subpath
    controller.devfile.io/mount-path: /home/user/
  labels:
    controller.devfile.io/mount-to-devworkspace: 'true'
    controller.devfile.io/watch-configmap: 'true'
data:
  init-nodejs.sh: 'test'
  init-truststore.sh: 'test'

and attempt to start a workspace.

Expected behavior

Additional context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions