aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/templates
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-07-05 17:38:27 +0000
committerLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-07-05 17:38:27 +0000
commit99aab747131bf8ab27a7db0d7b2d9f8f85adc861 (patch)
tree391c9216475b3a220ae56ac52defca9da0eddebc /src/onaptests/templates
parentd5ba1d1521d99afad20093243be534d8604f19b5 (diff)
Exclude certain labels and fix issue with missing selectors
Issue-ID: INT-2246 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: I84974b10ea0b62ccb81a9747e67fe4d9a79f43ba
Diffstat (limited to 'src/onaptests/templates')
-rw-r--r--src/onaptests/templates/status/base.html.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/src/onaptests/templates/status/base.html.j2 b/src/onaptests/templates/status/base.html.j2
index 41e55de..d46782d 100644
--- a/src/onaptests/templates/status/base.html.j2
+++ b/src/onaptests/templates/status/base.html.j2
@@ -97,7 +97,11 @@ is-danger
{% if k8s.spec.selector.match_labels %}
{{ key_value_description_list('Selector', k8s.spec.selector.match_labels) | indent(width=6) }}
{% else %}
+ {% if k8s.spec.selector.items %}
{{ key_value_description_list('Selector', k8s.spec.selector) | indent(width=6) }}
+ {% else %}
+ {{ key_value_description_list('Selector', dict()) | indent(width=6) }}
+ {% endif %}
{% endif %}
{% endif %}
{% if k8s.phase %}