diff --git a/hack/utils/installdefinition.sh b/hack/utils/installdefinition.sh index 8f8d8c029..8af773634 100755 --- a/hack/utils/installdefinition.sh +++ b/hack/utils/installdefinition.sh @@ -16,7 +16,7 @@ function check_install() { for file in *.yaml ; do echo "Info: changing "$DEF_PATH"/"$file - sed -i.bak "s#namespace: {{.Values.systemDefinitionNamespace}}#namespace: vela-system#g" $file + sed -i.bak "s#namespace: {{ include \"systemDefinitionNamespace\" . }}#namespace: vela-system#g" $file kubectl apply -f $file rm $file mv $file".bak" $file @@ -29,4 +29,4 @@ check_install DEF_PATH="charts/vela-core/templates/definitions" -check_install \ No newline at end of file +check_install