-
Notifications
You must be signed in to change notification settings - Fork 717
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
Support more secret volume fields in secure settings #1665
Support more secret volume fields in secure settings #1665
Conversation
Support items, key and path fields for the secure settings secret similar to secret volume mounts to give a way to inject a subset of secrets and/or define a specific name to secure settings. New syntax supported: ``` spec: secureSettings: - secretName: your-secure-settings-secret items: - key: username path: my-login - secretName: your-second-secure-settings-secret ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice, much easier than I thought. One tiny naming nit.
I wanted to test this feature but I have the following error when I apply the manifest:
I have deleted and recreated the CRDs. I'm using K8S 1.15.3 (both client and server). Here is my manifest:
Any idea ? Also we should create a documentation issue and/or update the comments in the sample. |
Thanks for spotting this!
spec:
secureSettings:
- secretName: some-user-secret
items:
- key: key1
type: array It looks like this issue kubernetes/kubernetes#68466, which has been fixed for 1.16.
Yes! I'm going to update the doc and the samples in this PR. |
I added this one in the spec, it has fixed the issue with
|
My bad, indeed I propose to use our own struct to type secureSettings, that has an spec:
secureSettings:
- secretName: some-secret
- secretName: another-secret
entries:
- key: key1
- key: key2
path: newkey2 Note that several fields of |
9391fcb
to
18f83f9
Compare
18f83f9
to
a4bb10d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Support items, key and path fields for the secure
settings secret similar to secret volume mounts to
give a way to inject a subset of secrets and/or
define a specific name to secure settings.
New syntax supported:
Resolves #1458.