Example Go Template Syntax – Conditional If-Else, env, printf function

This is an example of Go template syntax, what are doing here: Create $domain variable with an empty value. Create $ns variable with a value that comes from NAMESPACE environment variable. So, we need to fill that first to make the logic work. E.g export NAMESPACE=staging. Logic / conditional if-else for checking the equality ( … [Read more…]