Kubernetes Helm, combine two variables with a string in the middle

前端 未结 3 764
無奈伤痛
無奈伤痛 2020-12-30 18:58

I’m trying to change the value of a variable if another variable it set by combining the two with a dash in the middle, I’m not sure of the syntax to do this, I’m thinking o

3条回答
  •  借酒劲吻你
    2020-12-30 19:38

    For concatenation just use printf:

    {{-  $serviceNamespace := printf "%s-%s" .Values.serviceNamespace .Values.serviceTag -}}
    

提交回复
热议问题