10000 Allow setting existing secret name for TLS certs by mrskul · Pull Request #233 · bokysan/docker-postfix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Allow setting existing secret name for TLS certs #233

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

mrskul
Copy link
@mrskul mrskul commented Apr 14, 2025

It would be helpful to have a method for controlling the TLS secret name, as this would allow users to reference an existing secret and manage the name themselves. This is particularly useful when reflecting secrets from other namespaces, where renaming the secret may not be possible.

@mrskul mrskul changed the title Allow to setting secret name for existing TLS certs Allow setting existing secret name for TLS certs Apr 14, 2025
@mrskul
Copy link
Author
mrskul commented May 22, 2025

@bokysan Is there any chance to have this added or something that would allow the controlling of the secret name

@bokysan
Copy link
Owner
bokysan commented May 25, 2025

Hey @mrskul, thank you for the commit.

Seems almost OK, I've left a comment. If you can fix this, we can merge it.

@mrskul
Copy link
Author
mrskul commented May 28, 2025

@bokysan Happy to fix this but i don't see the comment.

8000
{{- if $secretName -}}
{{- printf "%s" (tpl $secretName .) -}}
{{- else -}}
{{- printf "smtp-relay-mail-certs" -}}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have hardcoded a name here. Previously this was {{ $fullName }}-certs, but is now hardcoded. Please fix this.

@@ -129,6 +129,8 @@ certs:
create: false
# Provide existing cert
existing: false
# Provide existing secret name
existingSecret: ""
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am missing:

@bokysan
Copy link
Owner
bokysan commented May 28, 2025

I'm sorry. My mistake - didn't click 'Finish review'.

Should be visible now.

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.

2 participants
0