-
Notifications
You must be signed in to change notification settings - Fork 460
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
Tenant Helm chart creates a secret even when using an existing secret #2380
Comments
we'll take a look, thanks. @allanrogerr |
Im unable to reproduce this issue on 6.0.4. Please take a look at these steps, and the tests performed here (see test 7 mainly). Install operator
DL tenant
Edit tenant/values.yaml ensuring the following values
Install tenant
Create a secret
Monitor tenant
|
@allanrogerr i'm not sure if you are specifying the values file as you expect. your helm install command is missing a Here is a oneliner to recreate the issue I am seeing. This is with using the values you provided. helm template tenant1 --repo https://operator.min.io tenant --version 6.0.4 --set tenent.configuration.name=my-existing-secret --set tenant.configSecret.existingSecret=true which still returns
|
Thanks for the reproducer. The issue stems from the default
|
thanks for catching my typo. unsetting those additional values does work, just funky templating i guess. Other charts make existingSecret a string and set the name of the secret there. Makes configuration a bit simpler. |
Expected Behavior
When using an existing secret, I would expect the helm chart to not create another secret resource.
Current Behavior
Currently when using an existing secret, the helm chart creates a unused secret resource.
Possible Solution
Simplify the logic inside of the helm/tenant/templates/tenant-configuration.yaml template. Need help to understand the current logic workflow. Looks like configSecret is intended to specify secret values inline?
Steps to Reproduce (for bugs)
helm template minio/tenant -f test.yaml
Context
Trying to adopt the minio operator instead of just deploying the community helm chart. There should be an example tenant configuration that is comparable to the community helm chart. That would greatly improve the UX for casual people and increase adoption rate.
Regression
helm chart version 6.0.4
Your Environment
N/A This is a templating issue.
Related #2032
The text was updated successfully, but these errors were encountered: