From c9623f848bdda1df84b66cd79767ce490ce35498 Mon Sep 17 00:00:00 2001 From: Peter Braun Date: Tue, 21 May 2019 10:22:09 +0200 Subject: [PATCH] replace hardcoded namespace --- image/tools/lib/component/resources.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/tools/lib/component/resources.sh b/image/tools/lib/component/resources.sh index 392be5c..7855ce2 100644 --- a/image/tools/lib/component/resources.sh +++ b/image/tools/lib/component/resources.sh @@ -39,7 +39,7 @@ function backup_resource { echo '---' > /tmp/${type}.yaml for obj in $(oc get ${type} -n ${ns} | tr -s ' ' | cut -d ' ' -f 1 | tail -n +2); do echo '-' >> /tmp/${type}.yaml - echo "$(oc get ${type}/${obj} -n enmasse -o yaml --export | sed 's/^/ /')" >> /tmp/${type}.yaml + echo "$(oc get ${type}/${obj} -n ${ns} -o yaml --export | sed 's/^/ /')" >> /tmp/${type}.yaml cat /tmp/${type}.yaml | gzip > ${dest}/archives/${ns}-${type}.yaml.gz rm -f /tmp/${type}.yaml done