diff options
author | Micha? Jagie??o <michal.jagiello@t-mobile.pl> | 2023-05-11 06:23:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-05-11 06:23:43 +0000 |
commit | 5027f6f3eed3e20fb84950267c625dff693de3b6 (patch) | |
tree | 083c27d4fd07c997d41ad94914eba682661d426f /src/onaptests/templates/status/service.html.j2 | |
parent | 990e68c1017ad3307232d6056cfbfb86ab9c6277 (diff) | |
parent | 14c7c32e293fffb92b6aab7a81c446eaeb087cde (diff) |
Merge "Migration of the healthchecks to gerrit"
Diffstat (limited to 'src/onaptests/templates/status/service.html.j2')
-rw-r--r-- | src/onaptests/templates/status/service.html.j2 | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/onaptests/templates/status/service.html.j2 b/src/onaptests/templates/status/service.html.j2 new file mode 100644 index 0000000..31b239a --- /dev/null +++ b/src/onaptests/templates/status/service.html.j2 @@ -0,0 +1,45 @@ +{% extends "base.html.j2" %} +{% block title %}Service {{ service.name }}{% endblock %} +{% block content %} + {{ two_level_breadcrumb('Service', service.name) | indent(width=4) }} + + {{ pod_parent_summary('Service', service.name, service.failed_pods, service.pods) }} + + <section class="section"> + {{ description(service.k8s) | indent(width=6) }} + + {{ pods_container(service.pods, "Service") | indent(width=6) }} + + <div class="container"> + <h1 class="title is-1">Ports</h1> + {% if service.k8s.spec.ports %} + <div id="ports" class="table-container"> + <table class="table is-fullwidth is-striped is-hoverable"> + <thead> + <tr> + <th>Name</th> + <th>Port</th> + <th>Node Port</th> + <th>Target Port</th> + <th>Protocol</th> + </tr> + </thead> + <tbody> + {% for port in service.k8s.spec.ports %} + <tr> + <td>{{ port.name }}</td> + <td>{{ port.port }}</td> + <td>{{ port.node_port }}</td> + <td>{{ port.target_port }}</td> + <td>{{ port.protocol }}</td> + </tr> + {% endfor %} + </tbody> + </table> + </div> + {% else %} + <div class="notification is-warning">Service has no ports!</div> + {% endif %} + </div> + </section> +{% endblock %} |