aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/templates/status/service.html.j2
diff options
context:
space:
mode:
authorpawel.denst <pawel.denst@external.t-mobile.pl>2023-05-04 09:03:17 +0000
committerpawel.denst <pawel.denst@external.t-mobile.pl>2023-05-09 14:28:23 +0000
commit14c7c32e293fffb92b6aab7a81c446eaeb087cde (patch)
tree1a71ff3258da2e5bc7164c7f0b288a790e6c8795 /src/onaptests/templates/status/service.html.j2
parenta7a3fb72339042b2f455d5e5dfe8f7b685c7ec55 (diff)
Migration of the healthchecks to gerrit
Changes to set default directory for results if None Issue-ID: INT-2226 Signed-off-by: pawel.denst <pawel.denst@external.t-mobile.pl> Change-Id: I5337a55f3271ebb5e58298e1fb1aa3b665713909
Diffstat (limited to 'src/onaptests/templates/status/service.html.j2')
-rw-r--r--src/onaptests/templates/status/service.html.j245
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 %}