|
@@ -4,13 +4,13 @@ metadata:
|
|
name: "{{obj_name}}"
|
|
name: "{{obj_name}}"
|
|
{% if annotations is defined%}
|
|
{% if annotations is defined%}
|
|
annotations:
|
|
annotations:
|
|
-{% for key, value in annotations.iteritems() %}
|
|
|
|
|
|
+{% for key, value in annotations.items() %}
|
|
{{key}}: {{value}}
|
|
{{key}}: {{value}}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if labels is defined%}
|
|
{% if labels is defined%}
|
|
labels:
|
|
labels:
|
|
-{% for key, value in labels.iteritems() %}
|
|
|
|
|
|
+{% for key, value in labels.items() %}
|
|
{{key}}: {{value}}
|
|
{{key}}: {{value}}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endif %}
|
|
@@ -22,7 +22,7 @@ spec:
|
|
ports:
|
|
ports:
|
|
{% for port in ports %}
|
|
{% for port in ports %}
|
|
-
|
|
-
|
|
-{% for key, value in port.iteritems() %}
|
|
|
|
|
|
+{% for key, value in port.items() %}
|
|
{{key}}: {{value}}
|
|
{{key}}: {{value}}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{% if port.targetPort is undefined %}
|
|
{% if port.targetPort is undefined %}
|
|
@@ -33,6 +33,6 @@ spec:
|
|
targetPort: {{service_targetPort}}
|
|
targetPort: {{service_targetPort}}
|
|
{% endif %}
|
|
{% endif %}
|
|
selector:
|
|
selector:
|
|
- {% for key, value in selector.iteritems() %}
|
|
|
|
|
|
+ {% for key, value in selector.items() %}
|
|
{{key}}: {{value}}
|
|
{{key}}: {{value}}
|
|
{% endfor %}
|
|
{% endfor %}
|