-
{% if k8s.spec.type %}
- Type:
- {{ k8s.spec.type }} {% if (k8s.spec.type | lower) == "clusterip" %}
- Headless:
- {% if (k8s.spec.cluster_ip | lower) == "none" %}Yes{% else %}No{% endif %} {% endif %} {% endif %} {{ key_value_description_list('Labels', k8s.metadata.labels) | indent(width=6) }} {{ key_value_description_list('Annotations', k8s.metadata.annotations) | indent(width=6) }} {% if k8s.spec.selector %} {% if k8s.spec.selector.match_labels %} {{ key_value_description_list('Selector', k8s.spec.selector.match_labels) | indent(width=6) }} {% else %} {{ key_value_description_list('Selector', k8s.spec.selector) | indent(width=6) }} {% endif %} {% endif %} {% if k8s.phase %}
- Status:
- {{ k8s.phase }} {% endif %} {% if k8s.metadata.owner_references %}
- Controlled By:
- {{ k8s.metadata.owner_references[0].kind }}/{{ k8s.metadata.owner_references[0].name }} {% endif %}