Taghelm

Convert URL to slug in helm chart template

If you are supplying a domain or URI/URL to a Kubernetes manifest in a Helm chart template, you may need to convert the value to remove the dots/periods since most Kubernetes resources will not allow them.

You can use the Helm template function replace and a pipeline to convert values where necessary.