Use literal quotation marks for Kubernetes annotations instead of quote filter

This commit is contained in:
Harrison Katz 2020-12-04 14:34:08 -05:00 committed by GitHub
parent e6d1810844
commit b6b87aea76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,10 +4,10 @@ kind: ServiceAccount
metadata:
name: {{ kubernetes_serviceaccount_name }}
namespace: {{ kubernetes_namespace }}
{% if kubernetes_service_account_annotations is defined %}
{% if kubernetes_service_account_is defined %}
annotations:
{% for key, value in kubernetes_service_account_annotations.items() %}
{{ key }}: {{ value | quote }}
{{ key }}: "{{ value }}"
{% endfor %}
{% endif %}
{% if kubernetes_image_pull_secrets is defined %}
@ -88,7 +88,7 @@ metadata:
{% if kubernetes_deployment_annotations is defined %}
annotations:
{% for key, value in kubernetes_deployment_annotations.items() %}
{{ key }}: {{ value | quote }}
{{ key }}: "{{ value }}"
{% endfor %}
{% endif %}
{% if openshift_host is defined %}
@ -107,7 +107,7 @@ spec:
{% if kubernetes_pod_annotations is defined %}
annotations:
{% for key, value in kubernetes_pod_annotations.items() %}
{{ key }}: {{ value | quote }}
{{ key }}: "{{ value }}"
{% endfor %}
{% endif %}
labels:
@ -521,7 +521,7 @@ metadata:
{% if kubernetes_service_annotations is defined %}
annotations:
{% for key, value in kubernetes_service_annotations.items() %}
{{ key }}: {{ value | quote }}
{{ key }}: "{{ value }}"
{% endfor %}
{% endif %}
spec:
@ -546,7 +546,7 @@ metadata:
{% if kubernetes_ingress_annotations is defined %}
annotations:
{% for key, value in kubernetes_ingress_annotations.items() %}
{{ key }}: {{ value | quote }}
{{ key }}: "{{ value }}"
{% endfor %}
{% endif %}