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

Automatically mounting volumes, configmaps, and secrets #6549

Closed
6 tasks done
Tracked by #6478
kadel opened this issue Jan 30, 2023 · 15 comments · Fixed by #6750
Closed
6 tasks done
Tracked by #6478

Automatically mounting volumes, configmaps, and secrets #6549

kadel opened this issue Jan 30, 2023 · 15 comments · Fixed by #6750
Assignees
Labels
priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)).
Milestone

Comments

@kadel
Copy link
Member

kadel commented Jan 30, 2023

related to #6478 epic

@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label Jan 30, 2023
@rm3l rm3l added this to odo Project Jan 30, 2023
@valaparthvi
Copy link
Contributor

valaparthvi commented Feb 2, 2023

@kadel Can you set a priority on this? Also, care to elaborate?

@valaparthvi
Copy link
Contributor

Related to #6542.

@kadel kadel added the priority/Medium Nice to have issue. Getting it done before priority changes would be great. label Feb 2, 2023
@kadel kadel added priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)). and removed priority/Medium Nice to have issue. Getting it done before priority changes would be great. labels Feb 17, 2023
@kadel
Copy link
Member Author

kadel commented Feb 17, 2023

Bumping priority as we have a user requiring this to use odo in their environment.

@feloy
Copy link
Contributor

feloy commented Mar 2, 2023

@kadel, What is the purpose of controller.devfile.io/watch-configmap and controller.devfile.io/watch-secret labels? (https://github.com/devfile/devworkspace-operator/blob/main/docs/additional-configuration.adoc#automatically-mounting-volumes-configmaps-and-secrets)

@feloy
Copy link
Contributor

feloy commented Mar 2, 2023

@kadel Do we want to implement this for Podman?

@kadel
Copy link
Member Author

kadel commented Mar 15, 2023

@kadel, What is the purpose of controller.devfile.io/watch-configmap and controller.devfile.io/watch-secret labels? (https://github.com/devfile/devworkspace-operator/blob/main/docs/additional-configuration.adoc#automatically-mounting-volumes-configmaps-and-secrets)

not sure :-(

@kadel Do we want to implement this for Podman?

Not for now. If I'm not mistaken, Secrets and ConfigMaps are not supported on Podman. Once podman adds support for those we should implement this.

Volumes are supported to some extent on Podman, but I don't think it makes sense to do just partial implementation for volumes. We will add all this together with Secrets and ConfigMaps

@rm3l rm3l added this to the v3.9.0 🚀 milestone Mar 22, 2023
@rm3l rm3l removed the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label Mar 23, 2023
@feloy feloy moved this to In Progress 🚧 in odo Project Mar 28, 2023
@feloy feloy mentioned this issue Mar 29, 2023
3 tasks
@feloy
Copy link
Contributor

feloy commented Mar 30, 2023

@kadel What would be the new label replacing controller.devfile.io/mount-to-devworkspace?

@feloy
Copy link
Contributor

feloy commented Mar 31, 2023

@l0rd Do you have an opinion on what should be the new label replacing controller.devfile.io/mount-to-devworkspace to have a label used by all tools?

@feloy feloy moved this from In Progress 🚧 to In Review 👀 in odo Project Mar 31, 2023
@l0rd
Copy link

l0rd commented Apr 3, 2023

@feloy I was thinking about controller.devfile.io/auto-mount but I also like the one that you have in the PR controller.devfile.io/mount-to-containers. @amisevsk @AObuchow what do you think?

@amisevsk
Copy link

amisevsk commented Apr 3, 2023

@kadel, What is the purpose of controller.devfile.io/watch-configmap and controller.devfile.io/watch-secret labels? (https://github.com/devfile/devworkspace-operator/blob/main/docs/additional-configuration.adoc#automatically-mounting-volumes-configmaps-and-secrets)

These labels are required for the DevWorkspace Operator (and should not be necessary for odo). In operator land, we don't want to cache every configmap/secret on the cluster internally, so we filter by label. Since configmaps/labels aren't associated with any one workspace, we need a more generic label for "relevant to DWO".

I was thinking about controller.devfile.io/auto-mount but I also like the one that you have in the PR controller.devfile.io/mount-to-containers.

If we're moving the label definition up to devfile/api, we should modify the controller.devfile.io part -- that is included to scope labels/annotations to the DevWorkspace Operator (as opposed to the general devfile API). As for specific naming, I like auto-mount as it's shorter, but worry it may be just the language we use for the feature and so confusing to users.

@kadel
Copy link
Member Author

kadel commented Apr 4, 2023

I was the one who originally suggested keeping controller.devfile.io to Mario, I thought that it will make things easier for DWO, as most of the labels could stay as they are.

controller.devfile.io is generic enough that I think we could keep it.
I'm more than fine with using something like devfile.io/... if DWO supports that as well.

@amisevsk
Copy link

amisevsk commented Apr 4, 2023

If we're content with adopting controller.devfile.io, then that works too -- it's up to the collective conscious :). It certainly would be easier for DWO, at least.

My main concern would be long term -- we should decide what prefix/name we want to use for devfile API-defined labels and annotations and stick to that going forward (e.g. controller.devfile.io, devfile.io, etc.). When we started requiring specific labels that the DevWorkspace Operator adheres to, we opted for controller.devfile.io -- this is used for other DWO-specific labels, e.g. controller.devfile.io/restricted-access, controller.devfile.io/storage-type, etc.

@rm3l rm3l modified the milestones: v3.9.0 🚀, v3.10.0 🚀 Apr 5, 2023
@valaparthvi valaparthvi added the sprint demo Indicates an issue for which a demo should be recorded and presented at the end of the sprint. label Apr 6, 2023
@feloy
Copy link
Contributor

feloy commented Apr 6, 2023

Do we all agree to use these?

  • label devfile.io/auto-mount
  • annotations devfile.io/mount-path, ...

to: @amisevsk @kadel @l0rd

@l0rd
Copy link

l0rd commented Apr 6, 2023

@feloy apologies for bringing this up last minute but there is another annotation added last week:

controller.devfile.io/mount-access-mode: 0777

@feloy
Copy link
Contributor

feloy commented Apr 11, 2023

@feloy apologies for bringing this up last minute but there is another annotation added last week:

controller.devfile.io/mount-access-mode: 0777

Thanks for the link. we'll implement this in another PR. I have created an issue to track it

@feloy feloy removed the sprint demo Indicates an issue for which a demo should be recorded and presented at the end of the sprint. label Apr 19, 2023
@github-project-automation github-project-automation bot moved this from In Review 👀 to Done ✅ in odo Project Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/High Important issue; should be worked on before any other issues (except priority/Critical issue(s)).
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants