Helm uses the sprig library to provide lots of data manipulation functions, have a look at their docs for strings. You can use the {{ split }} function to do what you want.
$parts := split "." .Values.deployment.domain
$parts._0
Helm uses the sprig library to provide lots of data manipulation functions, have a look at their docs for strings. You can use the {{ split }} function to do what you want.
$parts := split "." .Values.deployment.domain
$parts._0