3 . $(dirname "$0")/setenv.bash
9 -n [NAMESPACE] : Kubernetes namespace (required)
10 -s false : Exclude services (default: true)
11 -a [APP] : Specify a specific ONAP component (default: all)
12 from the following choices:
13 sdc, aai ,mso, message-router, robot,
14 vid, sdnc, portal, policy, appc
19 kubectl create namespace $1-$2
22 create_registry_key() {
23 kubectl --namespace $1-$2 create secret docker-registry $3 --docker-server=$4 --docker-username=$5 --docker-password=$6 --docker-email=$7
27 kubectl --namespace $1-$2 create -f ../$2/all-services.yaml
37 while getopts ":n:u:s:a:du:dp:" PARAM; do
51 if [[ -z $APP ]]; then
74 if [[ ! -z "$APP" ]]; then
78 printf "\n********** Creating up ONAP: ${ONAP_APPS[*]}\n"
80 for i in ${ONAP_APPS[@]}; do
81 printf "\nCreating namespaces **********\n"
82 create_namespace $NS $i
84 if [[ "$INCL_SVC" == true ]]; then
85 printf "\nCreating services **********\n"
92 printf "\n\n********** Creating deployments for ${ONAP_APPS[*]} ********** \n"
93 for i in ${ONAP_APPS[@]}; do
94 create_registry_key $NS $i $ONAP_DOCKER_REGISTRY_KEY $ONAP_DOCKER_REGISTRY $DU $DP $ONAP_DOCKER_MAIL
95 /bin/bash $i.sh $NS $i 'create'
98 printf "**** Done ****"