Skip to content
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

[pgadmin4] secret-server-definitions not respecting existingSecret #216

Open
dawidmalina opened this issue Aug 31, 2023 · 4 comments
Open

Comments

@dawidmalina
Copy link

Describe the bug
With latest version (1.17.0) existingSecret is not respected! We can have only provided configuration provided as ConfigMap or Secret and secret name is hard coded to the one that is always created {{ $fullName }}-server-definitions.

Which chart:
1.17.0

What you expected to happen:
I am able to define different resourceType, ex ExistingSecret or simply existingSecret property is properly handled.

How to reproduce it (as minimally and precisely as possible):

Use following values:

  existingSecret: pgadmin-secrets
  serverDefinitions:
    enabled: true

Anything else we need to know:

@rowanruseler
Copy link
Owner

ah I see, the new secrets for server-definitions does not have the exclusion of existingSecret. I'll create a PR!

rowanruseler added a commit that referenced this issue Sep 1, 2023
not check if existing secrets are set. With this commit that should be
respected again.

Signed-off-by: Rowan Ruseler <rowanruseler@gmail.com>
@rowanruseler rowanruseler changed the title [name of the chart e.g. chart] issue title [pgadmin4] secret-server-definitions not respecting existingSecret Sep 1, 2023
rowanruseler added a commit that referenced this issue Sep 1, 2023
As reported in issue #216, the existingSecret is not respected with the new secret for server-definitions. This commit should resolve that.

Signed-off-by: Rowan Ruseler <rowanruseler@gmail.com>
@rowanruseler
Copy link
Owner

@dawidmalina just merged it, so 1.17.1 should contain the fix. If this is not what you meant, please let me know.

@dawidmalina
Copy link
Author

Hi, thanks for the quick reply. It's almost ok. The only missing point here is to consume name of the secret defines with existingSecret instead of hardcoded values: https://github.com/rowanruseler/helm-charts/blob/master/charts/pgadmin4/templates/deployment.yaml#L217

@rowanruseler
Copy link
Owner

Feel free to open a pull request if you see a better method of having multiple secrets and the possibility to have the server definitions also as a config map. Apologies for the late response, I was away for a week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants