UST-MICO / mico

A Management System for Microservice Compositions
Apache License 2.0
8 stars 3 forks source link

Fix deployment status of application within status service dto #867

Closed davidkopp closed 5 years ago

davidkopp commented 5 years ago

Description

Inside the status DTO of a service the deployment status of the using applications was not set.

What is affected by this PR

Checklist

Example data

{
    "shortName": "test-message-generator",
    "version": "v1.1.0",
    "name": "UST-MICO/test_message_generator",
    "instanceId": "test-message-generator-yf6fyflj",
    "requestedReplicas": 1,
    "availableReplicas": 1,
    "interfacesInformation": [],
    "applicationsUsingThisService": [
        {
            "shortName": "kafka-faas-deployment",
            "version": "v0.0.1",
            "name": "kafka-faas-deployment-application",
            "description": "Real World application with a frontend and a backend",
            "contact": null,
            "owner": null,
            "deploymentStatus": {
                "value": "Deployed",
                "messages": [
                    {
                        "content": "The MicoApplication is currently deployed.",
                        "type": "Info"
                    }
                ]
            }
        }
    ],
    "podsInformation": [
        {
            "podName": "test-message-generator-yf6fyflj-578d5fcbfd-nlxxr",
            "phase": "Running",
            "hostIp": "10.240.0.6",
            "nodeName": "aks-nodepool1-88141437-2",
            "restarts": 0,
            "startTime": "2019-09-29T22:21:31Z",
            "metrics": {
                "memoryUsage": 15331328,
                "cpuLoad": 0
            }
        }
    ],
    "nodeMetrics": [
        {
            "nodeName": "aks-nodepool1-88141437-2",
            "averageCpuLoad": 0,
            "averageMemoryUsage": 15331328
        }
    ],
    "errorMessages": []
}