Commit 89020c87 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Merge branch...

Merge branch 'feat/214-cttc-auto-start-telemetry-collection-when-a-device-endpoint-is-activated' into 'develop'

Resolve "(CTTC) Auto-start telemetry collection when a device endpoint is activated"

See merge request !282
parents 07b8adea 69d1a5ee
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -175,6 +175,7 @@ function crdb_drop_databases_single() {
            --execute "SHOW DATABASES;" --format=tsv | awk '{print $1}' | grep "^tfs"
    )
    echo "Found TFS databases: ${DATABASES}" | tr '\n' ' '
    echo

    for DB_NAME in $DATABASES; do
        echo "Dropping TFS database: $DB_NAME"
@@ -369,6 +370,7 @@ function crdb_drop_databases_cluster() {
            --execute "SHOW DATABASES;" --format=tsv | awk '{print $1}' | grep "^tfs"
    )
    echo "Found TFS databases: ${DATABASES}" | tr '\n' ' '
    echo

    for DB_NAME in $DATABASES; do
        echo "Dropping TFS database: $DB_NAME"
+1 −2
Original line number Diff line number Diff line
@@ -344,11 +344,10 @@ for COMPONENT in $TFS_COMPONENTS; do
        VERSION=$(grep -i "${GITLAB_REPO_URL}/${COMPONENT}-gateway:" "$MANIFEST" | cut -d ":" -f4)
        sed -E -i "s#image: $GITLAB_REPO_URL/$COMPONENT-gateway:${VERSION}#image: $IMAGE_URL#g" "$MANIFEST"
    else
        VERSION=$(grep -i "${GITLAB_REPO_URL}/${COMPONENT}:" "$MANIFEST" | cut -d ":" -f4)
        if [ "$TFS_SKIP_BUILD" != "YES" ]; then
            IMAGE_URL=$(echo "$TFS_REGISTRY_IMAGES/$COMPONENT:$TFS_IMAGE_TAG" | sed 's,//,/,g' | sed 's,http:/,,g')
            VERSION=$(grep -i "${GITLAB_REPO_URL}/${COMPONENT}:" "$MANIFEST" | cut -d ":" -f4)
        else
            VERSION=$(grep -i "${GITLAB_REPO_URL}/${COMPONENT}:" "$MANIFEST" | cut -d ":" -f4)
            IMAGE_URL=$(echo "$TFS_REGISTRY_IMAGES/$COMPONENT:$VERSION" | sed 's,//,/,g' | sed 's,http:/,,g')
        fi
        sed -E -i "s#image: $GITLAB_REPO_URL/$COMPONENT:${VERSION}#image: $IMAGE_URL#g" "$MANIFEST"
+2 −2
Original line number Diff line number Diff line
@@ -98,11 +98,11 @@ spec:
  selector:
    app: analyticsservice
  ports:
    - name: frontend-grpc
    - name: grpc
      protocol: TCP
      port: 30080
      targetPort: 30080
    - name: backend-grpc
    - name: grpc-backend
      protocol: TCP
      port: 30090
      targetPort: 30090
+2 −2
Original line number Diff line number Diff line
@@ -98,11 +98,11 @@ spec:
  selector:
    app: telemetryservice
  ports:
    - name: frontend-grpc
    - name: grpc
      protocol: TCP
      port: 30050
      targetPort: 30050
    - name: backend-grpc
    - name: grpc-backend
      protocol: TCP
      port: 30060
      targetPort: 30060
+4 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"

# Set the list of components, separated by spaces, you want to build images for, and deploy.
export TFS_COMPONENTS="context device pathcomp service slice nbi webui load_generator"
export TFS_COMPONENTS="context device pathcomp service slice nbi webui"

# Uncomment to activate Monitoring (old)
#export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"
@@ -83,6 +83,9 @@ export TFS_COMPONENTS="context device pathcomp service slice nbi webui load_gene
#    export TFS_COMPONENTS="${BEFORE} qkd_app service ${AFTER}"
#fi

# Uncomment to activate Load Generator
#export TFS_COMPONENTS="${TFS_COMPONENTS} load_generator"


# Set the tag you want to use for your images.
export TFS_IMAGE_TAG="dev"
Loading