Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mounting an automount configmap as subpath ignores binaryData field #1155

Closed
amisevsk opened this issue Jul 20, 2023 · 0 comments · Fixed by #1156
Closed

Mounting an automount configmap as subpath ignores binaryData field #1155

amisevsk opened this issue Jul 20, 2023 · 0 comments · Fixed by #1156
Assignees
Milestone

Comments

@amisevsk
Copy link
Collaborator

amisevsk commented Jul 20, 2023

Description

Mounting a configmap with .binaryData and controller.devfile.io/mount-as: subpath ignores keys in binaryData

How To Reproduce

Create a configmap

kind: ConfigMap
apiVersion: v1
metadata:
  name: test-cm
  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: /tmp/
binaryData:
  testfile: aGVsbG8K # "hello"

and note that testfile is not mounted to /tmp/testfile

Expected behavior

Subpath mounts should consider both binaryData and data.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant