Commit 1d517d1b authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Merge branch 'feat/centralizedattackdetector-service' into 'develop'

Renaming the previous `centralized cybersecurity` into `centralized attack detector`

See merge request teraflow-h2020/controller!23
parents d6c52c05 00ba4f83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ stages:
include: 
  - local: '/manifests/.gitlab-ci.yml'
  #- local: '/src/monitoring/.gitlab-ci.yml'
  - local: '/src/centralizedcybersecurity/.gitlab-ci.yml'
  - local: '/src/centralizedattackdetector/.gitlab-ci.yml'
  - local: '/src/context/.gitlab-ci.yml'
  - local: '/src/device/.gitlab-ci.yml'
  - local: '/src/service/.gitlab-ci.yml'
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ pip install --upgrade pip setuptools wheel pip-tools pylint pytest pytest-benchm
echo "" > requirements.in

#TODO: include here your component
COMPONENTS="compute context device monitoring"
COMPONENTS="compute context device monitoring centralizedattackdetector"

# compiling dependencies from all components
for component in $COMPONENTS
+8 −8
Original line number Diff line number Diff line
apiVersion: apps/v1
kind: Deployment
metadata:
  name: centralizedcybersecurityservice
  name: centralizedattackdetectorervice
spec:
  selector:
    matchLabels:
      app: centralizedcybersecurityservice
      app: centralizedattackdetectorervice
  template:
    metadata:
      labels:
        app: centralizedcybersecurityservice
        app: centralizedattackdetectorervice
    spec:
      terminationGracePeriodSeconds: 5
      containers:
@@ -42,11 +42,11 @@ spec:
apiVersion: v1
kind: Service
metadata:
  name: centralizedcybersecurityservice
  name: centralizedattackdetectorervice
spec:
  type: ClusterIP
  selector:
    app: centralizedcybersecurityservice
    app: centralizedattackdetectorervice
  ports:
  - name: grpc
    port: 10000
@@ -55,13 +55,13 @@ spec:
apiVersion: v1
kind: Service
metadata:
  name: centralizedcybersecurityservice-public
  name: centralizedattackdetectorervice-public
  labels:
    app: centralizedcybersecurityservice
    app: centralizedattackdetectorervice
spec:
  type: NodePort
  selector:
    app: centralizedcybersecurityservice
    app: centralizedattackdetectorervice
  ports:
  - name: grpc
    protocol: TCP
+2 −2
Original line number Diff line number Diff line
// protocol buffers documentation: https://developers.google.com/protocol-buffers/docs/proto3
syntax = "proto3";
package centralized_cybersecurity;
package centralized_attack_detector;

import "context.proto";
import "service.proto";
import "monitoring.proto";


service CentralizedCyberSecurityService {
service CentralizedAttackDetectorService {

  rpc NotifyServiceUpdate (service.Service) returns (context.Empty) {}
  
+3 −0
Original line number Diff line number Diff line
#!/bin/bash

./report_coverage_all.sh | grep --color -E -i "^centralizedattackdetector/.*$|$"
Loading