diff --git a/library/common/templates/lib/util/_verify_operator.tpl b/library/common/templates/lib/util/_verify_operator.tpl index b7a34a02..4e4931cd 100644 --- a/library/common/templates/lib/util/_verify_operator.tpl +++ b/library/common/templates/lib/util/_verify_operator.tpl @@ -22,6 +22,7 @@ {{- if $cm.data -}} {{/* If "tc-operator-name" does not exist will return "" */}} {{- $name := (get $cm.data "tc-operator-name") -}} + {{- $version := (get $cm.data "tc-operator-version") -}} {{/* If fetched name matches the "$opName"... */}} {{- if eq $name $opName -}} @@ -30,7 +31,7 @@ {{- end -}} {{/* Mark operator as found*/}} {{- $opExists = true -}} - {{- $operatorData := dict "name" (get $cm.data "tc-operator-name") "namespace" $cm.metadata.namespace "version"(get $cm.data "tc-operator-version") -}} + {{- $operatorData := dict "name" $name "namespace" $cm.metadata.namespace "version" $version -}} {{- $_ := set $.Values.operator $opName $operatorData -}} {{- end -}} {{- end -}}