Partial fix OECC/PSC'22 test, InterDomain component, and other side improvements

Deploy scripts:

  • Added namespace as subfolder in tmp logs and manifests folders

Manifests:

  • Removed unused '/context' endpoint from NGINX ingress HTTP

Common - Message Broker - NATS:

  • Corrected NATS URI format

Common - Tools - Descriptor Loader:

  • Removed useless context/topology updates

Common - Type Checkers:

  • Minor type hint corrections

Common - Settings:

  • Added method to find missing environment variables

Context component:

  • Added logic to always add link to default context/topology

Device component:

  • Improved endpoint population enabling to specify custom names, and context/topology for the endpoint
  • Emulated Device Driver: improved type checking in composition of endpoints
  • Emulated Device Driver: enabled to report custom names, and context/topology for the endpoint

Interdomain component:

  • Improved RemoteDomainClients to detect remote domains from NETWORK-type devices
  • Extended to make DLT utilization optional
  • Moved old code to separate file

Load Generator component:

  • Updated VLANId range used

Service component - L2NM Emulated Servie Handler:

  • Improved endpoint settings retrieval while composing config rules

WebUI component:

  • Updated copyright footer

OECC/PSC'22 test:

  • Added descriptor files per domain
  • Added interdomain service descriptor file
  • Moved old scripts to separate folder
  • Updated deploy scripts to align with TFS Release 2
Edited by Lluis Gifre Renom

Merge request reports

Loading
+1 −1
Changes for deploy/crdb.sh: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ TMP_FOLDER="./tmp"
CRDB_MANIFESTS_PATH="manifests/cockroachdb"

# Create a tmp folder for files modified during the deployment
TMP_MANIFESTS_FOLDER="$TMP_FOLDER/manifests"
TMP_MANIFESTS_FOLDER="${TMP_FOLDER}/${CRDB_NAMESPACE}/manifests"
mkdir -p $TMP_MANIFESTS_FOLDER

function crdb_deploy_single() {
+3 −1
Changes for deploy/qdb.sh: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -64,12 +64,14 @@ TMP_FOLDER="./tmp"
QDB_MANIFESTS_PATH="manifests/questdb"

# Create a tmp folder for files modified during the deployment
TMP_MANIFESTS_FOLDER="$TMP_FOLDER/manifests"
TMP_MANIFESTS_FOLDER="${TMP_FOLDER}/${QDB_NAMESPACE}/manifests"
mkdir -p $TMP_MANIFESTS_FOLDER

function qdb_deploy() {
    echo "QuestDB Namespace"
    echo ">>> Create QuestDB Namespace (if missing)"
    kubectl create namespace ${QDB_NAMESPACE}
    sleep 2
    echo

    echo "QuestDB"
+3 −2
Changes for deploy/tfs.sh: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -124,14 +124,15 @@ GITLAB_REPO_URL="labs.etsi.org:5050/tfs/controller"
TMP_FOLDER="./tmp"

# Create a tmp folder for files modified during the deployment
TMP_MANIFESTS_FOLDER="$TMP_FOLDER/manifests"
TMP_MANIFESTS_FOLDER="${TMP_FOLDER}/${TFS_K8S_NAMESPACE}/manifests"
mkdir -p $TMP_MANIFESTS_FOLDER
TMP_LOGS_FOLDER="$TMP_FOLDER/logs"
TMP_LOGS_FOLDER="${TMP_FOLDER}/${TFS_K8S_NAMESPACE}/logs"
mkdir -p $TMP_LOGS_FOLDER

echo "Deleting and Creating a new namespace..."
kubectl delete namespace $TFS_K8S_NAMESPACE --ignore-not-found
kubectl create namespace $TFS_K8S_NAMESPACE
sleep 2
printf "\n"

echo "Create secret with CockroachDB data"
+3 −0
Changes for manifests/deviceservice.yaml: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -23,6 +23,9 @@ spec:
  replicas: 1
  template:
    metadata:
      annotations:
        # Required for IETF L2VPN SBI when both parent and child run in same K8s cluster with Linkerd
        config.linkerd.io/skip-outbound-ports: "8002"
      labels:
        app: deviceservice
    spec:
+3 −3
Changes for manifests/interdomainservice.yaml: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -44,11 +44,11 @@ spec:
            command: ["/bin/grpc_health_probe", "-addr=:10010"]
        resources:
          requests:
            cpu: 50m
            cpu: 250m
            memory: 64Mi
          limits:
            cpu: 500m
            memory: 512Mi
            cpu: 1000m
            memory: 1024Mi
---
apiVersion: v1
kind: Service
Loading
Loading