nginx ingress: fix yaml for multiple nodeselectors (#6768)

In case multiple nodeselectors are specified in ingress_nginx_nodeselector, the generated daemonset yaml template for nginx is invalid due to missing indentation starting with the second nodeselector
This commit is contained in:
dlandtwing 2020-09-30 16:23:26 +02:00 committed by GitHub
parent 947162452d
commit bc8e16fc69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ spec:
{% endif %} {% endif %}
{% if ingress_nginx_nodeselector %} {% if ingress_nginx_nodeselector %}
nodeSelector: nodeSelector:
{{ ingress_nginx_nodeselector | to_nice_yaml }} {{ ingress_nginx_nodeselector | to_nice_yaml | indent(width=8) }}
{%- endif %} {%- endif %}
{% if ingress_nginx_tolerations %} {% if ingress_nginx_tolerations %}
tolerations: tolerations: