Closed JoKrefting closed 4 weeks ago
You should run it with --set secrets={}
@JoKrefting
@jiuker overwriting defaults in this manner is not supported by helm at all. Once a default value is defined it is always present for dictionary at least.
So if i run:
helm template tenant minio/tenant --set tenant.configSecret.name="myminio-env-configuration" --set tenant.configSecret.accessKey="minio" --set tenant.configSecret.secretKey="minio123" --set secrets={}
I still get:
Error: execution error at (tenant/templates/tenant-configuration.yaml:5:4): ERROR: '.secrets' and '.tenant.configSecret' are mutually exclusive. Please use 'tenant.configSecret' instead.
One i use --set secrets=null
it actually starts working. Found this here. So kinda resolved, even though i see a potential for improvement still in default setup ;)
Thx.
IMHO this is a bug. .secrets
is marked as deprecated and .tenant.configSecret
is supposed to be used, and yet .secrets
has a value by default. There should not be any need to run it using --set secrets=null
.
IMHO this is a bug.
.secrets
is marked as deprecated and.tenant.configSecret
is supposed to be used, and yet.secrets
has a value by default. There should not be any need to run it using--set secrets=null
.
Workaround:
secrets: ~
Expected Behavior
Expectation is, that i can start using .tenant.configSecret on first deployment like in docs:
Current Behavior
The current default value in values.yaml
Results into error:
Error: execution error at (tenant/templates/tenant-configuration.yaml:5:4): ERROR: '.secrets' and '.tenant.configSecret' are mutually exclusive. Please use 'tenant.configSecret' instead.
Possible Solution
Define secrets section to be empty like:
Alternative could be adapting the logic within tenant/templates/tenant-configuration.yaml to use e.g. a priorization like:
Steps to Reproduce (for bugs)
helm template tenant minio/tenant --set tenant.configSecret.name="myminio-env-configuration" --set tenant.configSecret.accessKey="minio" --set tenant.configSecret.secretKey="minio123"
Context
Make use of new secret structure was the goal.