helm-service: Make public deployment URI configurable #2362
Comments
If anyone is not working on this, then I would like to take the issue. I may need some guidance on how to approach this. |
Hi! Thanks for approaching us, I've assigned this ticket to you.
For organizational questions and processes, please go through our Contribution Guide. For coding, first thing I recommend is installing Keptn with continuous delivery enabled on a Kubernetes cluster (either in the Cloud or locally using K3s) - see https://keptn.sh/docs/0.7.x/operate/install/ for options. Fork and clone this repo, branch away from master (e.g., I've linked two files and the respective lines of code in the issue above, this should be a good starting point. If you need any more guidance, please let us know. |
@christian-kreuzberger-dtx I am not able to understand how are we going to define |
For now |
Re-assigning this issue to @warber |
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
With Keptn 0.7.x we introduced the option for continuous deployments to configure the ingress port, protocol, and suffix, e.g.:
https://keptn.sh/docs/0.7.x/continuous_delivery/expose_services/#create-configmap-with-ingress-information
This is already used here:
keptn/helm-service/controller/helm/generated_chart_handler.go
Line 139 in a8871e3
and here
keptn/helm-service/controller/workflow_engine_replacer.go
Line 95 in a8871e3
This generates hostnames that look as follows:
Example: https://carts.sockshop-dev.127.0.0.1.nip.io:443
Enhancement
I believe that we can go one step further and make the hostname generation fully configurable, by introducing a config with placeholders, e.g.:
In addition, this allows users to change certain parts of the logic, e.g.,
...${service}-${stage}.${project}...
(carts-dev.sockshop.127.0.0.1.nip.io)...${service}-${stage}-${project}...
(carts-dev-sockshop.127.0.0.1.nip.io)The later has the benefit that you can use a wildcard certificate for
${INGRESS_HOSTNAME}
, instead of having to generate wildcard certificates for each stage.Definition of Done
HOSTNAME_TEMPLATE
The text was updated successfully, but these errors were encountered: