-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[bitnami/rabbitmq].tlsSslOptionsPassword #16042
Comments
Hi @HubertPe , Could you provide the result manifest for the StatefulSet and Secret? |
This is the Statefulset after a helm install:
|
For what I see:
The configuration should match your secret, I mean, should point your secret (it's pointing "{{ .Release.Name }}-rabbitmq-certificates"). How about trying:
|
Oh sorry my mistake in the first post, please have a look to the second one, there are the names the same ("{{ .Release.Name }}-rabbitmq-certificates"), that what I sent you was a test with a different secret and name, but I get the same result. In the HELM documentation I found an example of using the line of code from the {{- $obj := (lookup "v1" "Secret" .Namespace .Name).items -}} |
Hi @HubertPe, Sorry for the delay, I completely missed this case.
I'm afraid I don't follow you here. Could you explain a little further? |
No problem. What I mean is that the function does not work properly. It doesn't matter how I configure the secret, the call never finds it. The $obj is always empty. So I took a look at the helmet documentation and the example there is different from the one in the functions. They work with the .item property and not the .data property. Please see here: https://helm.sh/docs/chart_template_guide/functions_and_pipelines/#using-the-lookup-function |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Hi @HubertPe, Sorry for the late response, I completely missed this one. I will take a deeper look during the day and reach you back. |
Seems indeed a logic error there, but I cannot see it. I will create an internal task for the team to dig around the issue. We will reach you back here as soon as the team backlog allow us to work on it. |
Name and Version
bitnami/rabbbitmq
What architecture are you using?
None
What steps will reproduce the bug?
I try to read a secret value form Kubernetes as an SSL Password. I'll do the following call in the values.yaml file:
The configuration in the auth.tls.ssqlOptionsPassword is this:
The secret yaml looks like this:
Are you using any custom parameters or values?
No response
What is the expected behavior?
No response
What do you see instead?
So when I have a look to the rabbitmq.conf the password, after helm install, it's not the expected password. It looks like there is a bug in the _helpers.tpl, because it always return the random password. For the other secrets it works well.
Additional information
No response
The text was updated successfully, but these errors were encountered: