Browse Source

Add quotes to node selector

Node selectors must be strings, therefore the provided value must be
quoted to ensure booleans are not returned.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1609027
Russell Teague 6 years ago
parent
commit
20c419d810
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_docker_gc/templates/dockergc-ds.yaml.j2

+ 1 - 1
roles/openshift_docker_gc/templates/dockergc-ds.yaml.j2

@@ -26,7 +26,7 @@ items:
 {% if r_docker_gc_node_selectors %}
         nodeSelector:
 {% for k,v in r_docker_gc_node_selectors.items() %}
-          {{ k }}: {{ v }}{% endfor %}{% endif %}
+          {{ k }}: "{{ v }}"{% endfor %}{% endif %}
 
         serviceAccountName: dockergc
         containers: