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

Closes #214 (closed)

Merge request reports

Loading
+2 −0
Changes for deploy/crdb.sh: 2 added lines, 0 removed lines.
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
Changes for deploy/tfs.sh: 1 added line, 2 removed lines.
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
Changes for manifests/analyticsservice.yaml: 2 added lines, 2 removed lines.
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
Changes for manifests/telemetryservice.yaml: 2 added lines, 2 removed lines.
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
+1 −1
Changes for scripts/show_logs_automation.sh: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -24,4 +24,4 @@ export TFS_K8S_NAMESPACE=${TFS_K8S_NAMESPACE:-"tfs"}
# Automated steps start here
########################################################################################################################

kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/ztpservice
kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/automationservice
Loading
Loading