-
Notifications
You must be signed in to change notification settings - Fork 456
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
Env configuration issues #1556
Comments
I am unable to reproduce this. Followed the below steps -
where
I see only manually created secret |
The secret you used is the default secret |
May be I am not following the whole thing here. This time I create a totally new secret with name
and created tenant now. Dont see default re-created secret though
Feel free to share few screens shots that can help. |
Let me check this out @D1StrX . Steps look fine to me. Will simulate and keep posted. |
Thanks. One different question regarding the predefined bucket creation values. Does the operator support defining policies and all bucket features like the minio/minio tenant repo? |
@D1StrX what all helm repos added to your setup? Can you paste output of |
@cniackz ^ |
I used I could try a release locally. I hope v5.0.5 can be used as well? (But the Issue is also in 4.5.8, its not version specific) |
I can see the problem now. If you use charts from helm repo with local |
@D1StrX after some debugging and reading, I figure out that
the default secret While installing a chart, Helm combines all the values from different sources and then applies. The order of precedence for values in helm are
So, here nothing is un-expected and if you want to avoid creation of default secret, download the chart, update the values.yaml and run it locally using command |
It does clarify. But that is against the point of Helm right? Chart values should be set based on userinput. If input equals something, use that. If empty, use default value. This is something that almost everyone does. They have 2 fields for user/password and a helm option useExsitingSecret. If user/password: "" -> use useExsitingSecret: "value" Could you change it in this behaviour? Instead of commenting it, a value "" can be used, which looks for the existing secret value.
|
Expected Behavior
Don't create
minio1-env-configuration
, when different configuration is pointing to another secret.Also, the 'env-configuration' shouldn't be a hardcoded thing, which is now.
Current Behavior
When the default secret config is the helm chart is disabled, it still creates the
minio1-env-configuration
secret. While in the helm chart the configuration clearly points to the custom pre-created secret.Possible Solution
Helm chart should contains;
Option A: existingSecret:
Option B: Just don't create the secret
minio1-env-configuration
, when the configuration points to another secret.Steps to Reproduce (for bugs)
secrets:
part and details is commentedContext
Regression
No
Your Environment
minio-operator
): 4.5.8 (cannot upgrade due Upgrade operator 4.5.8 -> 5.0.x breaks tenants #1544)uname -a
): Ubuntu 22.04The text was updated successfully, but these errors were encountered: