diff options
Diffstat (limited to 'kubernetes/oneclick')
-rw-r--r-- | kubernetes/oneclick/aaf.sh | 7 | ||||
-rwxr-xr-x | kubernetes/oneclick/aai.sh | 7 | ||||
-rwxr-xr-x | kubernetes/oneclick/appc.sh | 8 | ||||
-rw-r--r-- | kubernetes/oneclick/clamp.sh | 7 | ||||
-rwxr-xr-x | kubernetes/oneclick/createAll.bash | 8 | ||||
-rwxr-xr-x | kubernetes/oneclick/dcae.sh | 18 | ||||
-rwxr-xr-x | kubernetes/oneclick/deleteAll.bash | 6 | ||||
-rwxr-xr-x | kubernetes/oneclick/message-router.sh | 7 | ||||
-rwxr-xr-x | kubernetes/oneclick/mso.sh | 7 | ||||
-rwxr-xr-x | kubernetes/oneclick/policy.sh | 12 | ||||
-rwxr-xr-x | kubernetes/oneclick/portal.sh | 8 | ||||
-rwxr-xr-x | kubernetes/oneclick/robot.sh | 5 | ||||
-rwxr-xr-x | kubernetes/oneclick/sdc.sh | 9 | ||||
-rwxr-xr-x | kubernetes/oneclick/sdnc.sh | 8 | ||||
-rwxr-xr-x | kubernetes/oneclick/vfc.sh | 17 | ||||
-rwxr-xr-x | kubernetes/oneclick/vid.sh | 6 | ||||
-rw-r--r-- | kubernetes/oneclick/vnfsdk.sh | 7 |
17 files changed, 14 insertions, 133 deletions
diff --git a/kubernetes/oneclick/aaf.sh b/kubernetes/oneclick/aaf.sh deleted file mode 100644 index 9a85300722..0000000000 --- a/kubernetes/oneclick/aaf.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "AAF....\n" - -$KUBECTL_CMD/aaf-deployment.yaml -$KUBECTL_CMD/aaf-cs-deployment.yaml diff --git a/kubernetes/oneclick/aai.sh b/kubernetes/oneclick/aai.sh deleted file mode 100755 index 9a8e837093..0000000000 --- a/kubernetes/oneclick/aai.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "AAI....\n" -$KUBECTL_CMD/hbase-deployment.yaml -$KUBECTL_CMD/aai-deployment.yaml -$KUBECTL_CMD/modelloader-deployment.yaml diff --git a/kubernetes/oneclick/appc.sh b/kubernetes/oneclick/appc.sh deleted file mode 100755 index 2db7b210b2..0000000000 --- a/kubernetes/oneclick/appc.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "App-c....\n" -$KUBECTL_CMD/db-deployment.yaml -$KUBECTL_CMD/appc-deployment.yaml -$KUBECTL_CMD/dgbuilder-deployment.yaml diff --git a/kubernetes/oneclick/clamp.sh b/kubernetes/oneclick/clamp.sh deleted file mode 100644 index 2440ccce55..0000000000 --- a/kubernetes/oneclick/clamp.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "CLAMP....\n" - -$KUBECTL_CMD/clamp-maraidb-deployment.yaml -$KUBECTL_CMD/clamp-deployment.yaml diff --git a/kubernetes/oneclick/createAll.bash b/kubernetes/oneclick/createAll.bash index 2b4f48b8ff..72d852ded6 100755 --- a/kubernetes/oneclick/createAll.bash +++ b/kubernetes/oneclick/createAll.bash @@ -26,6 +26,11 @@ check_return_code(){ fi } +create_service_account() { + cmd=`echo kubectl create clusterrolebinding $1-$2-admin-binding --clusterrole=cluster-admin --serviceaccount=$1-$2:default` + eval ${cmd} + check_return_code $cmd +} create_namespace() { cmd=`echo kubectl create namespace $1-$2` @@ -164,6 +169,9 @@ for i in ${HELM_APPS[@]}; do printf "\nCreating namespace **********\n" create_namespace $NS $i + printf "\nCreating service account **********\n" + create_service_account $NS $i + printf "\nCreating registry secret **********\n" create_registry_key $NS $i ${NS}-docker-registry-key $ONAP_DOCKER_REGISTRY $DU $DP $ONAP_DOCKER_MAIL diff --git a/kubernetes/oneclick/dcae.sh b/kubernetes/oneclick/dcae.sh deleted file mode 100755 index 5dd1a2f071..0000000000 --- a/kubernetes/oneclick/dcae.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# manual deployment order is mentioned - but we need to specify dependencies in the service -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "dcae....\n" -$KUBECTL_CMD/message-router/dcae-zookeeper.yaml -$KUBECTL_CMD/message-router/dcae-kafka.yaml -$KUBECTL_CMD/message-router/dcae-dmaap.yaml - -$KUBECTL_CMD/pgaas/pgaas.yaml - -$KUBECTL_CMD/dcae-collector-common-event.yaml -$KUBECTL_CMD/dcae-collector-dmaapbc.yaml -$KUBECTL_CMD/dcae-collector-pvs.yaml - -$KUBECTL_CMD/cdap/cdap0-dep.yaml -$KUBECTL_CMD/cdap/cdap1-dep.yaml -$KUBECTL_CMD/cdap/cdap2-dep.yaml diff --git a/kubernetes/oneclick/deleteAll.bash b/kubernetes/oneclick/deleteAll.bash index 4818155e7d..2d5779ea2a 100755 --- a/kubernetes/oneclick/deleteAll.bash +++ b/kubernetes/oneclick/deleteAll.bash @@ -12,6 +12,11 @@ delete_namespace() { printf "Namespace $_NS deleted.\n\n" } +delete_service_account() { + kubectl delete clusterrolebinding $1-$2-admin-binding + printf "Service account $1-$2-admin-binding deleted.\n\n" +} + delete_registry_key() { kubectl --namespace $1-$2 delete secret ${1}-docker-registry-key } @@ -76,6 +81,7 @@ for i in ${HELM_APPS[@]}; do delete_app_helm $NS $i delete_namespace $NS $i + delete_service_account $NS $i done diff --git a/kubernetes/oneclick/message-router.sh b/kubernetes/oneclick/message-router.sh deleted file mode 100755 index 0369fd1a18..0000000000 --- a/kubernetes/oneclick/message-router.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "Message Router....\n" -$KUBECTL_CMD/message-router-zookeeper.yaml -$KUBECTL_CMD/message-router-kafka.yaml -$KUBECTL_CMD/message-router-dmaap.yaml diff --git a/kubernetes/oneclick/mso.sh b/kubernetes/oneclick/mso.sh deleted file mode 100755 index 360f3b80d9..0000000000 --- a/kubernetes/oneclick/mso.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "MSO....\n" - -$KUBECTL_CMD/db-deployment.yaml -$KUBECTL_CMD/mso-deployment.yaml diff --git a/kubernetes/oneclick/policy.sh b/kubernetes/oneclick/policy.sh deleted file mode 100755 index 85e58f6468..0000000000 --- a/kubernetes/oneclick/policy.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "Policy....\n" - -$KUBECTL_CMD/dep-maria.yaml -$KUBECTL_CMD/dep-nexus.yaml -$KUBECTL_CMD/dep-pap.yaml -$KUBECTL_CMD/dep-pdp.yaml -$KUBECTL_CMD/dep-brmsgw.yaml -$KUBECTL_CMD/dep-pypdp.yaml -$KUBECTL_CMD/dep-drools.yaml diff --git a/kubernetes/oneclick/portal.sh b/kubernetes/oneclick/portal.sh deleted file mode 100755 index c1484859b3..0000000000 --- a/kubernetes/oneclick/portal.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "Portal....\n" -$KUBECTL_CMD/portal-mariadb-deployment.yaml -$KUBECTL_CMD/portal-apps-deployment.yaml -$KUBECTL_CMD/portal-widgets-deployment.yaml -$KUBECTL_CMD/portal-vnc-dep.yaml diff --git a/kubernetes/oneclick/robot.sh b/kubernetes/oneclick/robot.sh deleted file mode 100755 index 99a5748f7a..0000000000 --- a/kubernetes/oneclick/robot.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "Robot....\n" -$KUBECTL_CMD/robot-deployment.yaml diff --git a/kubernetes/oneclick/sdc.sh b/kubernetes/oneclick/sdc.sh deleted file mode 100755 index 72a85cbe4b..0000000000 --- a/kubernetes/oneclick/sdc.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "SDC....\n" -$KUBECTL_CMD/sdc-es.yaml -$KUBECTL_CMD/sdc-cs.yaml -$KUBECTL_CMD/sdc-kb.yaml -$KUBECTL_CMD/sdc-be.yaml -$KUBECTL_CMD/sdc-fe.yaml diff --git a/kubernetes/oneclick/sdnc.sh b/kubernetes/oneclick/sdnc.sh deleted file mode 100755 index d7390ba01b..0000000000 --- a/kubernetes/oneclick/sdnc.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "SDNC....\n" -$KUBECTL_CMD/db-deployment.yaml -$KUBECTL_CMD/sdnc-deployment.yaml -$KUBECTL_CMD/dgbuilder-deployment.yaml -$KUBECTL_CMD/web-deployment.yaml diff --git a/kubernetes/oneclick/vfc.sh b/kubernetes/oneclick/vfc.sh deleted file mode 100755 index 0199a2a31b..0000000000 --- a/kubernetes/oneclick/vfc.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "vfc....\n" -$KUBECTL_CMD/vfc-catalog-deployment.yaml -$KUBECTL_CMD/vfc-emsdriver-deployment.yaml -$KUBECTL_CMD/vfc-gvnfmdriver-deployment.yaml -$KUBECTL_CMD/vfc-hwvnfmdriver-deployment.yaml -$KUBECTL_CMD/vfc-jujudriver-deployment.yaml -$KUBECTL_CMD/vfc-nslcm-deployment.yaml -$KUBECTL_CMD/vfc-resmgr-deployment.yaml -$KUBECTL_CMD/vfc-vnflcm-deployment.yaml -$KUBECTL_CMD/vfc-vnfmgr-deployment.yaml -$KUBECTL_CMD/vfc-vnfres-deployment.yaml -$KUBECTL_CMD/vfc-workflow-deployment.yaml -$KUBECTL_CMD/vfc-ztesdncdriver-deployment.yaml -$KUBECTL_CMD/vfc-ztevmanagerdriver-deployment.yaml diff --git a/kubernetes/oneclick/vid.sh b/kubernetes/oneclick/vid.sh deleted file mode 100755 index b88a3fb4a8..0000000000 --- a/kubernetes/oneclick/vid.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "VID....\n" -$KUBECTL_CMD/vid-mariadb-deployment.yaml -$KUBECTL_CMD/vid-server-deployment.yaml diff --git a/kubernetes/oneclick/vnfsdk.sh b/kubernetes/oneclick/vnfsdk.sh deleted file mode 100644 index c2853f7e1e..0000000000 --- a/kubernetes/oneclick/vnfsdk.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -KUBECTL_CMD="kubectl --namespace $1-$2 $3 -f ../$2" - -printf "VNFSDK....\n" - -$KUBECTL_CMD/postgres-deployment.yaml -$KUBECTL_CMD/refrepo-deployment.yaml |