Skip to content

Commit

Permalink
[patch] [MASCORE-3232] oc route template
Browse files Browse the repository at this point in the history
  • Loading branch information
padmankosalaram committed Aug 7, 2024
1 parent 4e59bcb commit 3363f24
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,14 @@ spec:
oc get routes -n ${SUITE_NAMESPACE}
export ROUTELIST=$(oc get routes -n ${SUITE_NAMESPACE} -o jsonpath='{range .items[*]}{.metadata.name} {end}')
echo "Add label to routes ${ROUTELIST}"
for ROUTE in $ROUTELIST do
echo "Adding label to route - ${ROUTE}"
oc patch route/${ROUTE} -p '{"metadata":{"labels":{"type":"external"}}}'
export routes=$(oc get routes -n ${SUITE_NAMESPACE} -o jsonpath='{range .items[*]}{.metadata.name} {end}')
echo "Add label to routes ${routes}"
for route in $routes do
echo "Adding -1"
echo "Adding label to route $route"
oc patch route/${route} -p '{"metadata":{"labels":{"type":"external"}}}'
echo "Adding -2"
done
sleep 9000
Expand Down

0 comments on commit 3363f24

Please sign in to comment.