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
Deployments with volumes do not have the option to select a key #116868
Comments
There are no sig labels on this issue. Please add an appropriate label by using one of the following commands:
Please see the group list for a listing of the SIGs, working groups, and committees available. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Why not use subpath? I created a secret with a key
|
projected volumes let you select specific keys of a secret and assign them to specific filepaths See https://kubernetes.io/docs/concepts/storage/projected-volumes/ ...
volumes:
- name: my-volume
projected:
sources:
- secret:
name: my-secret
items:
- key: username
path: my-group/my-username |
What would you like to be added?
Problem statement:
Currently, we don't have a way to define a key into a Secret to be used by volumes.
Using this approach we should create a separate Secret to be used in a volume. If we add in a Secret with more keys resource will consume all keys.
Why is this needed?
As used in Deployments out of volumes we already have a proper solution:
In that case, will be nice to extend volume API to have:
The text was updated successfully, but these errors were encountered: