-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix: Add mergo.WithAppendSlice for VaultConfigurerPodSpec #512
fix: Add mergo.WithAppendSlice for VaultConfigurerPodSpec #512
Conversation
…pec to be able to set container spec Signed-off-by: Mike Luttikhuis <[email protected]>
ebf05c1
to
e66d883
Compare
I'm also interested in this patch. I want to mount an additional volume to the vault-configurer containing my root CA certificate. I was relieved when I found the With this patch, the vaultConfigurerPodSpec:
# volumes work with this patch
volumes:
- name: cache-volume
emptyDir:
sizeLimit: 500Mi
# I can't get the containers volumeMounts merged though
containers:
- name: bank-vaults
# does not work
volumeMounts:
- mountPath: /var/run/secrets/root-cert-bundle
name: cache-volume
readOnly: true In comparison, for the vault StatefulSet the
If |
Thanks for addressing this @mikeluttikhuis . Could you please add a test case for this behaviour so that we can iterate over this in case of any future feature requests/issues. Thanks!! |
Thank you for your contribution! This PR has been automatically marked as |
This PR has been marked |
Overview
Hi team,
We want to be able to override some fields of the
bank-vaults
container in thevault-configurer
deployment. Currently, the operator does not allow merging of the 'containers' array into the predefined PodSpec.Fixes
I've added the mergo.WithAppendSlice argument this
mergo.Merge
function so you are able to override all the fields of the container.I used the following code snipped to test locally using mergo, it may come in handy for you to validate my suggested change: