2 echo $(grep " $1" values.yaml | grep -v "#"| sed -e "s/.*$1: *//")
5 REPO=$(prop repository)
6 if [ -z "$REPO" ]; then
7 REPO="nexus3.onap.org:10001"
10 if [ "\"\"" = "$REPO" ]; then
11 IMAGE="$(prop agentImage)"
13 IMAGE="$REPO/$(prop agentImage)"
18 LATITUDE=$(prop cadi_latitude)
19 LONGITUDE=$(prop cadi_longitude)
20 DEPLOY_FQI=$(prop deploy_fqi)
21 echo "Enter Password for Deployer: $DEPLOY_FQI"
23 #if [ -z "$DEPLOY_PASSWORD" ]; then
24 # ONAP TEST Password. DO NOT PUT REAL PASSWORDS HERE!!!
25 DEPLOY_PASSWORD='"demo123456!"'
27 DEPLOYMENT=$(kubectl -n onap get deployments | grep ${FQDN//\"} | cut -f1 -d' ')
28 if [ -z "$DEPLOYMENT" ]; then
31 echo Running from $IMAGE for Deployment $DEPLOYMENT
33 kubectl -n onap run -it --rm aaf-agent-$USER --image=$IMAGE --overrides='
38 "name": "aaf-agent-'$USER'",
40 "imagePullPolicy": "IfNotPresent",
44 "/opt/app/aaf_config/bin/agent.sh && cd /opt/app/osaaf/local && exec bash"
55 "value": '$DEPLOY_FQI'
57 "name": "DEPLOY_PASSWORD",
58 "value": '$DEPLOY_PASSWORD'
60 "name": "aaf_locate_url",
61 "value": "https://aaf-locate.onap:8095"
63 "name": "aaf_locator_container",
66 "name": "aaf_locator_container_ns",
69 "name": "aaf_locator_public_fqdn",
70 "value": "aaf.osaaf.org"
72 "name": "aaf_locator_fqdn",
75 "name": "cadi_latitude",
78 "name": "cadi_longitude",
87 "mountPath": "/opt/app/osaaf",
88 "name": "'${FQDN//\"}'-vol"
95 "name": "'${FQDN//\"}'-vol",
96 "persistentVolumeClaim": {
97 "claimName": "'${DEPLOYMENT//\"}'-pvc"
103 ' --restart=Never -- bash