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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing existing secret in helm chart values #809

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Julian-Louis
Copy link

Hello 馃憢
This pull request will allow passing an existing secret name into the helm chart values.
This is useful when using the GitOps approach, where values need to be committed to a git repository.

Related issues:

@CLAassistant
Copy link

CLAassistant commented Sep 18, 2023

CLA assistant check
All committers have signed the CLA.

Copy link

stale bot commented Dec 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 15, 2023
@VincentDugard
Copy link
Contributor

Hello,
why it has been closed ? as stated this would be usefull to work with tools like eso

@Julian-Louis
Copy link
Author

Hello @VincentDugard
I didn't get any feedback, so I figured my pr wasn't very useful for this project.

@dunglas
Copy link
Owner

dunglas commented Apr 8, 2024

Sorry about that @Julian-Louis. We need to check if it's the "correct" (standard) way according to current Helm best practices and haven't had the time to do it so far.

@dunglas
Copy link
Owner

dunglas commented Apr 9, 2024

@Julian-Louis do you have any example of an "official" (or Bitnami) chart, or a link pointing to the relevant documentation entry? It looks weird to me to allow to entirely bypass the values system.

@dunglas dunglas reopened this Apr 9, 2024
@stale stale bot removed the wontfix This will not be worked on label Apr 9, 2024
@VincentDugard
Copy link
Contributor

VincentDugard commented Apr 9, 2024

@dunglas There are multiple bitnami charts that use this system. For exemple in the postgresql chart , you can provide an existing secrets for postgres credentials. There is also the possibility to override key name in the secret.

edit : In this PR the existing secret override all secrets. It may be better to be able to provide an existing secret only for jwt

@dunglas
Copy link
Owner

dunglas commented Apr 9, 2024

Indeed, to me, it makes more sense to allow this for the JWTs!

@JoniJnm
Copy link

JoniJnm commented Apr 10, 2024

Why not to just allow to add an extra secret to the env? So the deployment needs only a new envFrom at the end and the user can create a secret with only the two subscriberJWT and publisherJWT keys

          env:
            # keep env as is
            # ...
          # allow to overwrite config
          envFrom:
            - secretRef:
                name: the-user-secret-with-the-keys-he-wants-to-overwrite

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

Successfully merging this pull request may close these issues.

None yet

5 participants