From b0720606b1d6a0999f0ea4056d099b92e28930cc Mon Sep 17 00:00:00 2001 From: Padmanabhan Kosalaram Date: Thu, 8 Aug 2024 02:49:55 +0530 Subject: [PATCH] [patch] [MASCORE-3232] oc route template --- .../templates/05-postsync-add-label_Job.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instance-applications/130-ibm-mas-suite/templates/05-postsync-add-label_Job.yaml b/instance-applications/130-ibm-mas-suite/templates/05-postsync-add-label_Job.yaml index af087fa33..34c9b7683 100644 --- a/instance-applications/130-ibm-mas-suite/templates/05-postsync-add-label_Job.yaml +++ b/instance-applications/130-ibm-mas-suite/templates/05-postsync-add-label_Job.yaml @@ -131,8 +131,7 @@ spec: done oc get routes -n ${SUITE_NAMESPACE} - - export routes=$(oc get routes -n ${SUITE_NAMESPACE} -o jsonpath='{range .items[*]}{.metadata.name} {end}') + export routes=$(oc get routes -n ${SUITE_NAMESPACE} -o jsonpath='{range .items[*]}{.metadata.name}{@}{"\n"}{end}') echo "Add label to routes ${routes}" for route in $routes do @@ -147,4 +146,5 @@ spec: serviceAccountName: "mas-route-sa" backoffLimit: 4 -{{- end }} \ No newline at end of file +{{- end }} +