Skip to content

Commit 4526281

Browse files
committed
update
1 parent 33330d5 commit 4526281

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

scripts/onboarding.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ PAYLOAD=${WORKING_DIR}/data.yaml
22
PROJECT=$(yq e .project-name ${PAYLOAD})
33

44
ENVIRONMENT=moc
5-
CLUSTER=$(yq e .cluster[0] ${PAYLOAD})
6-
NAMESPACE=$(yq e .project-name ${PAYLOAD})
7-
REQUESTER=$(yq e .project-owner ${PAYLOAD})
8-
DISPLAY_NAME=$(yq e .project-name ${PAYLOAD})
9-
PROJECT_OWNER=$(yq e .project-owner ${PAYLOAD})
5+
CLUSTER=$(yq e '.cluster[0] | downcase' ${PAYLOAD})
6+
NAMESPACE=$(yq e '.project-name | downcase' ${PAYLOAD})
7+
REQUESTER=$(yq e '.project-owner' ${PAYLOAD})
8+
DISPLAY_NAME=$(yq e '.project-name' ${PAYLOAD})
9+
PROJECT_OWNER=$(yq e '.project-owner' ${PAYLOAD})
1010
ONBOARDING_ISSUE=https://github.com/${ORG_NAME}/${SOURCE_REPO}/issues/${ISSUE_NUMBER}
11-
DOCS=$(yq e .project-docs-link ${PAYLOAD})
12-
GROUP=$(yq e .team-name ${PAYLOAD})
11+
DOCS=$(yq e '.project-docs-link' ${PAYLOAD})
12+
GROUP=$(yq e '.team-name' ${PAYLOAD})
1313
USERS=$(yq '.users | split(",") | map(trim)' -o json -I=0 ${PAYLOAD})
1414

15-
1615
echo ENVIRONMENT $ENVIRONMENT
1716
echo CLUSTER $CLUSTER
1817
echo NAMESPACE $NAMESPACE

0 commit comments

Comments
 (0)