-
Notifications
You must be signed in to change notification settings - Fork 772
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
Template External Url #2138
base: main
Are you sure you want to change the base?
Template External Url #2138
Conversation
Signed-off-by: neevnuv <[email protected]>
Signed-off-by: neevnuv <[email protected]>
60d9d32
to
a105ab2
Compare
Hi @MinerYang, I would love if you could give this PR a view 😁. |
Hi @neevnuv , Thanks for contribution to harbor-helm. By getting some contexts of using However, I will keep this PR open and let's see if we will have same requirements from the community in the future. In the meantime, you could use this at your own fork repository. Best, |
Hi @MinerYang, Thanks for your feedback! I understand the concerns about consistency and complexity. We use ArgoCD on OpenShift to deploy Harbor across multiple clusters via ApplicationSets. Each cluster’s externalURL must follow harbor.apps..example.com, and we use .Values.global.clusterName for templating. This PR enables us to set externalURL dynamically, reducing manual effort and misconfigurations. Notably, the only appearance of externalURL is in the core-cm.yaml ConfigMap, minimizing the risk of inconsistencies with other configurations like TLS. While tpl adds some complexity, it simplifies multi-cluster management. Would you consider making this feature optional? It could benefit other users with similar needs. Looking forward to your thoughts! |
Thanks @neevnuv for more details here. I will try to catch up more about ArgoCD and multi-cluster things about templating config. |
@MinerYang, please correct me if I’m wrong, but it seems that The TLS key and certificate are defined in
Additionally, I believe Since this PR only applies |
Description
This PR introduces templating support for the externalURL value inside the core-cm ConfigMap by wrapping it with tpl, allowing for dynamic evaluation of Helm templates.
Changes
Updated core-cm to use {{ tpl .Values.externalURL . }} instead of a static value.
Rationale
Enables users to reference other values or use Helm functions within externalURL.
Increases flexibility for dynamic configurations in different environments.