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

Add support for subPathExpr for VolumeMounts in a container #2210

Open
s-annamalai-fetch opened this issue Aug 3, 2023 · 3 comments
Open
Labels
acknowledged Issue has undergone initial review and is in our work queue. enhancement

Comments

@s-annamalai-fetch
Copy link

Description

subPathExpr is pretty handy if you want to use values from downwardAPI and use them to mount a specific volume from the host.

Potential Terraform Configuration

resource "kubernetes_deployment" "deployment" {
  ...
          volume_mount {
            name             = "data"
            mount_path       = "/data"
            //sub_path_expr  = "$(POD_NAME)"
          }
  ...
}

References

https://kubernetes.io/docs/concepts/storage/volumes/#using-subpath-expanded-environment

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@sheneska sheneska added the acknowledged Issue has undergone initial review and is in our work queue. label Aug 9, 2023
@sheneska
Copy link
Contributor

sheneska commented Aug 9, 2023

Hi @s-annamalai-fetch, thanks for opening this issue. Our team will be looking more into this!

@david-garcia-garcia
Copy link

There's been a neglected PR for almost 4 years that seems to provide what has been asked for in this issue:

#925

It seems to be broken though due to a bad merge.

@BBBmau
Copy link
Contributor

BBBmau commented Jul 23, 2024

@david-garcia-garcia unless the author of the PR is open to rebasing, it would be best if a new PR was made to get it merged. Interested in opening one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledged Issue has undergone initial review and is in our work queue. enhancement
Projects
None yet
Development

No branches or pull requests

4 participants