diff --git a/library/common/templates/lib/util/_register_operator.tpl b/library/common/templates/lib/util/_register_operator.tpl index c6e7f295..a5af0433 100644 --- a/library/common/templates/lib/util/_register_operator.tpl +++ b/library/common/templates/lib/util/_register_operator.tpl @@ -1,7 +1,9 @@ {{- define "tc.v1.common.lib.util.operator.register" -}} {{- if .Values.operator.register -}} - {{- with (lookup "v1" "ConfigMap" "tc-system" $.Chart.Name) -}} - {{- fail (printf "You cannot install the [%s] operator twice..." $.Chart.Name) -}} + {{- with (lookup "v1" "Namespace" "tc-system" "") -}} + {{- with (lookup "v1" "ConfigMap" "tc-system" $.Chart.Name) -}} + {{- fail (printf "You cannot install the [%s] operator twice..." $.Chart.Name) -}} + {{- end -}} {{- end -}} {{- $objectData := (dict "name" $.Chart.Name