Skip to content

Commit

Permalink
[Core] Allow boolean-like strs in resources.labels (#3646)
Browse files Browse the repository at this point in the history
* Add quotes for labels dumped to cluster yaml.

* Filter in jinja
  • Loading branch information
romilbhardwaj authored Jun 10, 2024
1 parent 0f430c2 commit 9a1aa5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sky/templates/kubernetes-ray.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ available_node_types:
skypilot-user: {{ user }}
# Custom tags for the pods
{%- for label_key, label_value in labels.items() %}
{{ label_key }}: {{ label_value }}
{{ label_key }}: {{ label_value|tojson }}
{%- endfor %}
{% if k8s_fuse_device_required %}
annotations:
Expand Down

0 comments on commit 9a1aa5e

Please sign in to comment.