From 9bb30e8b6e2de1a6233bb4946db362a737d407dd Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Tue, 30 May 2023 21:32:35 +0200 Subject: [PATCH] Update _verify_operator.tpl --- library/common/templates/lib/util/_verify_operator.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -}}